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

  • Thread starter Thread starter Sanjay Pais
  • Start date Start date
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?
 
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
 
Back
Top