473,756 Members | 6,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The file '/Customer/Login.aspx' has not been pre-compiled...

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.
Jun 13 '07 #1
3 27032
post here:

microsoft.publi c.dotnet.framew ork.aspnet

"Mike" <_m****@nospam. nospamwrote in message news:92******** *************** ***********@mic rosoft.com...
>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.

Jun 13 '07 #2
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/subscripti...t/default.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 14 '07 #3
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\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET Files\customer.
"Steven Cheng[MSFT]" wrote:
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/subscripti...t/default.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2783
by: Beginner | last post by:
I know this is an old question, but searching all over the internet plus several MS security conferences, still haven't got a straight anwser. Basically, the login.aspx is on one dedicated server in the domain using AD. ASP.NET applications run on other servers (not neccessary in domain) and trying to use authentication server. How could this be done? - Most response says you need to set MachineKey the same, but that alone doesn't...
2
5358
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The code below in the Web.Config file defines the authentication as forms and the aspx file required for login if the user is unauthenticated... this works well for the root level company web pages however when a user viewing the website of SubCompanyA...
0
2207
by: Mach Runner | last post by:
I am implementing a secure website using the ASP.NET FormsAuthentication model. I have taken the simplest code examples from MSDN (login.aspx,default.aspx, web.config) but cannot get proper behavior on my machine. As an unauthenticated user, I navigate to the website http://localhost/XXX. global.Authenticate_Request considers sending default.apsx but cannot find any authentication cookie in the Context object, so the request is...
1
4215
by: frekster | last post by:
All, Windows xp pro box with vs 2003 and .net 1.1 installed. Downloaded a project from source safe via vpn to my ome pc to work from home. I have three other projects on my pc that works fine with the vpn. This one, however, is being a bugger. Every time I start it, I get a 404 error stating login.aspx is not found. However, there is no login.aspx file in the entire project *nor* should there ever be. The project is using forms...
1
2051
by: frolda | last post by:
Hi, I moved my login.aspx page from root to a subdirectory and made -hopefully- all necessary changes for all Login controls. All the controls work just fine, except one. To my regret, the LoginStatus control still uses the old, root-located login.aspx intead of subdir/login.aspx. What's interesting is that for logout it works perfectly (path to subdir/logout.aspx is recognized OK). Could anyone write me please, where does the...
6
4696
by: BizWorld | last post by:
Hi, I have a scenario where i need to configure only Login.aspx page to use SSL. All other application will run on HTTP protocol. If someone can guide me how to accomplish this. One of my idea is to keep login.aspx page in a seperate Virtual director and apply SSL only on that directory but i dont know if it will have an impact on session (may be it will create two sessions due to two different virtual directories). If some one can...
0
997
by: PolarBears | last post by:
We have several ASPX 1.1 web applications that reference a Login.aspx page. Now groups and roles have been added to .NET 2.0. And we now have the new Visual Studio 2005. I am guessing that with the differences between the two ..NET versions that a 2.0 web app cannot reference a 1.1 Login.aspx page and vice versa. Right or wrong? Even if it could I think the new 2.0 web apps we would want to take advantage of roles and use a 2.0...
0
939
by: paulmac106 | last post by:
Hi, currently I have this in my web.config file <authentication mode="Forms"> <forms name="Auth" loginUrl="login.aspx" protection="None" path="/" timeout="60"/> </authentication> <authorization >
5
5130
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C# application to authenticate using the same mechanism as the intranet app. Therefore...if I try to login to the c# app, it should redirect me to the intranet login. Once I pass authentication, I should be able to access the c# app. Now. Here is...
3
1486
by: Andy B | last post by:
How do you rename the login.aspx page and still make it work? and How would you determine what you should rename it to?
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9709
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5141
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5303
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.