2010-08-17 44 views
0

我遇到問題。我們最近將我們的網站解決方案從asp.net 3.5遷移到了asp.net 4.0。該網站有一個Web服務,我已經添加了一個新的方法。我在使用Visual Studio開發服務器時瀏覽我們的Web服務時沒有任何問題,但當我檢查「使用本地IIS網站時,服務器「選項,我得到一個錯誤說:瀏覽Web服務時出錯以及如何在IIS 7.5中配置網站

解析器錯誤 描述:在解析服務此請求所需資源時發生錯誤。請檢查以下特定的分析錯誤詳細信息並適當修改您的源文件。

解析器錯誤消息:無法創建類型'braArkivWS.Services'。

源錯誤:

1行:<%@ WebService的語言= 「C#」 的CodeBehind = 「Services.asmx.cs」 類= 「braArkivWS.Services」 %>

源文件:/ braArkivWeb /Service/Services.asmx行:1


版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.1

事件查看器有更多的「描述」錯誤消息:

事件代碼:3006 事件消息:發生瞭解析錯誤。 事件時間:2010年8月17日八時12分11秒 事件時間(UTC):2010年8月17日6時12分十一秒 事件ID:b350253d265743c0925f92024a8c1dcf 事件序列:3 事件發生:1個 事件詳細信息代碼:0

應用程序信息: 應用程序域:/ LM/W3SVC/1/ROOT/braArkivWeb /服務的1-129264991310980968 信任級別:全 應用程序虛擬路徑:/ braArkivWeb /服務 應用程序路徑:d:\ dev的\ braArkiv \ dev \ braArkivWeb \ braArkivWeb \ Service \ 機器名稱:GEO-TD-543807

進程信息: 進程ID:8032 進程名:w3wp.exe 帳戶名:NT AUTHORITY \ NETWORK SERVICE

異常信息: 異常類型:HttpParseException 異常消息:無法創建類型「braArkivWS.Services 」。 在System.Web.UI.SimpleWebHandlerParser.GetType(字符串的typeName) 在System.Web.UI.SimpleWebHandlerParser.GetTypeToCache(大會builtAssembly) 在System.Web.Compilation.SimpleHandlerBuildProvider.GetGeneratedType(CompilerResults結果) 在的System.Web .Compilation.BuildProvider.CreateBuildResult(CompilerResults results) at System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults results) at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager。GetVPathBuildResultInternal(虛擬路徑virtualPath,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾throwIfNotFound,布爾ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext上下文,VirtualPath virtualPath,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾throwIfNotFound, (HttpContext上下文,VirtualPath虛擬路徑,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾ensureIsUpToDate) 在System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文,VirtualPath virtualPath ) at System.Web.UI.WebServiceParser.GetCompiledType(String inputFile,HttpContext context) at System.Web.Services.Prot在System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext上下文,字符串動詞,字符串url,字符串文件路徑) 在System.Web.Script.Services.ScriptHandlerFactory處可能會收到以下錯誤信息:ocols.WebServiceHandlerFactory.GetCompiledType(String url,HttpContext上下文) 。 GetHandler(HttpContext的上下文中,字符串的RequestType,字符串URL,字符串pathTranslated) 在System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在System.Web.HttpApplication.ExecuteStep(IExecutionStep步驟,布爾&已完成異步)

請求信息: 請求URL:http://localhost/braArkivWeb/Service/Services.asmx 請求路徑:/ braArkivWeb/Servic E/Services.asmx 用戶主機地址::: 1 用戶:
通過身份驗證:假 身份驗證類型:
線程帳戶名:NT AUTHORITY \ NETWORK SERVICE

線程信息: 線程ID:5 線程帳戶名:NT AUTHORITY \ NETWORK SERVICE 正在模擬:假 堆棧跟蹤:在System.Web.UI.SimpleWebHandlerParser.GetType(字符串的typeName) 在System.Web.UI.SimpleWebHandlerParser.GetTypeToCache(大會builtAssembly) 在系統.Web.Compilation.SimpleHandlerBuildProvider.Ge tGeneratedType(CompilerResults結果) 在System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults結果) 在System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults結果) 在System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context,VirtualPath virtualPath,Boolean noBuild ,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾throwIfNotFound,布爾ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文,虛擬路徑virtualPath,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文,VirtualPath virtualPath) at System.Web.UI.WebServiceParser.GetCompiledType(String inputFile, HttpContext上下文) at System.Web.Services.Protocols.WebServiceHandlerFactory.GetCompiledType(String url,HttpContext context) at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context,String verb,String url,String filePath) 在System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext上下文,String requestType,String url,String pathTranslated) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep。在System.Web.HttpApplication.ExecuteStep執行() (IExecutionStep一步,布爾& completedSynchronously)

我做了一個應用程序池的網站在IIS中使用的asp.net 4.0運行時和經典模式運行。在我們遷移到asp.net 4.0之前,我們使用了一個具有asp.net 2.0運行時的應用程序池。我想這跟這個有關,但我對配置IIS 7.5知道如何處理這個問題並不瞭解。

任何人都可以幫助我嗎?

此致敬禮。

回答

1

更新:成功!

我不知道我第一次做錯了什麼,可能是在我的IIS中進行了一些設置,但是當我重新安裝IIS 7.5併爲asp.net 4.0運行aspnet_regiss -i時,我能夠成功瀏覽我的asmx服務:)

相關問題