[当当网]当VS.NET2003遇上VS.NET2005,WebService部署何去何从

更新时间:2014-03-05    来源:WebService    手机版     字体:

【www.bbyears.com--WebService】

问题描叙】
重装操作系统之后,部署原来的Web Service出现无法访问、无法调试的问题
【原编程环境】
VS.NET2003(.NET Framework 1.1 SP1),Windows XP SP1
【新编程环境】
VS.NET2003(.NET Framework 1.1 SP1),VS.NET 2005 Beta1(.NET Framework 2.0 ),Windows XP SP2
【问题解决过程】

因为原来的项目一直使用工具VS.NET 2003,所以虽然VS.NET 2005 Beta已经出来好久了,却没有时间细细品味,现在项目告一段落,终于有机会了。
重装系统之后,所有工具都安装完毕,便将原来的Web Service源代码直接拷贝到 C:Inetpubwwwroot 目录下,在“Internet 信息服务(IIS)”中创建为虚拟目录,然后用 VS.NET2003打开部署,习惯性的(CTRL+F5)就开始运行了,一切正常,然后试着调用其中的一个方法,却总是出现如下错误:

System.TypeInitializationException: The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception. ---> System.UnauthorizedAccessException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
at System.Diagnostics.EventLog.SourceExists(String source)
at System.Transactions.Diagnostics.DiagnosticTrace..cctor()
--- End of inner exception stack trace ---
at System.Transactions.Diagnostics.DiagnosticTrace.get_Verbose()
at System.Transactions.Transaction.get_Current()
at System.Data.Common.ADP.GetCurrentTransaction()
at System.Data.Common.ADP.GetCurrentTransaction()

本文来源:http://www.bbyears.com/asp/4652.html

热门标签

更多>>

本类排行