Having issue with ASPX file

W

welch.ja

I have win2003 server I'm using for a dev server and when I run
index.aspx file or any aspx file locally I get the error
"System.Web.HttpException: The directory '/App_Code/' is not allowed
because the application is precompiled" I copied all the files from my
website that is on the web now (and works fine) to insure it's the most
current files. How do i resolve this issue on my local dev server?

Jeff
 
C

Cowboy \(Gregory A. Beamer\)

Dump the DLLs in the /bin folder and recompile locally. That will get rid of
the precompile error.



NOTE: In 2.0, if you use the precompile option to deploy, you cannot simply
copy the executables back to a local box which is set for development. In a
precompile, there is no app_code folder, as "compile on the fly" is not an
option.



Your other option is to set up the server to allow compile on the fly (not a
bad option with many apps, although there are good reasons not to do it).



In case it I was not clear: Your issue is not with the ASPX file, but with
the compiled binary.


--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top