构建ASP.net网站时VS中的错误消息

时间:2011-01-26 10:55:45

标签: c# asp.net iis

  

错误1加载a时出错   配置文件:无法启动   监控变化   “\ server1的\ d $ \ SOFTWARE   开发\ XXX \ NEWVERSION”   因为网络BIOS命令限制   已达到。欲获得更多信息   关于这个错误,请参阅   Microsoft知识库文章   81088. Windows XP不支持在UNC共享上托管   平台。 \ server1的\ d $ \ SOFTWARE   Development \ xxx \ newVersion \ Web.config 1

知识库文章是: http://support.microsoft.com/kb/810886/en-us

它告诉我注册并增加一些值。钥匙甚至不存在。但是这个网站大约5分钟前工作正常,我刚刚添加了几行代码仍然无法正常工作!这个错误无处不在!

网络服务器只有50mb的可用空间,这会导致这个吗?

任何帮助表示我很难过。

编辑:网络配置文件

web.config文件似乎缺少1/2,所以我用默认的替换它。我犯了同样的错误。

我注意到在尝试重建时我也收到了一堆警告:

Message 1   Could not find schema information for the element 'compilers'.  \\server1\d$\Software Development\xxx\newVersion\web.config 91  10  \\server1\d$\...\newVersion\
Message 2   Could not find schema information for the element 'compiler'.   \\server1\d$\Software Development\xxx\newVersion\web.config 92  14  \\server1\d$\...\newVersion\
Message 3   Could not find schema information for the attribute 'language'. \\server1\d$\Software Development\xxx\newVersion\web.config 92  23  \\server1\d$\...\newVersion\
Message 4   Could not find schema information for the attribute 'extension'.    \\server1\d$\Software Development\xxx\newVersion\web.config 92  47  \\server1\d$\...\newVersion\
Message 5   Could not find schema information for the attribute 'warningLevel'. \\server1\d$\Software Development\xxx\newVersion\web.config 92  63  \\server1\d$\...\newVersion\
Message 6   Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 93  23  \\server1\d$\...\newVersion\
Message 7   Could not find schema information for the element 'providerOption'. \\server1\d$\Software Development\xxx\newVersion\web.config 94  18  \\server1\d$\...\newVersion\
Message 8   Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 94  33  \\server1\d$\...\newVersion\
Message 9   Could not find schema information for the attribute 'value'.    \\server1\d$\Software Development\xxx\newVersion\web.config 94  56  \\server1\d$\...\newVersion\
Message 10  Could not find schema information for the element 'providerOption'. \\server1\d$\Software Development\xxx\newVersion\web.config 95  18  \\server1\d$\...\newVersion\
Message 11  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 95  33  \\server1\d$\...\newVersion\
Message 12  Could not find schema information for the attribute 'value'.    \\server1\d$\Software Development\xxx\newVersion\web.config 95  52  \\server1\d$\...\newVersion\
Message 13  Could not find schema information for the element 'compiler'.   \\server1\d$\Software Development\xxx\newVersion\web.config 97  14  \\server1\d$\...\newVersion\
Message 14  Could not find schema information for the attribute 'language'. \\server1\d$\Software Development\xxx\newVersion\web.config 97  23  \\server1\d$\...\newVersion\
Message 15  Could not find schema information for the attribute 'extension'.    \\server1\d$\Software Development\xxx\newVersion\web.config 97  62  \\server1\d$\...\newVersion\
Message 16  Could not find schema information for the attribute 'warningLevel'. \\server1\d$\Software Development\xxx\newVersion\web.config 97  78  \\server1\d$\...\newVersion\
Message 17  Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 98  23  \\server1\d$\...\newVersion\
Message 18  Could not find schema information for the element 'providerOption'. \\server1\d$\Software Development\xxx\newVersion\web.config 99  18  \\server1\d$\...\newVersion\
Message 19  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 99  33  \\server1\d$\...\newVersion\
Message 20  Could not find schema information for the attribute 'value'.    \\server1\d$\Software Development\xxx\newVersion\web.config 99  56  \\server1\d$\...\newVersion\
Message 21  Could not find schema information for the element 'providerOption'. \\server1\d$\Software Development\xxx\newVersion\web.config 100 18  \\server1\d$\...\newVersion\
Message 22  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 100 33  \\server1\d$\...\newVersion\
Message 23  Could not find schema information for the attribute 'value'.    \\server1\d$\Software Development\xxx\newVersion\web.config 100 52  \\server1\d$\...\newVersion\
Message 24  Could not find schema information for the element 'providerOption'. \\server1\d$\Software Development\xxx\newVersion\web.config 101 18  \\server1\d$\...\newVersion\
Message 25  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 101 33  \\server1\d$\...\newVersion\
Message 26  Could not find schema information for the attribute 'value'.    \\server1\d$\Software Development\xxx\newVersion\web.config 101 52  \\server1\d$\...\newVersion\
Message 27  Could not find schema information for the element 'validation'. \\server1\d$\Software Development\xxx\newVersion\web.config 111 10  \\server1\d$\...\newVersion\
Message 28  Could not find schema information for the attribute 'validateIntegratedModeConfiguration'.  \\server1\d$\Software Development\xxx\newVersion\web.config 111 21  \\server1\d$\...\newVersion\
Message 29  Could not find schema information for the element 'modules'.    \\server1\d$\Software Development\xxx\newVersion\web.config 112 10  \\server1\d$\...\newVersion\
Message 30  Could not find schema information for the element 'remove'. \\server1\d$\Software Development\xxx\newVersion\web.config 113 14  \\server1\d$\...\newVersion\
Message 31  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 113 21  \\server1\d$\...\newVersion\
Message 32  Could not find schema information for the element 'add'.    \\server1\d$\Software Development\xxx\newVersion\web.config 114 14  \\server1\d$\...\newVersion\
Message 33  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 114 18  \\server1\d$\...\newVersion\
Message 34  Could not find schema information for the attribute 'preCondition'. \\server1\d$\Software Development\xxx\newVersion\web.config 114 38  \\server1\d$\...\newVersion\
Message 35  Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 114 68  \\server1\d$\...\newVersion\
Message 36  Could not find schema information for the element 'handlers'.   \\server1\d$\Software Development\xxx\newVersion\web.config 116 10  \\server1\d$\...\newVersion\
Message 37  Could not find schema information for the element 'remove'. \\server1\d$\Software Development\xxx\newVersion\web.config 117 14  \\server1\d$\...\newVersion\
Message 38  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 117 21  \\server1\d$\...\newVersion\
Message 39  Could not find schema information for the element 'remove'. \\server1\d$\Software Development\xxx\newVersion\web.config 118 14  \\server1\d$\...\newVersion\
Message 40  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 118 21  \\server1\d$\...\newVersion\
Message 41  Could not find schema information for the element 'remove'. \\server1\d$\Software Development\xxx\newVersion\web.config 119 14  \\server1\d$\...\newVersion\
Message 42  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 119 21  \\server1\d$\...\newVersion\
Message 43  Could not find schema information for the element 'remove'. \\server1\d$\Software Development\xxx\newVersion\web.config 120 14  \\server1\d$\...\newVersion\
Message 44  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 120 21  \\server1\d$\...\newVersion\
Message 45  Could not find schema information for the element 'add'.    \\server1\d$\Software Development\xxx\newVersion\web.config 121 14  \\server1\d$\...\newVersion\
Message 46  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 121 18  \\server1\d$\...\newVersion\
Message 47  Could not find schema information for the attribute 'verb'. \\server1\d$\Software Development\xxx\newVersion\web.config 121 46  \\server1\d$\...\newVersion\
Message 48  Could not find schema information for the attribute 'path'. \\server1\d$\Software Development\xxx\newVersion\web.config 121 55  \\server1\d$\...\newVersion\
Message 49  Could not find schema information for the attribute 'preCondition'. \\server1\d$\Software Development\xxx\newVersion\web.config 121 69  \\server1\d$\...\newVersion\
Message 50  Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 122 18  \\server1\d$\...\newVersion\
Message 51  Could not find schema information for the element 'add'.    \\server1\d$\Software Development\xxx\newVersion\web.config 123 14  \\server1\d$\...\newVersion\
Message 52  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 123 18  \\server1\d$\...\newVersion\
Message 53  Could not find schema information for the attribute 'verb'. \\server1\d$\Software Development\xxx\newVersion\web.config 123 57  \\server1\d$\...\newVersion\
Message 54  Could not find schema information for the attribute 'path'. \\server1\d$\Software Development\xxx\newVersion\web.config 123 66  \\server1\d$\...\newVersion\
Message 55  Could not find schema information for the attribute 'preCondition'. \\server1\d$\Software Development\xxx\newVersion\web.config 123 90  \\server1\d$\...\newVersion\
Message 56  Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 124 18  \\server1\d$\...\newVersion\
Message 57  Could not find schema information for the element 'add'.    \\server1\d$\Software Development\xxx\newVersion\web.config 125 14  \\server1\d$\...\newVersion\
Message 58  Could not find schema information for the attribute 'name'. \\server1\d$\Software Development\xxx\newVersion\web.config 125 18  \\server1\d$\...\newVersion\
Message 59  Could not find schema information for the attribute 'preCondition'. \\server1\d$\Software Development\xxx\newVersion\web.config 125 40  \\server1\d$\...\newVersion\
Message 60  Could not find schema information for the attribute 'verb'. \\server1\d$\Software Development\xxx\newVersion\web.config 125 70  \\server1\d$\...\newVersion\
Message 61  Could not find schema information for the attribute 'path'. \\server1\d$\Software Development\xxx\newVersion\web.config 125 86  \\server1\d$\...\newVersion\
Message 62  Could not find schema information for the attribute 'type'. \\server1\d$\Software Development\xxx\newVersion\web.config 125 112 \\server1\d$\...\newVersion\
Error   63  An error occurred loading a configuration file: Failed to start monitoring changes to '\\server1\d$\Software Development\xxx\newVersion' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the Windows XP Platform. \\server1\d$\Software Development\xxx\newVersion\web.config 1   

重新修改

显然不是web.config问题,如果我删除它,我会得到同样的错误

1 个答案:

答案 0 :(得分:1)

虽然重新启动VS已解决了问题 - 但您遇到的最大问题是该网站托管在网络共享上。

Asp.Net正在应用程序目录中设置文件监视器,以便在关键文件发生变化时为AppDomain提供自动拆除功能。

在早期版本的Windows上,此功能在网络共享中不起作用(但Asp.Net不会失败),或者如果它确实非常有限。我认为在这种情况下,一个现有的观察者被认为已被删除,另一个正在被重新创建(可能是由操作系统),最终耗尽系统资源,因为一次又一次地创建重复的观察者。

Win 2008+(需要客户端和服务器)支持更好,因为网络文件系统和观察者与操作系统的集成更加深入。

但是,我强烈建议,特别是在开发过程中,在本地IIS上运行的网站也会从本地文件系统运行。