ASP.NET Error: Could not load file or assembly App_Web_z9w33txs

前端 未结 5 679
余生分开走
余生分开走 2021-01-06 05:50

How did you get rid of these annoying ASP.NET errors: Could not load file or assembly \'App_Web_z9w33txs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\'

Thi

相关标签:
5条回答
  • 2021-01-06 06:17

    I have got that error. I Choose "Clean Solution" and then "Rebuild Solution". Once my rebuild succeeds the error goes away. I dont think it is just a WCF thingy.

    0 讨论(0)
  • 2021-01-06 06:20

    Close your solution, shutdown IIS, go to:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

    And delete all of those files. Then restart IIS and try it all again.

    0 讨论(0)
  • 2021-01-06 06:28

    If you are getting this error after compiling and/or publishing changes your apps, try the compile option "Use fixed naming and single page assemblies".

    Sometimes I get that when I upload a change to a server and the app hasn't recompiled yet. Those may be temp files, try restarting the IIS Admin service (if you can) to see if it goes away.

    0 讨论(0)
  • 2021-01-06 06:34

    Sometime I have got such error and began to research how to resolve it. Just deleting ASP.NET temporary directory didn't any influence in my case. Then I just have added such attribute to web.config compilation node:

    <compilation debug="true" tempDirectory="c:\temp" >
    

    I hope that this can help and other people.

    0 讨论(0)
  • 2021-01-06 06:39

    Try closing Visual Studio and then deleting all the folders in your Temporary ASP.NET Files folder by running the following from the Command Prompt:

    rd "%TEMP%\Temporary ASP.NET Files\." /s /q
    

    or from PowerShell:

    gci "$env:TEMP\Temporary ASP.NET Files" | % {ri $_.FullName -recurse}
    

    Depending on which Frameworks are used, also clear the following folders on the web server:

    %windir%\Microsoft.NET\v1.1.4322\Temporary ASP.NET Files\
    %windir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
    
    0 讨论(0)
提交回复
热议问题