Help! Can't create a web app!

G

Guest

Okay. Pointed my default website to \inetput\wwwroot\webapp1. Restarted iis and tried localhost. Got "You are not authorized to view this
page".

What now?? THanks!!

1. IIS Security Tab
2. web.config <authentication> and and <authorization>
3. Directory permissions
 
T

trey

1. IIS Security Tab
2. web.config <authentication> and and <authorization>
3. Directory permissions

Thanks for the help.

Okay, here goes...

1. IIS Secutity Tab: Allow anonymous access is checked, allow IIS to control password is checked, integreated Window Authorization is
checked.

2. Web.config authentication set to none, authorization set to *.

3. Directory Permissions: Inetpub: System and Admin set to full control (along with other accounts!), wwwroot directory set with same. The
sub-directory for the web app (inetpub\wwwroot\webapp1 set to same.

Don't know what is wrong here. Thanks for the help. Any suggestions???
 
G

Guest

Thanks for the help.

Okay, here goes...

1. IIS Secutity Tab: Allow anonymous access is checked, allow IIS to control password is checked, integreated Window Authorization is
checked.

2. Web.config authentication set to none, authorization set to *.

3. Directory Permissions: Inetpub: System and Admin set to full control (along with other accounts!), wwwroot directory set with same. The
sub-directory for the web app (inetpub\wwwroot\webapp1 set to same.

Don't know what is wrong here. Thanks for the help. Any suggestions???

--
--------------------------------- --- -- -
Posted with NewsLeecher v3.8 Final
Web @http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Stop, I misunderstood the post regarding .aspx file. If you cannot run
an .aspx file, you don't have the ASP.NET properly installed on the
server. I know, that you did already aspnet_regiis -i

Now, try to uninstall it first

aspnet_regiis -u

after that intall it again

aspnet_regiis -i

and check what will happen.

I think Juan told me some time ago about this trick.

Hope it helps
 
T

trey

Stop, I misunderstood the post regarding .aspx file. If you cannot run
an .aspx file, you don't have the ASP.NET properly installed on the
server. I know, that you did already aspnet_regiis -i
Now, try to uninstall it first
aspnet_regiis -u
after that intall it again
aspnet_regiis -i
and check what will happen.
I think Juan told me some time ago about this trick.
Hope it helps

Thanks for the suggestion, but it didn't do the trick. I even went so far as to give "Everyone" full control on the C:\ drive, and I am still
unauthorized to view the .aspx control. What the heck is going on here. Any other suggestions?????


Thanks~!
 
J

Juan T. Llibre

Save this code as "identity.aspx"...

identity.aspx:
-------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
 
T

trey

Run it, and make sure that the identity returned has the directory permissions listed at:

Will do, but will have to get back to you in tomorrow morning. Just one quick question, how can I run this if I can't access any apsx page?
Will check all the directory issues on the link you gave me. Don't understand what could've happened as everything was just peachy last week.

Thanks very much!!!
 
G

Guest

Is there a web.config file in your web app? if yes, can you paste the
content here ?

Also verify that the application pool is corrrect (windows 2003 server) and
check for errors in the event lo.

Steve, he is on XP and the web.config is correct.
 
J

Juan T. Llibre

re:
!> Now, try to uninstall it first
!> aspnet_regiis -u

!> after that install it again
!> aspnet_regiis -i

!> I think Juan told me some time ago about this trick.

I remember that, too.

The reason that works is because just running aspnet_regiis -i doesn't recreate
the account ASP.NET runs as, while running aspnet_regiis -i *after* running
aspnet_regiis -u recreates the account and assigns the correct permissions
to the default account ASP.NET will run as.

All bets are off if the user is being impersonated, though.
For this to work, impersonation must be turned off.

Just doing that should allow unimpersonated basic aspx file processing.

If that doesn't fix it, I'd totally remove IIS and the .Net Framework and reinstall them,
re-installing IIS first, of course, and making sure that the .Net Framework's installation/setup
files aren't corrupt, re-downloading the .Net Framework, if necessary, to insure that.
 
M

mahimahi

Hi!

Hi Trey!

Try this:

Go to IIS-Service, right click on your website -> properties ->
documents. This is a list of your default docs. If your index.html or
what ever page you use as your default page is not listed you get this
error. (index.htm is listed) If it is not listed: insert it into the
list, than it will work.

Cheers

MahiMahi
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top