急急急急........在线等待,送100分
调试最基本的Hello WebService出错。重装VS.NET不起作用。为什么???
下面是错误信息:
“/WebService2”应用程序中的服务器错误。
--------------------------------------------------------------------------------
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误信息: CS1595: 已在多处定义“System.Runtime.CompilerServices.CompilerGlobalScopeAttribute”;使用“C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll”中的定义
源错误:
行 25:
行 26:
行 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28: public class Global_asax : WebService2.Global {
行 29:
源文件: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\webservice2\26de0942\315c6f47\gzdmluyz.0.cs 行: 27
显示详细的编译器输出:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\webservice2\26de0942\315c6f47\assembly\dl\de1bdc87\30035c4b_3843c201\webservice2.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\webservice2\26de0942\315c6f47\gzdmluyz.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\webservice2\26de0942\315c6f47\gzdmluyz.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
版权所有 (C) Microsoft Corporation 2001。保留所有权利。
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\webservice2\26de0942\315c6f47\gzdmluyz.0.cs(27,6): error CS1595: 已在多处定义“System.Runtime.CompilerServices.CompilerGlobalScopeAttribute”;使用“C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll”中的定义
显示完整的编译源:
行 1: //------------------------------------------------------------------------------
行 2: // <autogenerated>
行 3: // This code was generated by a tool.
行 4: // Runtime Version: 1.0.3705.0
行 5: //
行 6: // Changes to this file may cause incorrect behavior and will be lost if
行 7: // the code is regenerated.
行 8: // </autogenerated>
行 9: //------------------------------------------------------------------------------
行 10:
行 11: namespace ASP {
行 12: using System;
行 13: using System.Collections;
行 14: using System.Collections.Specialized;
行 15: using System.Configuration;
行 16: using System.Text;
行 17: using System.Text.RegularExpressions;
行 18: using System.Web;
行 19: using System.Web.Caching;
行 20: using System.Web.SessionState;
行 21: using System.Web.Security;
行 22: using System.Web.UI;
行 23: using System.Web.UI.WebControls;
行 24: using System.Web.UI.HtmlControls;
行 25:
行 26:
行 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28: public class Global_asax : WebService2.Global {
行 29:
行 30: private static bool __intialized = false;
行 31:
行 32: public Global_asax() {
行 33: if ((ASP.Global_asax.__intialized == false)) {
行 34: ASP.Global_asax.__intialized = true;
行 35: }
行 36: }
行 37: }
行 38: }
行 39:
--------------------------------------------------------------------------------
版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0