Could not load file or assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies

后端 未结 3 968
深忆病人
深忆病人 2021-01-16 19:56

I have used itextsharp library to generate pdf in my asp.net web application. It was working fine untill today when suddenly my laptop on which the application was running i

3条回答
  •  悲哀的现实
    2021-01-16 20:37

    Try to clean Temporary Files of Asp.Net, sometime I've experimented strage cases of files corruption(I know this should be a comment but It's verbose):

    1 - Open notepad and paste the following.

    @ECHO OFF
    ECHO Per­form­ing IIS Reset
    IISRESET
    ECHO Delet­ing Cache
    Del /F /Q /S %LOCALAPPDATA%\Microsoft\WebsiteCache\*.*
    Del /F /Q /S %LOCALAPPDATA%\Temp\VWDWebCache\*.*
    Del /F /Q /S “%LOCALAPPDATA%\Microsoft\Team Foundation\3.0\Cache\*.*“
    Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*“
    Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*.*“
    Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\*.*“
    Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*.*“
    ECHO Complete
    

    2 - Save the file as a .bat file.

    3 - run it from the com­mand prompt.

提交回复
热议问题