aspnet pre compilation issue with htm files results in "This is a marker file generated by the preco

S

Sanjay Pais

Hi,

We have encountered a very bizzare issue and I have searched the web and
have been unable to come up with a solution.

The content of the html pages (help files) now seem to get replaced with
this "This is a marker file generated by the precompilation tool, and should
not be deleted!"

We did not have this problem before when the .net project in VS 2005 used
..net 2.0.

However, since upgrading to VS 2008 and including .NET 3.5 references, this
problem has surfaced.

The command line to precompile the website has not changed it is:

aspnet_compiler -v /WebApp -p "C:\Dev\WebApp" "c:\Dev\Deployment"

Does any one have any ideas?
 
R

Raghupathi K

Hi,

We have encountered a very bizzare issue and I have searched the web and
have been unable to come up with a solution.

The content of the html pages (help files) now seem to get  replaced with
this "This is a marker file generated by the precompilation tool, and should
not be deleted!"

We did not have this problem before when the .net project in VS 2005 used
.net 2.0.

However, since upgrading to VS 2008 and including .NET 3.5 references, this
problem has surfaced.

The command line to precompile the website has not changed it is:

aspnet_compiler -v /WebApp -p "C:\Dev\WebApp" "c:\Dev\Deployment"

Does any one have any ideas?

This occurs when IIS has lost its mappings to ASP.NET

1. Open a command prompt
2. Change to the following directory (or whatever version of the .NET
Framework you are using): C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727
3. Run the command "aspnet_regiis.exe -i". This may take several
minutes and will report the success/failure of the process.

Sometimes It does not work, then reinstall IIS.

http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=39570
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top