Could not load file or assembly App_Web_xxxxxxxx or one of its dependencies

前端 未结 1 1914
北恋
北恋 2021-02-04 11:06

The full error is:

Could not load file or assembly \'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\' or one of its dependencies. The sy         


        
相关标签:
1条回答
  • 2021-02-04 11:50

    This may be the issue with ASP.NET compiler when having .SVC within ASP.NET application. You can avoid the issue by turning off the batch compilation i.e. add following in Web.Config under <system.web> element,

    <compilation batch="false">
    

    Please find the steps to repro the issue,

    a. Create a ASP.NET website application and add WCF Service (in this example EPOCS002.svc)
    b. Set the “repro-website” directory as the root of a new site (I set it up on IIS 7.5 in classic 
    pipeline, 32-bit worker process, .NET 2.0 SP2/3.5SP1, with anonymous authentication enabled).
    c. Recycle the application pool for the site.
    d. Browse default.aspx
    e. Browse EPOCS002.svc
    f. Edit default.aspx in some way (add a space somewhere) and save it.
    g. Browse again to default.aspx
    h. Recycle the application pool for the site.
    I. Browse again to default.aspx
    J. Browse again to EPOCS002.svc
    

    P.S. Microsoft is investigating the cause of the issue at this moment and I'll update the post when I've some information.

    HTH, Amit

    0 讨论(0)
提交回复
热议问题