I have a site that has multiple web site projects. I got it working on my
windows xp sp2 computer in pre-compiled mode.
I created a new site on a windows 2003 server and copied the pre-compiled
site up to this server.
Now I am getting the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be
requested.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Web.Http Exception: The file '/RA_Log_In.aspx' has
not been pre-compiled, and cannot be requested.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The file '/RA_Log_In.aspx' has not been
pre-compiled, and cannot be requested.]
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultInter nal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPre compile) +3369638
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultWithN oAssert(HttpCon text
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPre compile) +93
System.Web.Comp ilation.BuildMa nager.GetVirtua lPathObjectFact ory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
+111
System.Web.Comp ilation.BuildMa nager.CreateIns tanceFromVirtua lPath(VirtualPa th
virtualPath, Type requiredBaseTyp e, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +54
System.Web.UI.P ageHandlerFacto ry.GetHandlerHe lper(HttpContex t context,
String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.P ageHandlerFacto ry.System.Web.I HttpHandlerFact ory2.GetHandler (HttpContext
context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.Http Application.Map HttpHandler(Htt pContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+139
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute() +120
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +155
What can I do to correct this error? What is the cause of the this error?
Thanks
Eric 3 4465
Eric,
With a precompiled web, all the Aspx files are just 86 byte "Stubs" - there
is a precompiled assembly in the /bin folder to match it. Sounds like you
have different settings in your different projects, or that you may have
identical items in more than one project one of which is overwriting a
previous one.
You could try checking the "Make this precompiled web updateable" checkbox
when you perform your Publish operation. Or, you could switch to the new Web
Deployment Project add-in which is more like VS.NET 2003.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"eswanson" wrote: I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode.
I created a new site on a windows 2003 server and copied the pre-compiled site up to this server.
Now I am getting the following error:
Server Error in '/' Application. --------------------------------------------------------------------------------
The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Http Exception: The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested.]
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultInter nal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPre compile) +3369638
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultWithN oAssert(HttpCon text context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPre compile) +93
System.Web.Comp ilation.BuildMa nager.GetVirtua lPathObjectFact ory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Comp ilation.BuildMa nager.CreateIns tanceFromVirtua lPath(VirtualPa th virtualPath, Type requiredBaseTyp e, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54 System.Web.UI.P ageHandlerFacto ry.GetHandlerHe lper(HttpContex t context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.P ageHandlerFacto ry.System.Web.I HttpHandlerFact ory2.GetHandler (HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.Http Application.Map HttpHandler(Htt pContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute() +120 System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +155
What can I do to correct this error? What is the cause of the this error?
Thanks
Eric
I did more testing last night and found out this only works if you precompile
with updates turned on.
Using the merge tool, I found that updates need to be turned on. Why when
updates are turned on, the .precompiled files in the bin directory disappear,
but when the updates are turned off, the files appear?
Thanks
Eric
"Peter Bromberg [C# MVP]" wrote: Eric, With a precompiled web, all the Aspx files are just 86 byte "Stubs" - there is a precompiled assembly in the /bin folder to match it. Sounds like you have different settings in your different projects, or that you may have identical items in more than one project one of which is overwriting a previous one. You could try checking the "Make this precompiled web updateable" checkbox when you perform your Publish operation. Or, you could switch to the new Web Deployment Project add-in which is more like VS.NET 2003. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"eswanson" wrote:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode.
I created a new site on a windows 2003 server and copied the pre-compiled site up to this server.
Now I am getting the following error:
Server Error in '/' Application. --------------------------------------------------------------------------------
The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Http Exception: The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The file '/RA_Log_In.aspx' has not been pre-compiled, and cannot be requested.]
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultInter nal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPre compile) +3369638
System.Web.Comp ilation.BuildMa nager.GetVPathB uildResultWithN oAssert(HttpCon text context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPre compile) +93
System.Web.Comp ilation.BuildMa nager.GetVirtua lPathObjectFact ory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Comp ilation.BuildMa nager.CreateIns tanceFromVirtua lPath(VirtualPa th virtualPath, Type requiredBaseTyp e, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54 System.Web.UI.P ageHandlerFacto ry.GetHandlerHe lper(HttpContex t context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.P ageHandlerFacto ry.System.Web.I HttpHandlerFact ory2.GetHandler (HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.Http Application.Map HttpHandler(Htt pContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute() +120 System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +155
What can I do to correct this error? What is the cause of the this error?
Thanks
Eric
Hi Eric,
Yes, this is the expected behavior. For those xxxx.compiled files, there
will occur many such files when we turn off "updatable" , this is because
when turn on updatable, the ASP.NET pages (or ascx user controls) are
completely precompiled, even the aspx or ascx template file will not
contain any code or markup content(you can open the aspx/ascx file to
verify this), they're just a placeholder in such scenario. Then, at
runtime, when an aspx page is requested, how can the runtime locate the
page's actual page class/handler? This is just recorded in the
xxxx.compiled file, you can open it in text editor (it's of XML format) to
view its content. And when we turn on "updatable" in precompilation,
since the aspx/ascx file still contains the markup content and @Page
directives, the runtime can correctly find the page or other referenced
classes through the @Page or any other directives.
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kevin Frey |
last post by:
I am working on a test migration of our project to Visual Studio 2005 Beta 2
as a precursor to the availability of the full release of VS2005.
The most onerous problem so far concerns the requirement by LINK.EXE that if
an object file has used precompiled headers, then the resulting "precompiled
header object file" must also be one of the objects in the link.
(Whilst it does not affect my problem - I would dearly like to know why this...
|
by: |
last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I
keep getting the following error:-
Error In:
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750
--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed. at...
|
by: Steve Franks |
last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed
in my /App_Code directory. Everything runs fine locally. However when I
use the "Copy Web" function to upload the site to the production server, I
get the following error when trying to run the page on production:
"System.Web.HttpException: The directory '/App_Code' is not allowed
because the application is precompiled."
Anyone know this works fine locally but...
|
by: MartyNg |
last post by:
I have been looking online for pointers, and read mixed things. I was
hoping if I post direct questions here, I could get some solid answers.
I work for a small company with less than 10 web developers. We have
been using classic ASP for years. We do a lot of work with SQL Server,
and moving from classic ASP to ASP.NET has been a bit confusing. We're
not sure how to get started.
Is there a good resource for people who are stuck in...
|
by: eswanson |
last post by:
I have a site that has multiple web site projects. I got it working on my
windows xp sp2 computer in pre-compiled mode.
I created a new site on a windows 2003 server and copied the pre-compiled
site up to this server.
Now I am getting the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
| |
by: Don |
last post by:
I have an ASP.NET 2.0 application (in VB) based on the Personal Site Starter
kit that runs perfectly (no erros, no warnings, no exceptions) when run from
Visual Studio 2005 Team Suite using the development server VS contains. When
I publish it to a real server running Windows Server 2003, IIS 6, and .NET
Framework 2.0, I get strange compiler errors (even though the app was built
(to IL) on the development machine). All of the errors have...
|
by: clickon |
last post by:
I am working on a portal web application that is largely modular. I have
been working on it on a "development" website. Some sections have been
tested and are complete. I decided to set up a Live website on the same
server so i could work on the development web site without affecting people
using the completed sections. I set up the website and then used VS 2005 to
"publish" the site. This seemed to work OK, it precompiled the whole...
|
by: thersitz |
last post by:
Hi,
I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro
machine.
I installed it ok. I just attempted to load the Personal Web Site Starter
Kit (I downloaded off Microsoft's site) to use with VStudio 2005 --
Installing it from the MS site failed without any error messages. When I
used VSTudio to open, it loaded ok, but when I went to view the
default.aspx page I got this error:
|
by: jobs |
last post by:
Works great on my client when I test from vs.net 2005.
Howevever, when I deploy to the web server, I get this error: remotely
and local from the web server.
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |