user220583
user220583

Reputation:

How to do a precompiled web application

I have a webapplication that uses a master page. When I publish the site in vs2010 (running framework 4), and then I navigate to the default.aspx page I get a parser error that the masterpage's codebehind file does not exist.

I know that a website can be precompiled and then deployed which means there would never be anything that IIS needs to parse. The above error therefore implies that IIS is still trying to compile my precompiled site.

Is there something that needs to be configured to stop the web application from doing this?

Upvotes: 0

Views: 2606

Answers (4)

SaraJJ
SaraJJ

Reputation: 1

The problem may be that the application files were not compiled correctly or were not deployed correctly to the IIS server.

Upvotes: 0

Darkwing
Darkwing

Reputation: 7595

You are using the term 'web application' and 'website' interchangeably in your question.

If you are using the web application model, you need to build it before deployment (i.e to a single binary)

If you are using the website model, you need to deploy all your files (code behind included), the framework then JIT compiles all your codebehind.

But you can pre-compile:

http://msdn.microsoft.com/en-us/library/ms227972.aspx

Upvotes: 0

Migol
Migol

Reputation: 8447

Convert to Web Application: Difference between 'Web Site' and 'Project' in Visual Studio

Upvotes: 1

Oleg Grishko
Oleg Grishko

Reputation: 4281

Have you uploaded the bin folder with the webapplication's dll?

Upvotes: 0

Related Questions