473,545 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App_Code/ is not allowed because the application is precompiled

I recently use VS2005 to move my application to a remote server. When I
attempted to bring up the application I got the "App_Code/' is not allowed
because the application is precompiled". So I deleted that folder from the
remote site. After that the application came up just fine. I closed down
Vs2005 and when I brought it up (my original application) in VS 2005, I get
this warning that the said in essence "the application is pre-compiled and I
should be bring up and modifying this as it may cause the application to not
function". I told it to bring up the application. Now when I attempt to
copile, I get the "App_Code/' is not allowed because the application is
precompiled".

I'm guessing that all this has something to do with me moving my application
to a remote site, but I'm not sure what. I deleted that folder from my
application, had some code in there that I was testing out some code I found
on the net. Now the application compiles just fine.

But when I add a new page to the application, the compiler does not seem to
find errors on the application, such as a missing paragraph of the definition
of an variable. It will not allow me to debug this new web page, I get "No
symbols have been loaded for this document".

So what has happened and how to I fix it?
May 3 '07 #1
1 4571
What do you mean by "bring up"? How are you moving those files? You should
be using the publish feature on the Visual Studio build menu to move those
files - assuming you are using the web site template.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"JimHeavey" <Ji*******@disc ussions.microso ft.comwrote in message
news:B2******** *************** ***********@mic rosoft.com...
>I recently use VS2005 to move my application to a remote server. When I
attempted to bring up the application I got the "App_Code/' is not allowed
because the application is precompiled". So I deleted that folder from
the
remote site. After that the application came up just fine. I closed down
Vs2005 and when I brought it up (my original application) in VS 2005, I
get
this warning that the said in essence "the application is pre-compiled and
I
should be bring up and modifying this as it may cause the application to
not
function". I told it to bring up the application. Now when I attempt to
copile, I get the "App_Code/' is not allowed because the application is
precompiled".

I'm guessing that all this has something to do with me moving my
application
to a remote site, but I'm not sure what. I deleted that folder from my
application, had some code in there that I was testing out some code I
found
on the net. Now the application compiles just fine.

But when I add a new page to the application, the compiler does not seem
to
find errors on the application, such as a missing paragraph of the
definition
of an variable. It will not allow me to debug this new web page, I get
"No
symbols have been loaded for this document".

So what has happened and how to I fix it?

May 5 '07 #2

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

Similar topics

11
29782
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'...
5
6085
by: Jay Douglas | last post by:
I have a set of pages that inherit from a base class in the App_Code folder. The class looks something like: public class MyBaseClass : System.Web.UI.Page In various stages of the life cycle I need to add user controls to the page control container. i.e: protected override void OnInit(EventArgs e) {
2
1200
by: comzy | last post by:
I need few of my pages to be precompiled and i have to give it to other department so that they can have the basic functionality and in addition they will add their own pages and code. can anyone tell me how can i accomplish this in vs.net 2005 because once i precompile i couldnt find any APP_Code folder where i can place the .cs files. ...
0
940
by: Simon Gare | last post by:
Hi, have only precompiled version of application as original files have been lost. Trying to alter application in Visual Web Developer but error message reads "the directory is not allowed because the application is precompiled" Can anyone help, thanks in advance.
2
1867
by: Simon Gare | last post by:
Hi, have only precompiled version of application as original files have been lost. Trying to alter application in Visual Web Developer but error message reads "the directory is not allowed because the application is precompiled" Can anyone help, thanks in advance.
2
14573
by: pradeep_TP | last post by:
Hello, I am trying to use APP_CODE folder for all my class files under VS 2005. After adding APP_CODE in the solution explorer, I added a new web page by right clicking project and selecting add new item. I expected the code behind file (Default.aspx.cs) to automatically go under APP_CODE folder, but it didnt. I tried to drag and drop the...
4
6865
by: dan_vee | last post by:
Hello everyone, I've been out of the .NET loop for a little while. This question might seem trivial for many of you. But I 'm a bit stumped. I recently started to work with VS 2005 ASP.NET 2.0. The notion of App_Code didn't exist in the good old VS 2003. I have a web application, I deployed on a server. For security reasons, I can't use the...
4
1515
by: pamela fluente | last post by:
I have created and published a precompiled application. If I replace an ASP file, e.g. Default.ASP, with a new copy, by sending it via FTP, do I do something WRONG? Do I spoil the precompiled application or I can replace any file as I wish? Can I also just drag all the application files to replace the old version ?
1
2519
by: roberto | last post by:
I'm trying to deploy 32-bit web app to 64 bit environment; the app (web service) is deployed as precompiled app - App_Code.dll generated etc. The problem is I cannot find a way of generating 32-bit version of App_Code.dll. While "normal" projects have a property Platform Target resulting in a compiled assembly's manifest option set to...
0
7475
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...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7664
Oralloy
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. ...
0
7918
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...
0
7766
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...
0
5981
agi2029
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...
1
5341
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
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...
1
1897
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

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.