0

I have a webpage I created that deploys just fine on our server, but simply refuses to run under my local host.

The error is:

Parser Error Message: Could not load type 'AcpServiceNS.Default'.

Parser Error

As you can see from my HTML and code behind, this namespace and class both match up!

Why does this give Parser Error?

HTML Default

Codebehind Default

1 Answer 1

3

Try changing CodeBehind="Default.aspx.cs" to CodeFile="Default.aspx.cs".

Since you are saying that the project does not contain the project file or solution file, I think the problem is here. The IIS is not able to understand the project type.

Since you are used FTP to IIS, very that you are using the .NET 4.0 AppPool

Sign up to request clarification or add additional context in comments.

3 Comments

CodeFile! That is awesome! I don't know why VS created that page using CodeBehind since there is no MasterPage. Thank You!
I still have to wait 4 more minutes before I can accept this answer, though. Dumb rule.
It's because, when VS deploy your project he compiles all codefiles into a dll so it remains only aspx pages

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.