ASP.NET webs not working

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

Hi, I solved one problem only to move on to the next one. For a while now I
have had problems with my .NET sites not working on my localhost. The error
I receive when I run the page is:

"Server cannot access application directory 'c:\inetpub\wwwroot\clt\'. The
directory does not exist or is not accessible because of security settings."

I have created and ASP.NET application for the web site via IIS. Tried
giving it write permissions, giving it execute permissions for scripts, then
scripts and executables, basically tried changing many settings to get the
thing to work but no luck. I haven't touched any of the settings for the
..NET user account and don't know anything about 'Local Security Settings' to
even consider experimenting with it.

Does anyone know what's up? Should I just reinstall the .NET framework
again? I bypassed installing 1.0 first in favor of just having the one
install of 1.1.

Also, do I need to create an application for every .NET web manually.
Shouldn't FP do this for me? I don't program the pages using FP, just get
the raw aspx and ascx pages from my programmer (VB.NET) and build a site and
incorporate the design around the pages.

Hope someone can help
Cheers
 
"Server cannot access application directory 'c:\inetpub\wwwroot\clt\'. The
directory does not exist or is not accessible because of security
settings."

Did you determine whether or not the folder exists? Before making all of
those other changes (heaven knows now how it is all configured), you should
have checked that first. Then you would know whether or not it was a
security issue. If it is a security issue, the answer is relatively simple:
Give the ASP.Net user account the necessary permissions.

If you want to work with ASP.Net, you'd better bone up on security. ASP.Net
is a fully-compiled technology, and it has security out the wazoo.
Also, do I need to create an application for every .NET web manually.
Shouldn't FP do this for me?

If you create a new web correctly, FrontPage certainly WILL create the
application for you.

In conclusion, I don't know where you first went off track, but getting back
ON track pertty much depends on all of the "off track" stuff you configured
being set back as it was before, and it's pretty hard to tell from your
description. Kind of reminds me of the Tar Baby story. You should have asked
first before fooling with your configuration.

Setting up an ASP.Net web site is pretty darned simple with FrontPage. Just
install the .Net Framework, install ASP.Net on IIS, and use FrontPage to
create a new web site. All ASP.Net is is an ISAPI (Internet Server
Application Programming Interface) that handles requests for .aspx files. It
requires an application configured on the web, and ASP.Net to be running on
the web server. It runs under a specific User account (what account depends
upon what OS your web server is running), and that account must have the
necessary permissions to do what needs to be done. End of story.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Thank you Kevin. I am running IIS5.1 on XP PRO SP1

Naturally the folder exists as I can access it via C:\...\wwwroot\... and
localhost and the error message instantly led me to that possibility. I did
not ignore what is being reported. The *few* changes I made to the
application settings were simple and easily reversible in an effort to
eliminate possibilities. As I mentioned, I have no idea on the appropriate
security settings or user rights the ASP.NET user account should have and
didn't want to risk messing with that. The ASP.NET Machine Account is a
member of Users. The Default Web Site in IIS has "Anonymous access" checked.
The default security and applications should be correctly configured by
default when I installed the framework. I don't like and resent having to
tweak or change anything to do with IIS or .NET and prefer if they just ran
normally from the start. IT DIDN'T.

FrontPage03 DIDN'T create the application when I published the web from the
live Internet site to my local XP Pro machine (naturally I let FP create the
web on the localhost not just published to a directory in wwwroot). How
could I publish the site incorrectly???

Everything is set to default settings IIS and .NET. The only difference is
that I created a application for that web in IIS as FP didn't. Like many
issues with software interaction, it should be "pretty darned simple" but
how many times does something simple just not work. E.g.. There is an update
available for my XP OS (SP2) so my auto update says. It is a very simple to
click on that icon in my system tray and install it and Microsoft has made
this process very simple for me but as you probably know, the XP ng is
getting overrun with support questions and problems with SP2. Sometimes
things don't work the way they should.
 
FP will generally only set the Application Root on root or subweb, when you have use the Tools | Web
/ Site Settings | Database function to create a connection/global.asa file.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thanks for that Thomas. Then if that is the case, is it "usually" a simple
process of creating an application for that web in IIS and allowing the
default 'scripts only' if I want to incorporate ASP.NET functionality to a
site without adding the database function?
 
I tend to always go into IIS and verify the Application Root setting for each web / subweb on my
local Windows 2003 server.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
You can create an Application in the IIS snap-in by right-clicking the
folder and selecting "Properties" from the context menu. The Home Directory
tab has an "Application Settings" box, with a "Create" button (if there is
no application currently configured). Click that button to create your
application.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Back
Top