Re: Web application setup problem on Win 2003



You're very much welcome, Keith, and I'm glad you're up and running again!



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Rabbit" <a@xxxxx> wrote in message news:OypRiwiSGHA.4792@xxxxxxxxxxxxxxxxxxxxxxx
Juan,

Thanks very much, the problem fixed, its likely because I accidentially uploaded the \AppCode
directory onto the web directory. After i delete all the files, just upload the *compiled*
directory onto it. All works!

Keith
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:uphnpWeSGHA.4740@xxxxxxxxxxxxxxxxxxxxxxx
re:
I just copy the whole directory across to Win 2003's new web directory

You should copy the *compiled* directory, not the original project files.

In other words, you don't copy
My Documents\Visual Studio 2005\Projects\WebSite1\

You copy :
My Documents\Visual Studio 2005\Projects\WebSite1\PrecompiledWeb\WebSite1

where \Website1 is the name of the Application you Publish.

In any case, check to see if PrecompiledApp.config has the setting :

updatable="true"

If it has updatable="false", that's the problem.

One last thing : you don't need to upload the App_Code directory if you Publish the website.

Everything in the App_Code directory, in the website project, will be compiled into
an assembly in the /bin directory, named "App_Code.dll" which is what you should
upload, as part of your complete upload of

My Documents\Visual Studio 2005\Projects\WebSite1\PrecompiledWeb\WebSite1





Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Rabbit" <a@xxxxx> wrote in message news:OHaO33dSGHA.5156@xxxxxxxxxxxxxxxxxxxxxxx
Juan,

Thx, sorry about my typo mistake, I'd already used http://localhost/Webapp/index.aspx for
debugging purpose, that was the error message it give in IE.

You said about checking pre-compile settings, do you mean the PrecompiledApp.config? so far I
didn't change anything, I run it on my development platform (using Win XP) which is fine, then I
just copy the whole directory across to Win 2003's new web directory, of course i checked the
asp.net version is 2.0.5... and other IIS setting, just don't know why such error message came
up?


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23bolCpdSGHA.4900@xxxxxxxxxxxxxxxxxxxxxxx
On closer inspection, try :

http://localhost/WebApp/index.aspx

You might also want to check your pre-compile settings.

If you didn't allow updates to the pre-compiled app, when you pre-compiled it,
and later attempted to update any of its pages, that error would be reflective
of that situation, too.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Rabbit" <a@xxxxx> wrote in message news:u1GsTedSGHA.196@xxxxxxxxxxxxxxxxxxxxxxx
a little bit more information, the error came up when I access the main web page of the site
(e.g. http://myFirstApp/index.aspx)

Anyone can tell me what mistake I made on setting up the web application.

Thx.
"Rabbit" <a@xxxxx> wrote in message news:%23AjQvEdSGHA.1572@xxxxxxxxxxxxxxxxxxxxxxx
Dear all,

Does anyone know how to resolve following setup problem, I developed my application(using
.net 2.0) which will connect Access database on my Win XP, everything works fine, but when I
place the web folder onto my Win 2003 server, set up a virtual directory as web application,
the following error message came up.


Server Error in '/WebApp' Application.
-------------------------------------------------------------------------------------------------

The directory '/WebApp/App_Code/' is not allowed because the application is precompiled.
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.HttpException: The directory '/WebApp/App_Code/' is not allowed
because the application is precompiled.

I wonder anything i missed on setting my web application!

Thanks in advanced!
Keith













.



Relevant Pages

  • Re: global.aspx Application_error does not fire on anything other than
    ... Juan T. Llibre, asp.net MVP ... asp.net faq: http://asp.net.do/faq/ ... be able to get the error message ok... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Run-time check failure #0
    ... >What do you mean by different calling convention? ... More often than not, the problem is what the error message says, and ... MVP VC++ FAQ: http://www.mvps.org/vcfaq ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Sub Site
    ... Did you configure "NewSite" as a virtual directory? ... Juan T. Llibre, asp.net MVP ... asp.net faq: http://asp.net.do/faq/ ... I get an error message - Server Error in '/' Application. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Possible Virus ??
    ... The add-in is notoriously buggy and does little of any real use, ... Graham Mayor - Word MVP ... >> The error message you are encountering when you post is referring to ... >> error message then please let us know so we can pass this information ...
    (microsoft.public.word.newusers)
  • Re: AUTOEXE.NT Error Message
    ... >I recently had a problem with installing some programs because of a ... >"Autoexe.nt" Error Message. ... virus scan of your hard drive. ... Follow this up with a visit to the free online spyware check on MVP ...
    (microsoft.public.windowsxp.perform_maintain)