aspx-files in subdirectories

A

Andreas Zita

Hi

I have a asp-application with a root-subfolder containing aspx-files. When
first starting the app by requesting one of these subdir-aspxfiles the app
won't run at all. It stops working until I restart the app and request a
root-aspx-file as the first request.

Is it not possible to have aspx-files in subdirs on a asp.net app?

/Andreas
 
A

Andreas Zita

Never mind! :) I have located the problem.

I initiated the app class with the a path, Server.MapPath("") instead of
Server.MapPath("~"). In my code this casued a lot of errors. The ""-case
points to the folder to which the first request was made. The "~" points to
the root of the app for the initiating request.

/Andreas
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top