Parser Error: Server Error in '/' Application

前端 未结 19 2980
失恋的感觉
失恋的感觉 2020-12-05 22:33

I got the following error: \"An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details a

相关标签:
19条回答
  • 2020-12-05 23:15

    In our case - deleting all the contents of a published intranet site, and republishing the project that worked fine in debug fixed the problem.

    0 讨论(0)
  • 2020-12-05 23:16

    I had this exact same issue when I downloaded the project source into two locations. The issue turned out to be by downloading the source it altered the sites virtual directory location and since I had not rebuilt the second source there were no DLLs there.

    1. To fix this issue open the project you wish to build and go to the web sites properties (Project menu)
    2. Create the virtual directory for the project.
    3. rebuild the project.

    Fixed

    0 讨论(0)
  • 2020-12-05 23:22

    In my case, it helps: if you use a folder other than the default project ( naprmer on the D drive , in the case of Windows), then change to the default folder , create the project , run it. Then again, you can create projects in the folder in which you want . Strange. But this has helped in my case.

    0 讨论(0)
  • 2020-12-05 23:23
    1. Go to Project Properties
    2. Look Output Path in the Page bottom
    3. Change path to: bin\
    4. Save and Run Project
    0 讨论(0)
  • 2020-12-05 23:23

    This happened to me when i was trying to merge two solutions. the problem was the namespace was not well configured in all files. one part of story solved with @Kevin Aenmey answer but many other's ... not!

    so the only way for me was to search for old namespace in the whole solution and replace them all with new namespace.maybe not the best option but in case of bad luck works nice

    0 讨论(0)
  • 2020-12-05 23:24

    In my case the solution was the next:

    1. Verify the markup of Global.asax, in the attribute Inherits I had this Inherits="NameOfMyProject.Global"
    2. Then, verify the Global.asax.cs and I found this:

      public class Global_asax : System.Web.HttpApplication

    3. Therefore, I changed the attribute Inherits in my Global.asax, and finally the markup was the next:

      Inherits="NameOfMyProject.Global_asax"

    4. Also, I started the: ASP.NET state service, in the Administrative Tools. Then, my app run normally.

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