无法加载模块分析错误

时间:2015-02-05 22:06:14

标签: parsing

我去的时候遇到了解析错误。 我已经尝试将这个问题放在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 个答案:

答案 0 :(得分:1)

我在正在处理的应用程序上遇到了同样的错误。 它是一个ASP.NET表单应用程序。该应用程序一瘸一拐地运行多年,没有人可以从他们的工作站运行它。它起初是一个.NET 2.0框架,由于这个和其他软件质量问题,它们从未进入过4.0框架。他们只编译单个组件并部署到Web服务器。 UGH

所以我遵循了以下步骤:
1)。我创建了一个新的C#ASP.NET Empty Forms项目。

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表单,我和#34;设置为起始页面&#34;

4)。我将所有html从网页中的标签复制到了这个新网页。

5)。在公共部分类部分(此处)内部的代码中

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

5A)。我复制了整个代码模块大约3000行代码。

6)。我添加了所需的using语句。

7)。如果没有附加,我添加了对.NET库的引用。

8)。我使用了一个Web服务,所以我设置了一个引用。

Presto网页运行时没有解析错误。

我认为这是旧csproj文件中的一些设置。