Parser Error when deploy ASP.NET application

后端 未结 17 784
既然无缘
既然无缘 2021-01-03 22:56

I\'ve finished simple asp.net web application project, compiled it, and try to test on local IIS. I\'ve create virtual directory, map it with physical directory, then put al

17条回答
  •  半阙折子戏
    2021-01-03 23:43

    Sometimes it happens if you either:

    1. Clean solution/build or,
    2. Rebuild solution/build.

    If it 'suddenly' happens after such, and your code has build-time errors then try fixing those errors first.

    What happens is that as your solution is built, DLL files are created and stored in the projects bin folder. If there is an error in your code during build-time, the DLL files aren't created properly which brings up an error.

    A 'quick fix' would be to fix all your errors or comment them out (if they wont affect other web pages.) then rebuild project/solution

    If this doesn't work then try changing: CodeBehind="blahblahblah.aspx.cs"

    to: CodeFile="blahblahblah.aspx.cs"

    Note: Change "blahblahblah" to the pages real name.

提交回复
热议问题