IIS - The file '/Customer/Login.aspx' has not been pre-compiled...
Asked By _mike
13-Jun-07 12:19 PM
I have an asp.net 2.0 web application that I have pre-compiled and deployed
to a Windows 2003 server. When I try to access the web application I get the
following message in my browser:
'The file '/Customer/Login.aspx' has not been pre-compiled, and cannot be
requested'.
If I rename the folder containing the web app to something other than
'Customer' then it works! I have tried deleting the folder and recreating it
but I get the same problem. I have also copied the folder to another server
and it works without any problems.
Has anyone got any ideas?
Thanks.
IIS
(1)
ASP.NET
(1)
MSDN
(1)
ASP
(1)
CSS
(1)
AspnetHi
(1)
NET
(1)
MSFT
(1)
Jon Paal [MSMD] replied...
post here:
microsoft.public.dotnet.framework.aspnet
stchen replied...

Hi Mike,
As for the problem you mentioned, I have performed some research in our
internal case records and did found some former cases with the similar
problem. Here are some possible scenarios that will occur such problem:
1) When we publish the website with the ¡°updateable¡± check OFF and then
copy some
files on deployment location that has some markup or code in them. By
putting the
¡°updateable¡± check OFF we instruct the asp.net compiler to compile all
the markup
and code into dll files so that further on asp.net would not consider
runtime
compilation of content. But if it needs to (due to the presence of such
content) it
will throw that error.
2) The second situation is when we have a web application configured in
VS.Net to
run directly off IIS (the http project) and then we publish it to the same
location
again with the ¡°updateable¡° checked OFF. There will be development files
at same
location which will cause similar errors.
3) Another situation is where we have a precompiled website and within the
root
folder of it we have another folder that has content for another asp.net
application but isn¡¯t marked as application in IIS. ASP.Net tracks asp.net
applications when running on IIS by virtual directories in IIS marked as
applications. A child folder having un-compiled content within a parent
application
which is precompiled will again cause this error.
So far I've found the following workarounds and solutions according to the
above cases:
Giving the target location for Publishing as a local folder and then
copying the contents to the actual IIS machine. We created a mapped drive
for the remote location on the development machine and gave this drive as
the
target location in the Publish dialog. We had the "Updateable" check ON but
the "Fixed Naming check OFF.
Since this problem is not quite easy to troubleshoot the root cause, if you
still get error after try the above approahes, I suggest you contact CSS
for further troubleshooting.
http://msdn.microsoft.com/subscriptions/support/default.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
_mike replied...
I have now got it working thanks to Microsoft Support.
The solution was to remove the Web Application and delete the temporary
files located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\customer.
First steps in running ASP.NET on IIS IIS I am attempting to set up IIS on WinXpPro (and thus IIS 5.1). I installed IIS and I could bring up the default home page via http: / / localhost. I then read one called demo1. I also twiddled properites for Default Web Site and (I think) enabled ASP.NET by selecting the sole choice from the drop-down box on the ASP.NET
transparent redirection in asp IIS if you redirect on an IIS , must the client url address bar always be updated with the new address. what options are? Q1 if a user requests http: / / old.com , is there a method of ASP redirection to http: / / new.com which does not update the client browser's address bar Q2 . . . or is this one of the main benefits of the IIS URL rewriter ?? Q3 and am I correct in thinking that search engines would only contain indexes for http: / / old.com IIS ASP Discussions ASP.NET (1) IIS (1) VB (1) Database (1) ASPese (1) Report (1) URIs (1) HeaderPage
Over 66 seconds to fetch a simple css file on IIS 6 - follow up IIS Hi there, This is a follow up on a question I posted earlier. I got SQL server profiler doesn't show any delays. Here are more details: - I checked the IIS log files to make sure it's not a network issue. It's not. IIS logs report the extremely long times it's taking to respond. - While waiting for a access to the file system. - There are no errors in the event log or the iis httperror files. - The problem happens randomly, and it affects all kinds of files, weather static (.txt, .css, .png) or dynamic (.aspx, asmx). - I'm using IIS6 on Windows Server 2003. It's NOTIFY_ISAPI_COMPLETION events. I'm not sure what that means? Is that time spent inside my asp.net app? Any suggestions on how to drill deeper? AspNetReq: Start - Start ConnId: 17059336 Timestamp
Web Service Extensions per Application IIS Hello, is there any way to disable WebDAV extension just for my application? Running IIS6. Thanks, Jan IIS Discussions SharePoint (1) Office (1) NICACZd (1) ASP.NET (1) IIS (1) InProcessIsapiApps (1) IHttpHandler (1) Database (1) Hi Jan, The Web Service Extenstions list is on the single site level to disable WebDav independently. To limit WebDav requests handled by IIS httpext.dll on a single site or virtual directory, we can only allow Read and into your web site / vdir's property-> ISAPI filters tab. Run iisreset command to restart IIS. By default, the http verbs of WebDav(OPTIONS, PROPFIND. . .) are denied in \ WINDOWS \ system32 \ inetsrv Microsoft Online Community Support = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Get notification to my posts through email? Please refer to: http: / / msdn.microsoft.com / subscriptions / managednewsgroups / default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering
HTML HREF link in ASP IIS I'm trying to do the following, but when I have the code in for You are using " & a & " to view this page. Please use Internet Explorer.") else end if %> IIS ASP Discussions ASP.NET (1) VB.NET (1) VBScript (1) EEQqsM (1) EQmezVh (1) CIrk (1) Arbpen (1) Opera if you don't actually tell the group what the runtime error is. . . - - Mark Rae ASP / ASP.NET MVP http: / / www.markrae.net Your missing a pair of %> <% around the html code