Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem deploying ASP.NET application

Status
Not open for further replies.

tembalena

Programmer
Apr 17, 2001
37
ZA
Hi,
I cannot get my asp.net application running on my remote web server (it's fine locally). I have a few sites on this remote server. I want the asp.net application in a directory called /Members/ off the one site.
So I created the /Members/ directory, ftp'd the files needed to run the app into this directory, then created a /bin/ directory off /Members/ and ftp'd the .dll of the into it. When I try to browse to this directory, I get a 'Runtime Error' which tells me to edit <customErrors> to be able to see the full error, which I do, but still get this error.
Do I need to build my application in any specific way to get it working on another server? Do I need to create a virtual directory under the site in which I want it running (which I did try but still no luck)? And why would the web.config changes not be recognised for me to see the details of the error?
Any help will be greatly appreciated.
Thanks,
Tembalena
 
You most likely need to go into the IIS Manager for the site, and create an application for your root.

This can be done by right clicking on the directory name, and asking for properties. At the bottom of that window, you'll see the application line. It should be greyed out. Simply click the button to the right called &quot;Create&quot;, and things should begin working.

good luck! :)
paul
penny1.gif
penny1.gif
 
I *think* what Paul was actually suggesting was that your
should ALSO be a virtual directory (correct me if I'm wrong buddy).

Give that a try, it might help.

D
 
You need to as Paul said not only make a virtual directory but also an application. Once you have made the dir a virtual directory, do as Paul said. Go to the properties of that directory and press the create button beside the greyed out application name line. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Thanks, yes, I'd done that, but still the same.
I've now tried to access it from the browser on the actual server it's on and this is the error I'm getting:
Server cannot access application directory
The directory does not exist or is not accessible because of security settings.
The security settings for that directory are the same as the others, which are accessible, although the others aren't application directories.
Any ideas?
Thanks so much for all your help.
 
give DOMAIN\ASPNET user account read access on the directory.
penny1.gif
penny1.gif
 
Aaagh, still not working.

Must I have my .dll somewhere else perhaps, eg. I have another /bin/ in the root directory of the website, and then the /bin/ in my application directory which holds the dll. Could this be a problem?
ie.
* - this holds files/code that has nothing to do with my asp.net app
* - this holds the .dll
* - holds my .aspx files

Thanks again!
 
Directory structure looks fine.

What's the exact error msg that comes up when you browse the site locally?
penny1.gif
penny1.gif
 
The error I get is:

----Error---
Access denied to 'D:\Inetpub\ directory. Failed to start monitoring directory changes.

Exception Details: System.Web.HttpException: Access denied to 'D:\Inetpub\ directory. Failed to start monitoring directory changes.

Stack Trace:

[HttpException (0x80004005): Access denied to 'D:\Inetpub\ directory. Failed to start monitoring directory changes.]
System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +446
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +324

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +927 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
----End Error---

This is the directory to which I point my application's virtual directory I created in my site's root directory.

Thanks for any help.
 
It's working! Thank you all for your help, I had to give all parent directories ASPNET user read/execute permissions.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top