2015-02-05 125 views
0

我在進行時遇到分析錯誤。 我曾嘗試將此問題放在TechNet上,但仍然沒有答案。無法加載模塊分析錯誤

以下是我進入該內部網站時得到的事件ID。 我編輯了以下內容以刪除個人信息。

fiLog Name:  Application 

Source:  ASP.NET 4.0.30319.0 

Date:   2/5/2015 12:12:23 PM 

Event ID:  1310 

Task Category: Web Event 

Level:   Warning 

Keywords:  Classic 

User:   N/A 

Computer:  SERVERNAME.domain.local 

Description: 

Event code: 3006 

Event message: A parser error has occurred. 

Event time: 2/5/2015 12:12:23 PM 

Event time (UTC): 2/5/2015 8:12:23 PM 

Event ID: 1b2df808c7be47d39e7a57e3085a5239 

Event sequence: 17 

Event occurrence: 3 

Event detail code: 0 



Application information: 

    Application domain: /LM/W3SVC/2/ROOT-1-130676406758832527 

    Trust level: Full 

    Application Virtual Path:/

    Application Path: C:\Program Files\Windows Server\Bin\WebApps\CertWebService\ 

    Machine name: SERVERNAME 



Process information: 

    Process ID: 10296 

    Process name: w3wp.exe 

    Account name: NT AUTHORITY\NETWORK SERVICE 



Exception information: 

    Exception type: HttpParseException 

    Exception message: Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) 

    at System.Web.UI.TemplateParser.Parse() 

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() 

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) 

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 

    at 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, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) 

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.ProcessException(Exception ex) 

    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) 

    at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) 

    at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) 





Request information: 

    Request URL: http://localhost:65510/connect/default.aspx 

    Request path: /connect/default.aspx 

    User host address: ::1 

    User: 

    Is authenticated: False 

    Authentication Type: 

    Thread account name: DOMAIN\ADMIN 



Thread information: 

    Thread ID: 6 

    Thread account name: DOMAIN\ADMIN 

    Is impersonating: False 

    Stack trace: at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) 

    at System.Web.UI.TemplateParser.Parse() 

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() 

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) 

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 

    at 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, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) 

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 





Custom event details: Event Xml: 

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 

    <System> 

    <Provider Name="ASP.NET 4.0.30319.0" /> 

    <EventID Qualifiers="32768">1310</EventID> 

    <Level>3</Level> 

    <Task>3</Task> 

    <Keywords>0x80000000000000</Keywords> 

    <TimeCreated SystemTime="2015-02-05T20:12:23.000000000Z" /> 

    <EventRecordID>608248</EventRecordID> 

    <Channel>Application</Channel> 

    <Computer>SERVERNAME.domain.local</Computer> 

    <Security /> 

    </System> 

    <EventData> 

    <Data>3006</Data> 

    <Data>A parser error has occurred.</Data> 

    <Data>2/5/2015 12:12:23 PM</Data> 

    <Data>2/5/2015 8:12:23 PM</Data> 

    <Data>1b2df808c7be47d39e7a57e3085a5239</Data> 

    <Data>17</Data> 

    <Data>3</Data> 

    <Data>0</Data> 

    <Data>/LM/W3SVC/2/ROOT-1-130676406758832527</Data> 

    <Data>Full</Data> 

    <Data>/</Data> 

    <Data>C:\Program Files\Windows Server\Bin\WebApps\CertWebService\</Data> 

    <Data>SERVERNAMEfi</Data> 

    <Data> 

    </Data> 

    <Data>10296</Data> 

    <Data>w3wp.exe</Data> 

    <Data>NT AUTHORITY\NETWORK SERVICE</Data> 

    <Data>HttpParseException</Data> 

    <Data>Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) 

    at System.Web.UI.TemplateParser.Parse() 

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() 

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) 

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 

    at 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, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) 

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) 

Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.ProcessException(Exception ex) 

    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

Could not load type 'Microsoft.WindowsServerSolutions.Client.Website.Default'. 

    at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) 

    at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) 

    at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) 

</Data> 

    <Data>http://localhost:65510/connect/default.aspx</Data> 

    <Data>/connect/default.aspx</Data> 

    <Data>::1</Data> 

    <Data> 

    </Data> 

    <Data>False</Data> 

    <Data> 

    </Data> 

    <Data>DOMAIN\ADMIN</Data> 

    <Data>6</Data> 

    <Data>DOMAIN\ADMIN</Data> 

    <Data>False</Data> 

    <Data> at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) 

    at System.Web.UI.TemplateParser.Parse() 

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() 

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) 

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 

    at 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, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) 

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) 

</Data> 

    </EventData> 

</Event> 

Susan E. Russel 

回答

1

我在我正在處理的應用程序上遇到同樣的錯誤。 它是一個ASP.NET窗體應用程序。該應用程序已經有好幾年了,沒有人可以從他們的工作站上運行它。它開始作爲一個.NET 2.0框架,並且由於這個和其他軟件質量問題,他們從來沒有去過4.0框架。他們只編譯單個組件並部署到Web服務器。 UGH

所以我遵循了這些步驟:
1)。我創建了一個新的C#ASP.NET空表單項目。 2)。我運行該項目,看到目錄瀏覽加載就好了。

目錄列表 -/


Friday, February 20, 2015 06:04 PM  <dir> bin 
Friday, February 20, 2015 06:04 PM  <dir> obj 
Friday, February 20, 2015 06:04 PM  <dir> Properties 
Friday, February 20, 2015 06:04 PM   309 Web.config 
Friday, February 20, 2015 06:04 PM  1,285 Web.Debug.config 
Friday, February 20, 2015 06:04 PM  1,346 Web.Release.config 
Friday, February 20, 2015 06:04 PM  3,995 WebApplication1.csproj 
Friday, February 20, 2015 06:04 PM  1,086 WebApplication1.csproj.user 

=============================== =====================================
3)。添加新項目Web窗體,並且「設置爲起始頁」

4)。我將所有的HTML從網頁中複製到網頁中的標籤,並將錯誤複製到這個新的網頁中。 5)。在公共部分類節(在這裏)的內部後面的代碼

public partial class WebForm1 : System.Web.UI.Page 
{ 
=== HERE === 
} 

5A)。我複製了大約3000行代碼的整個代碼模塊。 6)。我添加了所需的使用語句。 7)。如果沒有附加,我添加了對.NET庫的引用。 8)。我使用了一個Web服務,所以我設置了一個參考。

Presto網頁運行時出現解析錯誤。

我認爲這是在舊的csproj文件中的一些設置。