473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

VS2008 HTTP 403 Help!!

I've been away from ASPNET - I open up a new Web app in VS2008 and go into
properties and select to use IIS instead of the personal web server. Then
I run in debug mode and it says I have to set the Debug= True in the
Web.config which I do. Then try to run it again and it says I must enable
integrated security which I do. I then try to run it again and get the HTTP
403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer
was able to connect to the website, but it does not have permission to view
the webpage."

What have I got to do to get around this to debug a simple ASPNET app?

TIA
Harry
Jul 8 '08 #1
16 2286
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS instead of
the personal web server. Then I run in debug mode and it says I have to set the Debug= True in the Web.config which I
do. Then try to run it again and it says I must enable integrated security which I do. I then try to run it again and
get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the
website, but it does not have permission to view the webpage."

What have I got to do to get around this to debug a simple ASPNET app?

TIA
Harry

Jul 8 '08 #2
Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into IIS
I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's
physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
>I've been away from ASPNET - I open up a new Web app in VS2008 and go
into properties and select to use IIS instead of the personal web server.
Then I run in debug mode and it says I have to set the Debug= True in the
Web.config which I do. Then try to run it again and it says I must enable
integrated security which I do. I then try to run it again and get the
HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet
Explorer was able to connect to the website, but it does not have
permission to view the webpage."

What have I got to do to get around this to debug a simple ASPNET app?

TIA
Harry


Jul 8 '08 #3
And I've given full rights on the directory where the web app actual files
reside...
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ep**************@TK2MSFTNGP02.phx.gbl...
Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into
IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
>Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's
physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
>>I've been away from ASPNET - I open up a new Web app in VS2008 and go
into properties and select to use IIS instead of the personal web
server. Then I run in debug mode and it says I have to set the Debug=
True in the Web.config which I do. Then try to run it again and it says
I must enable integrated security which I do. I then try to run it
again and get the HTTP 403 error - " This error (HTTP 403 Forbidden)
means that Internet Explorer was able to connect to the website, but it
does not have permission to view the webpage."

What have I got to do to get around this to debug a simple ASPNET app?

TIA
Harry



Jul 8 '08 #4
re:
!And I've given full rights on the directory where the web app actual files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
And I've given full rights on the directory where the web app actual files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
>Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
>>Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS instead
of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in the Web.config
which I do. Then try to run it again and it says I must enable integrated security which I do. I then try to run
it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer was able to
connect to the website, but it does not have permission to view the webpage."

What have I got to do to get around this to debug a simple ASPNET app?

TIA
Harry



Jul 8 '08 #5
Thanks for hanging in here with me on this one Juan!

I'm running XP SP3

Gave the aspnet_wp account (PHG\ASPNET) full accesss to the directory where
the web app files are physically located.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
re:
!And I've given full rights on the directory where the web app actual
files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>And I've given full rights on the directory where the web app actual
files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ep**************@TK2MSFTNGP02.phx.gbl...
>>Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into
IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's
physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
I've been away from ASPNET - I open up a new Web app in VS2008 and go
into properties and select to use IIS instead of the personal web
server. Then I run in debug mode and it says I have to set the Debug=
True in the Web.config which I do. Then try to run it again and it
says I must enable integrated security which I do. I then try to run
it again and get the HTTP 403 error - " This error (HTTP 403
Forbidden) means that Internet Explorer was able to connect to the
website, but it does not have permission to view the webpage."
>
What have I got to do to get around this to debug a simple ASPNET app?
>
TIA
Harry
>




Jul 8 '08 #6
If I'm not mistaken, the account which should be given access rights to any physical directory
which holds ASP.NET files for Windows XP is the MachineName\ASPNET account.

Please save the following code as "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>
-----------------

Save it to the wwwroot directory, and run it as :

http://localhost/identity.aspx

You can click that link after you save the file to the wwwroot directory.
Then, please post back the results you got.

I think you will get back "YourMachineName\ASPNET",
unless you have changed the account by configuring an account to impersonate.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:uj**************@TK2MSFTNGP03.phx.gbl...
Thanks for hanging in here with me on this one Juan!

I'm running XP SP3

Gave the aspnet_wp account (PHG\ASPNET) full accesss to the directory where the web app files are physically located.

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:u4**************@TK2MSFTNGP05.phx.gbl...
>re:
!And I've given full rights on the directory where the web app actual files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
>>And I've given full rights on the directory where the web app actual files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's physical directory ?
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
>I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS
>instead of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in the
>Web.config which I do. Then try to run it again and it says I must enable integrated security which I do. I then
>try to run it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer
>was able to connect to the website, but it does not have permission to view the webpage."
>>
>What have I got to do to get around this to debug a simple ASPNET app?
>>
>TIA
>Harry
>>
>
>




Jul 9 '08 #7
Thanks Juan

Got
ASP.NET is running as the account : SIMPSON2\ASPNET

And the physical directory the virtual hits has full access granted to
ASP.NET Machine Account (SIMPSON2\ASPNET)

VS2008 defaults to using the personal server - which works fine - no HTTP
403 error with it. Just when I switch to IIS in VS2008 project popreties -
WEB do I run into problems
Could it be here that things a screwed up?

I set the project URL to the virtual directory
http://localhost/TestWebApp

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
re:
!And I've given full rights on the directory where the web app actual
files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>And I've given full rights on the directory where the web app actual
files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ep**************@TK2MSFTNGP02.phx.gbl...
>>Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into
IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's
physical directory ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
I've been away from ASPNET - I open up a new Web app in VS2008 and go
into properties and select to use IIS instead of the personal web
server. Then I run in debug mode and it says I have to set the Debug=
True in the Web.config which I do. Then try to run it again and it
says I must enable integrated security which I do. I then try to run
it again and get the HTTP 403 error - " This error (HTTP 403
Forbidden) means that Internet Explorer was able to connect to the
website, but it does not have permission to view the webpage."
>
What have I got to do to get around this to debug a simple ASPNET app?
>
TIA
Harry
>




Jul 9 '08 #8
re:
!Just when I switch to IIS in VS2008 project properties - WEB do I run into problems

I just reproduced what you're seeing.

I think it may be related to VS 2008 running ASP.NET apps as MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case : MachineName\ASPNET
and in my case, MachineName\Network Service.

What I don't understand is why the MachineName\ASP.NET_account's permissions don't take hold,
even though the account is explicitly granted access permissions.

I did find a workaround for your problem which, as mentioned, I was able to reproduce.

What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the directory where the project was published to.

After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.

Also, if I open the property pages for the project,
and configure the "Use custom server" option to http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse the project from within VS 2008 using IIS.

So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:um**************@TK2MSFTNGP02.phx.gbl...
Thanks Juan

Got
ASP.NET is running as the account : SIMPSON2\ASPNET

And the physical directory the virtual hits has full access granted to ASP.NET Machine Account (SIMPSON2\ASPNET)

VS2008 defaults to using the personal server - which works fine - no HTTP 403 error with it. Just when I switch to
IIS in VS2008 project popreties - WEB do I run into problems
Could it be here that things a screwed up?

I set the project URL to the virtual directory
http://localhost/TestWebApp

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:u4**************@TK2MSFTNGP05.phx.gbl...
>re:
!And I've given full rights on the directory where the web app actual files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
>>And I've given full rights on the directory where the web app actual files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
Is your ASP.NET application running as an IIS application ?
Does the account ASP.NET runs as, have read permissions to the app's physical directory ?
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
>I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS
>instead of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in the
>Web.config which I do. Then try to run it again and it says I must enable integrated security which I do. I then
>try to run it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer
>was able to connect to the website, but it does not have permission to view the webpage."
>>
>What have I got to do to get around this to debug a simple ASPNET app?
>>
>TIA
>Harry
>>
>
>





Jul 9 '08 #9
Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS. D:\_VS2008 PROJECTS\TestWebApp\TestWebApp\Web.config 70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev server
and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uh*************@TK2MSFTNGP04.phx.gbl...
re:
!Just when I switch to IIS in VS2008 project properties - WEB do I run
into problems

I just reproduced what you're seeing.

I think it may be related to VS 2008 running ASP.NET apps as
MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case :
MachineName\ASPNET
and in my case, MachineName\Network Service.

What I don't understand is why the MachineName\ASP.NET_account's
permissions don't take hold,
even though the account is explicitly granted access permissions.

I did find a workaround for your problem which, as mentioned, I was able
to reproduce.

What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the directory
where the project was published to.

After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.

Also, if I open the property pages for the project,
and configure the "Use custom server" option to
http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse the
project from within VS 2008 using IIS.

So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:um**************@TK2MSFTNGP02.phx.gbl...
>Thanks Juan

Got
ASP.NET is running as the account : SIMPSON2\ASPNET

And the physical directory the virtual hits has full access granted to
ASP.NET Machine Account (SIMPSON2\ASPNET)

VS2008 defaults to using the personal server - which works fine - no HTTP
403 error with it. Just when I switch to
IIS in VS2008 project popreties - WEB do I run into problems
Could it be here that things a screwed up?

I set the project URL to the virtual directory
http://localhost/TestWebApp

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
>>re:
!And I've given full rights on the directory where the web app actual
files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl.. .
And I've given full rights on the directory where the web app actual
files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message
news:ep**************@TK2MSFTNGP02.phx.gbl...
Those were the first things I checked. Yes.
It creates a virtual directory in the project properties. When I go
into IIS I see it as a web app.
>
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl.. .
>Is your ASP.NET application running as an IIS application ?
>Does the account ASP.NET runs as, have read permissions to the app's
>physical directory ?
>>
>>
>>
>>
>Juan T. Llibre, asp.net MVP
>asp.net faq : http://asp.net.do/faq/
>foros de asp.net, en español : http://asp.net.do/foros/
>======================================
>"Harry Simpson" <hs*******@phgt.netwrote in message
>news:ec**************@TK2MSFTNGP03.phx.gbl. ..
>>I've been away from ASPNET - I open up a new Web app in VS2008 and
>>go into properties and select to use IIS
>>instead of the personal web server. Then I run in debug mode and it
>>says I have to set the Debug= True in the
>>Web.config which I do. Then try to run it again and it says I must
>>enable integrated security which I do. I then
>>try to run it again and get the HTTP 403 error - " This error (HTTP
>>403 Forbidden) means that Internet Explorer
>>was able to connect to the website, but it does not have permission
>>to view the webpage."
>>>
>>What have I got to do to get around this to debug a simple ASPNET
>>app?
>>>
>>TIA
>>Harry
>>>
>>
>>
>
>





Jul 9 '08 #10
re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory for your app.

re:
!Looks like when you publish this it just reverts to using the old dev server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the "Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory name created in IIS)
and you will be able to browse the project from within VS 2008 using IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
This error can be caused by a virtual directory not being configured as an application in IIS. D:\_VS2008
PROJECTS\TestWebApp\TestWebApp\Web.config 70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:uh*************@TK2MSFTNGP04.phx.gbl...
>re:
!Just when I switch to IIS in VS2008 project properties - WEB do I run into problems

I just reproduced what you're seeing.

I think it may be related to VS 2008 running ASP.NET apps as MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case : MachineName\ASPNET
and in my case, MachineName\Network Service.

What I don't understand is why the MachineName\ASP.NET_account's permissions don't take hold,
even though the account is explicitly granted access permissions.

I did find a workaround for your problem which, as mentioned, I was able to reproduce.

What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the directory where the project was published to.

After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.

Also, if I open the property pages for the project,
and configure the "Use custom server" option to http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse the project from within VS 2008 using IIS.

So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:um**************@TK2MSFTNGP02.phx.gbl...
>>Thanks Juan

Got
ASP.NET is running as the account : SIMPSON2\ASPNET

And the physical directory the virtual hits has full access granted to ASP.NET Machine Account (SIMPSON2\ASPNET)

VS2008 defaults to using the personal server - which works fine - no HTTP 403 error with it. Just when I switch to
IIS in VS2008 project popreties - WEB do I run into problems
Could it be here that things a screwed up?

I set the project URL to the virtual directory
http://localhost/TestWebApp

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:u4**************@TK2MSFTNGP05.phx.gbl...
re:
!And I've given full rights on the directory where the web app actual files reside...

To which account did you give rights to ?
Which OS are you running VS 2008 on ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
And I've given full rights on the directory where the web app actual files reside...
"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
>Those were the first things I checked. Yes.
>It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.
>>
>"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
>>Is your ASP.NET application running as an IIS application ?
>>Does the account ASP.NET runs as, have read permissions to the app's physical directory ?
>>>
>>>
>>>
>>>
>>Juan T. Llibre, asp.net MVP
>>asp.net faq : http://asp.net.do/faq/
>>foros de asp.net, en español : http://asp.net.do/foros/
>>======================================
>>"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
>>>I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS
>>>instead of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in the
>>>Web.config which I do. Then try to run it again and it says I must enable integrated security which I do. I
>>>then
>>>try to run it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet Explorer
>>>was able to connect to the website, but it does not have permission to view the webpage."
>>>>
>>>What have I got to do to get around this to debug a simple ASPNET app?
>>>>
>>>TIA
>>>Harry
>>>>
>>>
>>>
>>
>>
>
>





Jul 9 '08 #11
Thanks Juan!

I tried the workaround and could never get it to work - I'll send this to MS
and maybe somebody can help. It's amazing that we're the only two people in
the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eF****************@TK2MSFTNGP05.phx.gbl...
re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
>Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an
application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory
for your app.

re:
!Looks like when you publish this it just reverts to using the old dev
server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the
"Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory
name created in IIS)
and you will be able to browse the project from within VS 2008 using IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS. D:\_VS2008 PROJECTS\TestWebApp\TestWebApp\Web.config
70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev
server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uh*************@TK2MSFTNGP04.phx.gbl...
>>re:
!Just when I switch to IIS in VS2008 project properties - WEB do I run
into problems

I just reproduced what you're seeing.

I think it may be related to VS 2008 running ASP.NET apps as
MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case :
MachineName\ASPNET
and in my case, MachineName\Network Service.

What I don't understand is why the MachineName\ASP.NET_account's
permissions don't take hold,
even though the account is explicitly granted access permissions.

I did find a workaround for your problem which, as mentioned, I was able
to reproduce.

What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the directory
where the project was published to.

After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.

Also, if I open the property pages for the project,
and configure the "Use custom server" option to
http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse the
project from within VS 2008 using IIS.

So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:um**************@TK2MSFTNGP02.phx.gbl...
Thanks Juan

Got
ASP.NET is running as the account : SIMPSON2\ASPNET

And the physical directory the virtual hits has full access granted to
ASP.NET Machine Account (SIMPSON2\ASPNET)

VS2008 defaults to using the personal server - which works fine - no
HTTP 403 error with it. Just when I switch to
IIS in VS2008 project popreties - WEB do I run into problems
Could it be here that things a screwed up?

I set the project URL to the virtual directory
http://localhost/TestWebApp

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
re:
!And I've given full rights on the directory where the web app
actual files reside...
>
To which account did you give rights to ?
Which OS are you running VS 2008 on ?
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl.. .
>And I've given full rights on the directory where the web app actual
>files reside...
>"Harry Simpson" <hs*******@phgt.netwrote in message
>news:ep**************@TK2MSFTNGP02.phx.gbl. ..
>>Those were the first things I checked. Yes.
>>It creates a virtual directory in the project properties. When I go
>>into IIS I see it as a web app.
>>>
>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>>news:er**************@TK2MSFTNGP02.phx.gbl.. .
>>>Is your ASP.NET application running as an IIS application ?
>>>Does the account ASP.NET runs as, have read permissions to the
>>>app's physical directory ?
>>>>
>>>>
>>>>
>>>>
>>>Juan T. Llibre, asp.net MVP
>>>asp.net faq : http://asp.net.do/faq/
>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>======================================
>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>news:ec**************@TK2MSFTNGP03.phx.gbl. ..
>>>>I've been away from ASPNET - I open up a new Web app in VS2008 and
>>>>go into properties and select to use IIS
>>>>instead of the personal web server. Then I run in debug mode and
>>>>it says I have to set the Debug= True in the
>>>>Web.config which I do. Then try to run it again and it says I must
>>>>enable integrated security which I do. I then
>>>>try to run it again and get the HTTP 403 error - " This error
>>>>(HTTP 403 Forbidden) means that Internet Explorer
>>>>was able to connect to the website, but it does not have
>>>>permission to view the webpage."
>>>>>
>>>>What have I got to do to get around this to debug a simple ASPNET
>>>>app?
>>>>>
>>>>TIA
>>>>Harry
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>





Jul 10 '08 #12
Juan,

Case is at
http://connect.microsoft.com/VisualS...dbackID=355757
if you're interested. Ironic thing was When I was going through the routine
which had failed so many times to do the bug report, it worked! But I
cannot find a way to get these other apps to work correctly at all....

Thanks
Harry

"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Thanks Juan!

I tried the workaround and could never get it to work - I'll send this to
MS and maybe somebody can help. It's amazing that we're the only two
people in the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eF****************@TK2MSFTNGP05.phx.gbl...
>re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
>>Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an
application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory
for your app.

re:
!Looks like when you publish this it just reverts to using the old dev
server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the
"Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory
name created in IIS)
and you will be able to browse the project from within VS 2008 using IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS. D:\_VS2008 PROJECTS\TestWebApp\TestWebApp\Web.config
70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev
server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uh*************@TK2MSFTNGP04.phx.gbl...
re:
!Just when I switch to IIS in VS2008 project properties - WEB do I
run into problems

I just reproduced what you're seeing.

I think it may be related to VS 2008 running ASP.NET apps as
MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case :
MachineName\ASPNET
and in my case, MachineName\Network Service.

What I don't understand is why the MachineName\ASP.NET_account's
permissions don't take hold,
even though the account is explicitly granted access permissions.

I did find a workaround for your problem which, as mentioned, I was
able to reproduce.

What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the
directory where the project was published to.

After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.

Also, if I open the property pages for the project,
and configure the "Use custom server" option to
http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse
the project from within VS 2008 using IIS.

So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:um**************@TK2MSFTNGP02.phx.gbl...
Thanks Juan
>
Got
ASP.NET is running as the account : SIMPSON2\ASPNET
>
And the physical directory the virtual hits has full access granted to
ASP.NET Machine Account (SIMPSON2\ASPNET)
>
VS2008 defaults to using the personal server - which works fine - no
HTTP 403 error with it. Just when I switch to
IIS in VS2008 project popreties - WEB do I run into problems
Could it be here that things a screwed up?
>
I set the project URL to the virtual directory
http://localhost/TestWebApp
>
Thanks
Harry
>
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl.. .
>re:
>!And I've given full rights on the directory where the web app
>actual files reside...
>>
>To which account did you give rights to ?
>Which OS are you running VS 2008 on ?
>>
>>
>>
>>
>Juan T. Llibre, asp.net MVP
>asp.net faq : http://asp.net.do/faq/
>foros de asp.net, en español : http://asp.net.do/foros/
>======================================
>"Harry Simpson" <hs*******@phgt.netwrote in message
>news:%2****************@TK2MSFTNGP02.phx.gbl. ..
>>And I've given full rights on the directory where the web app actual
>>files reside...
>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>news:ep**************@TK2MSFTNGP02.phx.gbl.. .
>>>Those were the first things I checked. Yes.
>>>It creates a virtual directory in the project properties. When I go
>>>into IIS I see it as a web app.
>>>>
>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>>>news:er**************@TK2MSFTNGP02.phx.gbl. ..
>>>>Is your ASP.NET application running as an IIS application ?
>>>>Does the account ASP.NET runs as, have read permissions to the
>>>>app's physical directory ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Juan T. Llibre, asp.net MVP
>>>>asp.net faq : http://asp.net.do/faq/
>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>======================================
>>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>>news:ec**************@TK2MSFTNGP03.phx.gbl ...
>>>>>I've been away from ASPNET - I open up a new Web app in VS2008
>>>>>and go into properties and select to use IIS
>>>>>instead of the personal web server. Then I run in debug mode and
>>>>>it says I have to set the Debug= True in the
>>>>>Web.config which I do. Then try to run it again and it says I
>>>>>must enable integrated security which I do. I then
>>>>>try to run it again and get the HTTP 403 error - " This error
>>>>>(HTTP 403 Forbidden) means that Internet Explorer
>>>>>was able to connect to the website, but it does not have
>>>>>permission to view the webpage."
>>>>>>
>>>>>What have I got to do to get around this to debug a simple ASPNET
>>>>>app?
>>>>>>
>>>>>TIA
>>>>>Harry
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>





Jul 11 '08 #13
Thanks for following up, Harry.
That way, we will all benefit from the resolution.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:OH**************@TK2MSFTNGP05.phx.gbl...
Juan,

Case is at
http://connect.microsoft.com/VisualS...dbackID=355757
if you're interested. Ironic thing was When I was going through the routine which had failed so many times to do the
bug report, it worked! But I cannot find a way to get these other apps to work correctly at all....

Thanks
Harry

"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>Thanks Juan!

I tried the workaround and could never get it to work - I'll send this to MS and maybe somebody can help. It's
amazing that we're the only two people in the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:eF****************@TK2MSFTNGP05.phx.gbl...
>>re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory for your app.

re:
!Looks like when you publish this it just reverts to using the old dev server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the "Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory name created in IIS)
and you will be able to browse the project from within VS 2008 using IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application
level. This error can be caused by a virtual directory not being configured as an application in IIS. D:\_VS2008
PROJECTS\TestWebApp\TestWebApp\Web.config 70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:uh*************@TK2MSFTNGP04.phx.gbl...
re:
!Just when I switch to IIS in VS2008 project properties - WEB do I run into problems
>
I just reproduced what you're seeing.
>
I think it may be related to VS 2008 running ASP.NET apps as MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case : MachineName\ASPNET
and in my case, MachineName\Network Service.
>
What I don't understand is why the MachineName\ASP.NET_account's permissions don't take hold,
even though the account is explicitly granted access permissions.
>
I did find a workaround for your problem which, as mentioned, I was able to reproduce.
>
What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the directory where the project was published to.
>
After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.
>
Also, if I open the property pages for the project,
and configure the "Use custom server" option to http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse the project from within VS 2008 using IIS.
>
So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:um**************@TK2MSFTNGP02.phx.gbl...
>Thanks Juan
>>
>Got
>ASP.NET is running as the account : SIMPSON2\ASPNET
>>
>And the physical directory the virtual hits has full access granted to ASP.NET Machine Account (SIMPSON2\ASPNET)
>>
>VS2008 defaults to using the personal server - which works fine - no HTTP 403 error with it. Just when I switch
>to
>IIS in VS2008 project popreties - WEB do I run into problems
>Could it be here that things a screwed up?
>>
>I set the project URL to the virtual directory
>http://localhost/TestWebApp
>>
>Thanks
>Harry
>>
>"Juan T. Llibre" <no***********@nowhere.comwrote in message news:u4**************@TK2MSFTNGP05.phx.gbl...
>>re:
>>!And I've given full rights on the directory where the web app actual files reside...
>>>
>>To which account did you give rights to ?
>>Which OS are you running VS 2008 on ?
>>>
>>>
>>>
>>>
>>Juan T. Llibre, asp.net MVP
>>asp.net faq : http://asp.net.do/faq/
>>foros de asp.net, en español : http://asp.net.do/foros/
>>======================================
>>"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
>>>And I've given full rights on the directory where the web app actual files reside...
>>>"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
>>>>Those were the first things I checked. Yes.
>>>>It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.
>>>>>
>>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
>>>>>Is your ASP.NET application running as an IIS application ?
>>>>>Does the account ASP.NET runs as, have read permissions to the app's physical directory ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Juan T. Llibre, asp.net MVP
>>>>>asp.net faq : http://asp.net.do/faq/
>>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>>======================================
>>>>>"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
>>>>>>I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS
>>>>>>instead of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in
>>>>>>the
>>>>>>Web.config which I do. Then try to run it again and it says I must enable integrated security which I do. I
>>>>>>then
>>>>>>try to run it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet
>>>>>>Explorer
>>>>>>was able to connect to the website, but it does not have permission to view the webpage."
>>>>>>>
>>>>>>What have I got to do to get around this to debug a simple ASPNET app?
>>>>>>>
>>>>>>TIA
>>>>>>Harry
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>




Jul 11 '08 #14
Juan,

I figured it was something simple....cause it was so hard to solve.....
Seems like the web app project does not default to the ONLY aspx in a
project during debug run. Highlighting the default.aspx before debug start
or explicitly setting Default.aspx to the start page works. Otherwise in
debug it will not search for the default or index files to run - it just
HTTP 403s.

I don't remember every having this problem before VS2008....course I've been
doing mostly smart device apps until last week or so so maybe i'm just
really rusty....

Thanks for all your help....

Harry

"Harry Simpson" <hs*******@phgt.netwrote in message
news:OH**************@TK2MSFTNGP05.phx.gbl...
Juan,

Case is at
http://connect.microsoft.com/VisualS...dbackID=355757
if you're interested. Ironic thing was When I was going through the
routine which had failed so many times to do the bug report, it worked!
But I cannot find a way to get these other apps to work correctly at
all....

Thanks
Harry

"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Thanks Juan!

I tried the workaround and could never get it to work - I'll send this to
MS and maybe somebody can help. It's amazing that we're the only two
people in the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eF****************@TK2MSFTNGP05.phx.gbl...
>>re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an
application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory
for your app.

re:
!Looks like when you publish this it just reverts to using the old dev
server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the
"Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory
name created in IIS)
and you will be able to browse the project from within VS 2008 using
IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
Sure Juan - what's the url to the "Connect site" ?

Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS. D:\_VS2008
PROJECTS\TestWebApp\TestWebApp\Web.config 70

Seems like the publish took away the projects web app status.

My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\

Looks like when you publish this it just reverts to using the old dev
server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........

what's the url to the "Connect site" ?

Thanks
Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uh*************@TK2MSFTNGP04.phx.gbl...
re:
!Just when I switch to IIS in VS2008 project properties - WEB do I
run into problems
>
I just reproduced what you're seeing.
>
I think it may be related to VS 2008 running ASP.NET apps as
MachineName\Administrator,
while IIS runs them as MachineName\ASP.NET_account, in your case :
MachineName\ASPNET
and in my case, MachineName\Network Service.
>
What I don't understand is why the MachineName\ASP.NET_account's
permissions don't take hold,
even though the account is explicitly granted access permissions.
>
I did find a workaround for your problem which, as mentioned, I was
able to reproduce.
>
What I did was *publish* the project to a disk-based directory.
Then, I created a virtual directory in IIS which points to the
directory where the project was published to.
>
After that, using the option "Open web site" in VS 2008,
allowed me to open, edit and run the published project.
>
Also, if I open the property pages for the project,
and configure the "Use custom server" option to
http://localhost/ApplicationName/,
(the same virtual directory name I created in IIS) I can also browse
the project from within VS 2008 using IIS.
>
So, while this is a good workaround, it looks like you found a bug.
Can you file a bug report at the Connect site ?
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:um**************@TK2MSFTNGP02.phx.gbl.. .
>Thanks Juan
>>
>Got
>ASP.NET is running as the account : SIMPSON2\ASPNET
>>
>And the physical directory the virtual hits has full access granted
>to ASP.NET Machine Account (SIMPSON2\ASPNET)
>>
>VS2008 defaults to using the personal server - which works fine - no
>HTTP 403 error with it. Just when I switch to
>IIS in VS2008 project popreties - WEB do I run into problems
>Could it be here that things a screwed up?
>>
>I set the project URL to the virtual directory
>http://localhost/TestWebApp
>>
>Thanks
>Harry
>>
>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>news:u4**************@TK2MSFTNGP05.phx.gbl. ..
>>re:
>>!And I've given full rights on the directory where the web app
>>actual files reside...
>>>
>>To which account did you give rights to ?
>>Which OS are you running VS 2008 on ?
>>>
>>>
>>>
>>>
>>Juan T. Llibre, asp.net MVP
>>asp.net faq : http://asp.net.do/faq/
>>foros de asp.net, en español : http://asp.net.do/foros/
>>======================================
>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>news:%2****************@TK2MSFTNGP02.phx.gbl ...
>>>And I've given full rights on the directory where the web app
>>>actual files reside...
>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>news:ep**************@TK2MSFTNGP02.phx.gbl. ..
>>>>Those were the first things I checked. Yes.
>>>>It creates a virtual directory in the project properties. When I
>>>>go into IIS I see it as a web app.
>>>>>
>>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>>>>news:er**************@TK2MSFTNGP02.phx.gbl ...
>>>>>Is your ASP.NET application running as an IIS application ?
>>>>>Does the account ASP.NET runs as, have read permissions to the
>>>>>app's physical directory ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Juan T. Llibre, asp.net MVP
>>>>>asp.net faq : http://asp.net.do/faq/
>>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>>======================================
>>>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>>>news:ec**************@TK2MSFTNGP03.phx.gb l...
>>>>>>I've been away from ASPNET - I open up a new Web app in VS2008
>>>>>>and go into properties and select to use IIS
>>>>>>instead of the personal web server. Then I run in debug mode and
>>>>>>it says I have to set the Debug= True in the
>>>>>>Web.config which I do. Then try to run it again and it says I
>>>>>>must enable integrated security which I do. I then
>>>>>>try to run it again and get the HTTP 403 error - " This error
>>>>>>(HTTP 403 Forbidden) means that Internet Explorer
>>>>>>was able to connect to the website, but it does not have
>>>>>>permission to view the webpage."
>>>>>>>
>>>>>>What have I got to do to get around this to debug a simple
>>>>>>ASPNET app?
>>>>>>>
>>>>>>TIA
>>>>>>Harry
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>




Jul 11 '08 #15
re:
!the web app project does not default to the ONLY aspx in a project during debug run.

That's not exactly the bug... ;-)

re:
!Highlighting the default.aspx before debug start or explicitly setting Default.aspx to the start page works.
!Otherwise in debug it will not search for the default or index files to run - it just HTTP 403s.

That's an alleged workaround which doesn't work, not a solution to the bug.

They should fix the behavior in the next SP.
We don't need any "gotchas" in VS 2008... ;-)

I noticed the request that the bug report be closed,
and added a comment requesting that the bug report not be closed.

http://connect.microsoft.com/VisualS...dbackID=355757

I can still reproduce the problem in all its splendor... :-(

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
Juan,

I figured it was something simple....cause it was so hard to solve.....
Seems like the web app project does not default to the ONLY aspx in a project during debug run. Highlighting the
default.aspx before debug start or explicitly setting Default.aspx to the start page works. Otherwise in debug it will
not search for the default or index files to run - it just HTTP 403s.

I don't remember every having this problem before VS2008....course I've been doing mostly smart device apps until last
week or so so maybe i'm just really rusty....

Thanks for all your help....

Harry

"Harry Simpson" <hs*******@phgt.netwrote in message news:OH**************@TK2MSFTNGP05.phx.gbl...
>Juan,

Case is at
http://connect.microsoft.com/VisualS...dbackID=355757
if you're interested. Ironic thing was When I was going through the routine which had failed so many times to do the
bug report, it worked! But I cannot find a way to get these other apps to work correctly at all....

Thanks
Harry

"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Thanks Juan!

I tried the workaround and could never get it to work - I'll send this to MS and maybe somebody can help. It's
amazing that we're the only two people in the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message news:eF****************@TK2MSFTNGP05.phx.gbl...
re:
!what's the url to the "Connect site" ?

http://connect.microsoft.com/

You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.

re:
Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.

That error is caused by a virtual directory not being configured as an application in IIS.
Check in your IIS Manager, and make sure you created a virtual directory for your app.

re:
!Looks like when you publish this it just reverts to using the old dev server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS

You need to open the property pages for the project, and configure the "Use custom server"
option to http://localhost/ApplicationName/, (the same virtual directory name created in IIS)
and you will be able to browse the project from within VS 2008 using IIS.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
Sure Juan - what's the url to the "Connect site" ?
>
Also now after doing this I've getting the following error on build
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application
level. This error can be caused by a virtual directory not being configured as an application in IIS. D:\_VS2008
PROJECTS\TestWebApp\TestWebApp\Web.config 70
>
Seems like the publish took away the projects web app status.
>
My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\
>
Looks like when you publish this it just reverts to using the old dev server and not IIS
http://localhost:4788/TestWebApplication/
which does work but I want to use IIS........
>
what's the url to the "Connect site" ?
>
Thanks
Harry
>
"Juan T. Llibre" <no***********@nowhere.comwrote in message news:uh*************@TK2MSFTNGP04.phx.gbl...
>re:
>!Just when I switch to IIS in VS2008 project properties - WEB do I run into problems
>>
>I just reproduced what you're seeing.
>>
>I think it may be related to VS 2008 running ASP.NET apps as MachineName\Administrator,
>while IIS runs them as MachineName\ASP.NET_account, in your case : MachineName\ASPNET
>and in my case, MachineName\Network Service.
>>
>What I don't understand is why the MachineName\ASP.NET_account's permissions don't take hold,
>even though the account is explicitly granted access permissions.
>>
>I did find a workaround for your problem which, as mentioned, I was able to reproduce.
>>
>What I did was *publish* the project to a disk-based directory.
>Then, I created a virtual directory in IIS which points to the directory where the project was published to.
>>
>After that, using the option "Open web site" in VS 2008,
>allowed me to open, edit and run the published project.
>>
>Also, if I open the property pages for the project,
>and configure the "Use custom server" option to http://localhost/ApplicationName/,
>(the same virtual directory name I created in IIS) I can also browse the project from within VS 2008 using IIS.
>>
>So, while this is a good workaround, it looks like you found a bug.
>Can you file a bug report at the Connect site ?
>>
>>
>>
>>
>Juan T. Llibre, asp.net MVP
>asp.net faq : http://asp.net.do/faq/
>foros de asp.net, en español : http://asp.net.do/foros/
>======================================
>"Harry Simpson" <hs*******@phgt.netwrote in message news:um**************@TK2MSFTNGP02.phx.gbl...
>>Thanks Juan
>>>
>>Got
>>ASP.NET is running as the account : SIMPSON2\ASPNET
>>>
>>And the physical directory the virtual hits has full access granted to ASP.NET Machine Account (SIMPSON2\ASPNET)
>>>
>>VS2008 defaults to using the personal server - which works fine - no HTTP 403 error with it. Just when I switch
>>to
>>IIS in VS2008 project popreties - WEB do I run into problems
>>Could it be here that things a screwed up?
>>>
>>I set the project URL to the virtual directory
>>http://localhost/TestWebApp
>>>
>>Thanks
>>Harry
>>>
>>"Juan T. Llibre" <no***********@nowhere.comwrote in message news:u4**************@TK2MSFTNGP05.phx.gbl...
>>>re:
>>>!And I've given full rights on the directory where the web app actual files reside...
>>>>
>>>To which account did you give rights to ?
>>>Which OS are you running VS 2008 on ?
>>>>
>>>>
>>>>
>>>>
>>>Juan T. Llibre, asp.net MVP
>>>asp.net faq : http://asp.net.do/faq/
>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>======================================
>>>"Harry Simpson" <hs*******@phgt.netwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
>>>>And I've given full rights on the directory where the web app actual files reside...
>>>>"Harry Simpson" <hs*******@phgt.netwrote in message news:ep**************@TK2MSFTNGP02.phx.gbl...
>>>>>Those were the first things I checked. Yes.
>>>>>It creates a virtual directory in the project properties. When I go into IIS I see it as a web app.
>>>>>>
>>>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message news:er**************@TK2MSFTNGP02.phx.gbl...
>>>>>>Is your ASP.NET application running as an IIS application ?
>>>>>>Does the account ASP.NET runs as, have read permissions to the app's physical directory ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>Juan T. Llibre, asp.net MVP
>>>>>>asp.net faq : http://asp.net.do/faq/
>>>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>>>======================================
>>>>>>"Harry Simpson" <hs*******@phgt.netwrote in message news:ec**************@TK2MSFTNGP03.phx.gbl...
>>>>>>>I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS
>>>>>>>instead of the personal web server. Then I run in debug mode and it says I have to set the Debug= True in
>>>>>>>the
>>>>>>>Web.config which I do. Then try to run it again and it says I must enable integrated security which I do.
>>>>>>>I then
>>>>>>>try to run it again and get the HTTP 403 error - " This error (HTTP 403 Forbidden) means that Internet
>>>>>>>Explorer
>>>>>>>was able to connect to the website, but it does not have permission to view the webpage."
>>>>>>>>
>>>>>>>What have I got to do to get around this to debug a simple ASPNET app?
>>>>>>>>
>>>>>>>TIA
>>>>>>>Harry
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>




Jul 11 '08 #16
Yowsers so it IS a problem still? I thought it was just me.... ;-)

OK

I see it's still alive but no comment responding to yours....

Harry

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
re:
!the web app project does not default to the ONLY aspx in a project
during debug run.

That's not exactly the bug... ;-)

re:
!Highlighting the default.aspx before debug start or explicitly setting
Default.aspx to the start page works.
!Otherwise in debug it will not search for the default or index files to
run - it just HTTP 403s.

That's an alleged workaround which doesn't work, not a solution to the
bug.

They should fix the behavior in the next SP.
We don't need any "gotchas" in VS 2008... ;-)

I noticed the request that the bug report be closed,
and added a comment requesting that the bug report not be closed.

http://connect.microsoft.com/VisualS...dbackID=355757

I can still reproduce the problem in all its splendor... :-(

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Juan,

I figured it was something simple....cause it was so hard to solve.....
Seems like the web app project does not default to the ONLY aspx in a
project during debug run. Highlighting the default.aspx before debug
start or explicitly setting Default.aspx to the start page works.
Otherwise in debug it will not search for the default or index files to
run - it just HTTP 403s.

I don't remember every having this problem before VS2008....course I've
been doing mostly smart device apps until last week or so so maybe i'm
just really rusty....

Thanks for all your help....

Harry

"Harry Simpson" <hs*******@phgt.netwrote in message
news:OH**************@TK2MSFTNGP05.phx.gbl...
>>Juan,

Case is at
http://connect.microsoft.com/VisualS...dbackID=355757
if you're interested. Ironic thing was When I was going through the
routine which had failed so many times to do the bug report, it worked!
But I cannot find a way to get these other apps to work correctly at
all....

Thanks
Harry

"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
Thanks Juan!

I tried the workaround and could never get it to work - I'll send this
to MS and maybe somebody can help. It's amazing that we're the only
two people in the world that have ever run into this to date....

Harry
(have bug, will find....)

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eF****************@TK2MSFTNGP05.phx.gbl. ..
re:
!what's the url to the "Connect site" ?
>
http://connect.microsoft.com/
>
You'll need to use your Windows Live ID to sign in.
If you don't have one, create one and then sign in to Connect.
>
re:
>Also now after doing this I've getting the following error on build
!Error 1 It is an error to use a section registered as
!allowDefinition='MachineToApplication' beyond application level.
>
That error is caused by a virtual directory not being configured as an
application in IIS.
Check in your IIS Manager, and make sure you created a virtual
directory for your app.
>
re:
!Looks like when you publish this it just reverts to using the old
dev server
!and not IIS http://localhost:4788/TestWebApplication/
!which does work but I want to use IIS
>
You need to open the property pages for the project, and configure the
"Use custom server"
option to http://localhost/ApplicationName/, (the same virtual
directory name created in IIS)
and you will be able to browse the project from within VS 2008 using
IIS.
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Harry Simpson" <hs*******@phgt.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
>Sure Juan - what's the url to the "Connect site" ?
>>
>Also now after doing this I've getting the following error on build
>Error 1 It is an error to use a section registered as
>allowDefinition='MachineToApplication' beyond application level. This
>error can be caused by a virtual directory not being configured as an
>application in IIS. D:\_VS2008
>PROJECTS\TestWebApp\TestWebApp\Web.config 70
>>
>Seems like the publish took away the projects web app status.
>>
>My project now looks like "D:\_VS2008 PROJECTS\TestWebApp\
>>
>Looks like when you publish this it just reverts to using the old dev
>server and not IIS
>http://localhost:4788/TestWebApplication/
>which does work but I want to use IIS........
>>
>what's the url to the "Connect site" ?
>>
>Thanks
>Harry
>>
>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>news:uh*************@TK2MSFTNGP04.phx.gbl.. .
>>re:
>>!Just when I switch to IIS in VS2008 project properties - WEB do I
>>run into problems
>>>
>>I just reproduced what you're seeing.
>>>
>>I think it may be related to VS 2008 running ASP.NET apps as
>>MachineName\Administrator,
>>while IIS runs them as MachineName\ASP.NET_account, in your case :
>>MachineName\ASPNET
>>and in my case, MachineName\Network Service.
>>>
>>What I don't understand is why the MachineName\ASP.NET_account's
>>permissions don't take hold,
>>even though the account is explicitly granted access permissions.
>>>
>>I did find a workaround for your problem which, as mentioned, I was
>>able to reproduce.
>>>
>>What I did was *publish* the project to a disk-based directory.
>>Then, I created a virtual directory in IIS which points to the
>>directory where the project was published to.
>>>
>>After that, using the option "Open web site" in VS 2008,
>>allowed me to open, edit and run the published project.
>>>
>>Also, if I open the property pages for the project,
>>and configure the "Use custom server" option to
>>http://localhost/ApplicationName/,
>>(the same virtual directory name I created in IIS) I can also browse
>>the project from within VS 2008 using IIS.
>>>
>>So, while this is a good workaround, it looks like you found a bug.
>>Can you file a bug report at the Connect site ?
>>>
>>>
>>>
>>>
>>Juan T. Llibre, asp.net MVP
>>asp.net faq : http://asp.net.do/faq/
>>foros de asp.net, en español : http://asp.net.do/foros/
>>======================================
>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>news:um**************@TK2MSFTNGP02.phx.gbl.. .
>>>Thanks Juan
>>>>
>>>Got
>>>ASP.NET is running as the account : SIMPSON2\ASPNET
>>>>
>>>And the physical directory the virtual hits has full access granted
>>>to ASP.NET Machine Account (SIMPSON2\ASPNET)
>>>>
>>>VS2008 defaults to using the personal server - which works fine -
>>>no HTTP 403 error with it. Just when I switch to
>>>IIS in VS2008 project popreties - WEB do I run into problems
>>>Could it be here that things a screwed up?
>>>>
>>>I set the project URL to the virtual directory
>>>http://localhost/TestWebApp
>>>>
>>>Thanks
>>>Harry
>>>>
>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>>>news:u4**************@TK2MSFTNGP05.phx.gbl. ..
>>>>re:
>>>>!And I've given full rights on the directory where the web app
>>>>actual files reside...
>>>>>
>>>>To which account did you give rights to ?
>>>>Which OS are you running VS 2008 on ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Juan T. Llibre, asp.net MVP
>>>>asp.net faq : http://asp.net.do/faq/
>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>======================================
>>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>>news:%2****************@TK2MSFTNGP02.phx.g bl...
>>>>>And I've given full rights on the directory where the web app
>>>>>actual files reside...
>>>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>>>news:ep**************@TK2MSFTNGP02.phx.gb l...
>>>>>>Those were the first things I checked. Yes.
>>>>>>It creates a virtual directory in the project properties. When I
>>>>>>go into IIS I see it as a web app.
>>>>>>>
>>>>>>"Juan T. Llibre" <no***********@nowhere.comwrote in message
>>>>>>news:er**************@TK2MSFTNGP02.phx.g bl...
>>>>>>>Is your ASP.NET application running as an IIS application ?
>>>>>>>Does the account ASP.NET runs as, have read permissions to the
>>>>>>>app's physical directory ?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>Juan T. Llibre, asp.net MVP
>>>>>>>asp.net faq : http://asp.net.do/faq/
>>>>>>>foros de asp.net, en español : http://asp.net.do/foros/
>>>>>>>===================================== =
>>>>>>>"Harry Simpson" <hs*******@phgt.netwrote in message
>>>>>>>news:ec**************@TK2MSFTNGP03.phx. gbl...
>>>>>>>>I've been away from ASPNET - I open up a new Web app in VS2008
>>>>>>>>and go into properties and select to use IIS
>>>>>>>>instead of the personal web server. Then I run in debug mode
>>>>>>>>and it says I have to set the Debug= True in the
>>>>>>>>Web.config which I do. Then try to run it again and it says I
>>>>>>>>must enable integrated security which I do. I then
>>>>>>>>try to run it again and get the HTTP 403 error - " This error
>>>>>>>>(HTTP 403 Forbidden) means that Internet Explorer
>>>>>>>>was able to connect to the website, but it does not have
>>>>>>>>permission to view the webpage."
>>>>>>>>>
>>>>>>>>What have I got to do to get around this to debug a simple
>>>>>>>>ASPNET app?
>>>>>>>>>
>>>>>>>>TIA
>>>>>>>>Harry
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>




Jul 14 '08 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Win, Pats | last post by:
Sorry if this is OT, I'm not sure where else to research this... I recently added a "global error handler" via an HTTP Module so I could log all otherwise unhandled exceptions. Every day I get...
5
by: anthony | last post by:
I am trying to use get http: to access a web site and parse the html returned. I open a socket and send a request across of the form GET address http/1.0 where address is the specifics i am...
1
by: jayhunters14 | last post by:
Hi everyone, i am an undergrad in physics.my thesis is about GPRS.i have a wireless module that sets up a connection to the internet. when i connect to the web server it can communicate using http...
1
by: jayhunters14 | last post by:
hi i am doing a post via the hyperterminal thru my gprs modem. i am exchanging raw data with a server. i can use GET method but i cannot post a value to my php script.can anyone please help me...
1
by: Hans Kesting | last post by:
Hi, I can't get a vs2008 solution to compile. I have copied the source from a (compiling) 2.0 web-application to a new directory (I didn't want to change the old code), and tried to compile...
7
by: Academia | last post by:
I was told that SqlServer express should get installed when VS2008Pro is installed (that is it is on the same DVD). I had a couple of errors during vs2008's installation and I don't see any...
8
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
4
by: BillE | last post by:
I have found articles on line about using word interop for spell checking with visual studio applications. Most of the articles are several years old, though - VS2003, maybe 2005. I couldn't...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, There is a fatal error while installing VS2008 SP1 on Vista 64bit Business edition. The last line of error log is Installation failed with error code: (0x80070643) I tried to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.