Parser Error: Server Error in '/' Application

前端 未结 19 3001
失恋的感觉
失恋的感觉 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:29

    In my situation I was getting this same error. I am using git along with Source Tree for version control. In my case git had been enabled in the project, but I wasn't using Visual Studio to stage my commits, etc .. I was using Source Tree. This doesn't really matter what I was using the problem is that visual studio had put the following line into my gitignore file:

    #Build Results
    [Bb]in/
    

    That was ignoring the bin folder so my bin folder never got pushed up to the server, once I removed that line and committed the entire bin directory and pushed it up to the server and then went to the server and did a git pull. The bin folder showed up and everything started working!

    BTW, my final gitignore file (#Build results) section ended up looking like this:

    # Build results
    
    [Dd]ebug/
    [Rr]elease/
    x64/
    build/
    [Oo]bj/
    

    Im still unsure if I need the Obj folder to be pushed to the server, but everything is working fine now.

提交回复
热议问题