Parser Error Message: Could not load type 'webmarketing'

后端 未结 14 2030
感情败类
感情败类 2020-12-01 06:16

After finishing the web application and publishing it online no matter I try I keep getting the following error, keep in mind that it runs locally as it should...

相关标签:
14条回答
  • 2020-12-01 06:53

    Using VS2015, I checked "Delete all existing files prior to publish" under File Publish Options within the "Publish Web" right-click menu option and this problem went away.

    0 讨论(0)
  • 2020-12-01 06:54

    I think you find the problem is you need to update the files in the BIN folder. When you run the app it recompiles the files in the BIN folder too. Copy those up to the WEB site and that should fix the problem, it did for me. This is especially true if you create a new page that was not already there which was my case.

    0 讨论(0)
  • 2020-12-01 06:58

    I'm using "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version 1.0.8. When rebuilding there was a warning about not being able to copy files into bin\roslyn. So I stopped IISExpress, deleted the bin folder and rebuild the project. There were no build warnings and the application worked fine.

    0 讨论(0)
  • 2020-12-01 06:59

    I had this error message. The problem was my .cs and aspx files were not added to the project. They were in the folder, but were not added. I solved it by adding them to the project (right click, Add). And then after I built the project, it was compiled into a dll in the bin folder. There was no need to change the text from CodeBehind to CodeFile.

    0 讨论(0)
  • 2020-12-01 07:00

    If you are facing this error after Hosting your Website on server make sure that you create the directory And/Or go to Hosting server -> Site Manager -> Application Starting Point ,select the proper path or folder of your uploaded Published Folder.

    It resolve my same problem , I hope it will help you also.

    0 讨论(0)
  • 2020-12-01 07:01

    Non of the mentioned answers worked for me.

    My error was the same but I made the mistake and published the Debug version and not release, so make sure before Publishing your project, switch to Release, Clean and Rebuild the solution and the build!

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