Showing posts with label unable. Show all posts
Showing posts with label unable. Show all posts

Saturday, March 24, 2012

permissions creating web application

The following error seems to plague a lot of people. Who has encountered this and what solutions did you find.

"Unable to create web project <name>. The UNC share <UNC> does not exist or you do not have access.

One suggestion I have seen a few times is create the app on the local machine and then publish to the server. I want to create the app on my develoment server, not on my local machine and then publish to a production box.

I noticed a post from one of this forums "ASP.net team" users stating something along the lines of "creating a web application is a snap just go to New Project --> .net web application". I laughed big time at that. I am in my fourth day of attempting this "snap" process.It works fine, but you have to make sure you have the correct privelages.. From the error it seems you don't have write permissions maybe?
yeah it is a permissions issue. The question is permissions for who? You have my local machine with VS.net installed. I log into a domain so I am assuming that the VS application is running with that account information.

I then try to create an application on a server outside a firewall and not part of the domain. That IIS server is running the show as far as the virtual directory and web application is concerned so I assume the account is IUSR_machine.

That to me seems to be a potential source of this problem.
Check if you have permissions on the directory you are trying to write to. I believe this is just directory permissions you are dealing with here.

Wednesday, March 21, 2012

Permissions Issues with ASPNET Account

For some unexplained reason, I am suddenly unable to browse to a virtual
directory on my laptop. I have a number of sample websites to which I could
happliy browse up until last w. As of Monday, if I browse to any of the
sites, I get an HttpException saying "The directory does not exist or is not
accessible because of security settings." I honestly have not changed
anything at all.
I have checked and re-checked that ASPNET indeed has the three required
permissions on the virtual directories (ie. Read, Read & Execute, and List
Folder Contents). As a workaround, the only way that I am able to currently
browse to the sample websites is I 'upgrade' the access level privilege in
the machine.config as follows:
Go to folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG, and edit the
machine.config file. Find <processModel enable="true" timeout="Infinite"...
and change the username attribute from 'machine' to 'system'. Save the file,
and restart IIS.
I have trawled the internet in the last couple of days, and have discovered
many others have experienced the same problem. For most, it was a matter of
applying the ASPNET account permissions to the virtual folder, but there are
still a number of other people (like myself) for whom this problem persists.
I have even ran aspnet_regiis.exe, but still no joy.
My system specification is as follows:
Windows XP Professional SP1.
Internet Explorer 6.0.2800 SP2.
.NET Framework v1.1
Visual Studio .NET 2003
Below is the exception:
Server Error in '/EC315CH02' Application.
----
--
Server cannot access application directory 'E:\Documents and
Settings\...<SubFolders>...'. The directory does not exist or is not
accessible because of security settings.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information abou
t
the error and where it originated in the code.
Exception Details: System.Web.HttpException: Server cannot access
application directory 'E:\Documents and Settings\...<SubFolders>...'. The
directory does not exist or is not accessible because of security settings.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Server cannot access application directory
'E:\Documents and Settings\...<SubFolders>...'. The directory does not exis
t
or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +264
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +990
System.Web.HttpRuntime. ProcessRequestInternal(HttpWorkerRequest
wr) +128
----
--
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Does anyone know what could be the problem?
Can anyone provide any assistance to resolve it?
...Yogesh
"If a pig loses its voice, is it disgruntled?"Is E a mapped drive? A mapped drive works only for the current logon session
which isn't the one ASP.NET is running in since it's running as a different
user.
-Brock
DevelopMentor
http://staff.develop.com/ballen

> For some unexplained reason, I am suddenly unable to browse to a
> virtual directory on my laptop. I have a number of sample websites to
> which I could happliy browse up until last w. As of Monday, if I
> browse to any of the sites, I get an HttpException saying "The
> directory does not exist or is not accessible because of security
> settings." I honestly have not changed anything at all.
> I have checked and re-checked that ASPNET indeed has the three
> required permissions on the virtual directories (ie. Read, Read &
> Execute, and List Folder Contents). As a workaround, the only way that
> I am able to currently browse to the sample websites is I 'upgrade'
> the access level privilege in the machine.config as follows:
> Go to folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG, and
> edit the machine.config file. Find <processModel enable="true"
> timeout="Infinite"... and change the username attribute from
> 'machine' to 'system'. Save the file, and restart IIS.
> I have trawled the internet in the last couple of days, and have
> discovered many others have experienced the same problem. For most, it
> was a matter of applying the ASPNET account permissions to the virtual
> folder, but there are still a number of other people (like myself) for
> whom this problem persists. I have even ran aspnet_regiis.exe, but
> still no joy.
> My system specification is as follows:
> Windows XP Professional SP1.
> Internet Explorer 6.0.2800 SP2.
> .NET Framework v1.1
> Visual Studio .NET 2003
> Below is the exception:
> Server Error in '/EC315CH02' Application.
> ---
> --
> Server cannot access application directory 'E:\Documents and
> Settings\...<SubFolders>...'. The directory does not exist or is not
> accessible because of security settings. Description: An unhandled
> exception occurred during the execution of the current web request.
> Please review the stack trace for more information about the error and
> where it originated in the code.
> Exception Details: System.Web.HttpException: Server cannot access
> application directory 'E:\Documents and Settings\...<SubFolders>...'.
> The directory does not exist or is not accessible because of security
> settings.
> Source Error:
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
> Stack Trace:
> [HttpException (0x80004005): Server cannot access application
> directory
> 'E:\Documents and Settings\...<SubFolders>...'. The directory does
> not exist
> or is not accessible because of security settings.]
> System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +264
> [HttpException (0x80004005): ASP.NET Initialization Error]
> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +990
> System.Web.HttpRuntime. ProcessRequestInternal(HttpWorkerRequest
wr)
> +128
> ---
> -- Version Information: Microsoft .NET Framework
> Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
> Does anyone know what could be the problem?
> Can anyone provide any assistance to resolve it?
>
No, Drive E is a local hard drive.
Cheers...
...Yogesh
"Brock Allen" wrote:

> Is E a mapped drive? A mapped drive works only for the current logon sessi
on
> which isn't the one ASP.NET is running in since it's running as a differen
t
> user.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>

Permissions Issues with ASPNET Account

For some unexplained reason, I am suddenly unable to browse to a virtual
directory on my laptop. I have a number of sample websites to which I could
happliy browse up until last week. As of Monday, if I browse to any of the
sites, I get an HttpException saying "The directory does not exist or is not
accessible because of security settings." I honestly have not changed
anything at all.

I have checked and re-checked that ASPNET indeed has the three required
permissions on the virtual directories (ie. Read, Read & Execute, and List
Folder Contents). As a workaround, the only way that I am able to currently
browse to the sample websites is I 'upgrade' the access level privilege in
the machine.config as follows:

Go to folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG, and edit the
machine.config file. Find <processModel enable="true" timeout="Infinite"...
and change the username attribute from 'machine' to 'system'. Save the file,
and restart IIS.

I have trawled the internet in the last couple of days, and have discovered
many others have experienced the same problem. For most, it was a matter of
applying the ASPNET account permissions to the virtual folder, but there are
still a number of other people (like myself) for whom this problem persists.
I have even ran aspnet_regiis.exe, but still no joy.

My system specification is as follows:

Windows XP Professional SP1.
Internet Explorer 6.0.2800 SP2.
..NET Framework v1.1
Visual Studio .NET 2003

Below is the exception:

Server Error in '/EC315CH02' Application.
------------------------

Server cannot access application directory 'E:\Documents and
Settings\...<SubFolders>...\'. The directory does not exist or is not
accessible because of security settings.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access
application directory 'E:\Documents and Settings\...<SubFolders>...\'. The
directory does not exist or is not accessible because of security settings.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'E:\Documents and Settings\...<SubFolders>...\'. The directory does not exist
or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +264

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +990
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

Does anyone know what could be the problem?

Can anyone provide any assistance to resolve it?

--
...Yogesh
"If a pig loses its voice, is it disgruntled?"Is E a mapped drive? A mapped drive works only for the current logon session
which isn't the one ASP.NET is running in since it's running as a different
user.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> For some unexplained reason, I am suddenly unable to browse to a
> virtual directory on my laptop. I have a number of sample websites to
> which I could happliy browse up until last week. As of Monday, if I
> browse to any of the sites, I get an HttpException saying "The
> directory does not exist or is not accessible because of security
> settings." I honestly have not changed anything at all.
> I have checked and re-checked that ASPNET indeed has the three
> required permissions on the virtual directories (ie. Read, Read &
> Execute, and List Folder Contents). As a workaround, the only way that
> I am able to currently browse to the sample websites is I 'upgrade'
> the access level privilege in the machine.config as follows:
> Go to folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG, and
> edit the machine.config file. Find <processModel enable="true"
> timeout="Infinite"... and change the username attribute from
> 'machine' to 'system'. Save the file, and restart IIS.
> I have trawled the internet in the last couple of days, and have
> discovered many others have experienced the same problem. For most, it
> was a matter of applying the ASPNET account permissions to the virtual
> folder, but there are still a number of other people (like myself) for
> whom this problem persists. I have even ran aspnet_regiis.exe, but
> still no joy.
> My system specification is as follows:
> Windows XP Professional SP1.
> Internet Explorer 6.0.2800 SP2.
> .NET Framework v1.1
> Visual Studio .NET 2003
> Below is the exception:
> Server Error in '/EC315CH02' Application.
> ----------------------
> ----
> Server cannot access application directory 'E:\Documents and
> Settings\...<SubFolders>...\'. The directory does not exist or is not
> accessible because of security settings. Description: An unhandled
> exception occurred during the execution of the current web request.
> Please review the stack trace for more information about the error and
> where it originated in the code.
> Exception Details: System.Web.HttpException: Server cannot access
> application directory 'E:\Documents and Settings\...<SubFolders>...\'.
> The directory does not exist or is not accessible because of security
> settings.
> Source Error:
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
> Stack Trace:
> [HttpException (0x80004005): Server cannot access application
> directory
> 'E:\Documents and Settings\...<SubFolders>...\'. The directory does
> not exist
> or is not accessible because of security settings.]
> System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
> System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +264
> [HttpException (0x80004005): ASP.NET Initialization Error]
> System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +990
> System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
> +128
> ----------------------
> ---- Version Information: Microsoft .NET Framework
> Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
> Does anyone know what could be the problem?
> Can anyone provide any assistance to resolve it?
No, Drive E is a local hard drive.

Cheers...

....Yogesh

"Brock Allen" wrote:

> Is E a mapped drive? A mapped drive works only for the current logon session
> which isn't the one ASP.NET is running in since it's running as a different
> user.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
> > For some unexplained reason, I am suddenly unable to browse to a
> > virtual directory on my laptop. I have a number of sample websites to
> > which I could happliy browse up until last week. As of Monday, if I
> > browse to any of the sites, I get an HttpException saying "The
> > directory does not exist or is not accessible because of security
> > settings." I honestly have not changed anything at all.
> > I have checked and re-checked that ASPNET indeed has the three
> > required permissions on the virtual directories (ie. Read, Read &
> > Execute, and List Folder Contents). As a workaround, the only way that
> > I am able to currently browse to the sample websites is I 'upgrade'
> > the access level privilege in the machine.config as follows:
> > Go to folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG, and
> > edit the machine.config file. Find <processModel enable="true"
> > timeout="Infinite"... and change the username attribute from
> > 'machine' to 'system'. Save the file, and restart IIS.
> > I have trawled the internet in the last couple of days, and have
> > discovered many others have experienced the same problem. For most, it
> > was a matter of applying the ASPNET account permissions to the virtual
> > folder, but there are still a number of other people (like myself) for
> > whom this problem persists. I have even ran aspnet_regiis.exe, but
> > still no joy.
> > My system specification is as follows:
> > Windows XP Professional SP1.
> > Internet Explorer 6.0.2800 SP2.
> > .NET Framework v1.1
> > Visual Studio .NET 2003
> > Below is the exception:
> > Server Error in '/EC315CH02' Application.
> > ----------------------
> > ----
> > Server cannot access application directory 'E:\Documents and
> > Settings\...<SubFolders>...\'. The directory does not exist or is not
> > accessible because of security settings. Description: An unhandled
> > exception occurred during the execution of the current web request.
> > Please review the stack trace for more information about the error and
> > where it originated in the code.
> > Exception Details: System.Web.HttpException: Server cannot access
> > application directory 'E:\Documents and Settings\...<SubFolders>...\'.
> > The directory does not exist or is not accessible because of security
> > settings.
> > Source Error:
> > An unhandled exception was generated during the execution of the
> > current web request. Information regarding the origin and location of
> > the exception can be identified using the exception stack trace below.
> > Stack Trace:
> > [HttpException (0x80004005): Server cannot access application
> > directory
> > 'E:\Documents and Settings\...<SubFolders>...\'. The directory does
> > not exist
> > or is not accessible because of security settings.]
> > System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
> > System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +264
> > [HttpException (0x80004005): ASP.NET Initialization Error]
> > System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +990
> > System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
> > +128
> > ----------------------
> > ---- Version Information: Microsoft .NET Framework
> > Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
> > Does anyone know what could be the problem?
> > Can anyone provide any assistance to resolve it?
>
>

Permissions Problem?

Hello All,
I can't seem to get my project to run in debug mode. When I run the web
application it says, "Error while trying to run project: Unable to start
debugging on the web server."
Any ideas?
LandersHi:
To resolve this problem, you must restart IIS. To do this, type iisreset at
a command prompt. - MS Knowledge Base.
Hope this helps.
Thanks,
Hrishi
"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
>
Hope this helps!
http://support.microsoft.com/defaul...kb;en-us;306172
Hrishi
"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
>
Thanks for your reply.
I have already tried the iis restart, and have already reinstalled ASP and
checked that the server components were installed also. Still no joy.
Any other ideas?
Landers
"Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> Hope this helps!
> http://support.microsoft.com/defaul...kb;en-us;306172
> Hrishi
> "Landley" wrote:
>
This issue seems to be when I am running the IDE on the local machine (the
web server), as I have just connected and debugged remotely.
Any ideas why this is?
Landers.
"Landley" <news@.creations-software.co.uk> wrote in message
news:Oy%23u1OJzEHA.2692@.TK2MSFTNGP10.phx.gbl...
> Thanks for your reply.
> I have already tried the iis restart, and have already reinstalled ASP and
> checked that the server components were installed also. Still no joy.
> Any other ideas?
> Landers
> "Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
> news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
web
start
>
Hello All,
I am having the same problem as Landers, any solutions ?
Angie
From http://www.developmentnow.com/g/8_2...elopmentnow.com
Hi, Angie.
Have you tried the solutions offered at :
http://support.microsoft.com/defaul...kb;en-us;306172
?
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Angie" <miewtee.ng@.citigroup.com> wrote in message
news:7939e9e7-b3f1-4fe5-ace2-ef403aa5c5e2@.msnews.microsoft.com...
> Hello All,
> I am having the same problem as Landers, any solutions ?
> Angie
> From http://www.developmentnow.com/g/8_2...ons-Problem.htm[/c
olor]

Permissions Problem?

Hello All,

I can't seem to get my project to run in debug mode. When I run the web
application it says, "Error while trying to run project: Unable to start
debugging on the web server."

Any ideas?

LandersHi:

To resolve this problem, you must restart IIS. To do this, type iisreset at
a command prompt. - MS Knowledge Base.

Hope this helps.

Thanks,
Hrishi

"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
Hope this helps!
http://support.microsoft.com/defaul...kb;en-us;306172

Hrishi

"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
Thanks for your reply.

I have already tried the iis restart, and have already reinstalled ASP and
checked that the server components were installed also. Still no joy.

Any other ideas?

Landers
"Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> Hope this helps!
> http://support.microsoft.com/defaul...kb;en-us;306172
> Hrishi
> "Landley" wrote:
> > Hello All,
> > I can't seem to get my project to run in debug mode. When I run the web
> > application it says, "Error while trying to run project: Unable to start
> > debugging on the web server."
> > Any ideas?
> > Landers
This issue seems to be when I am running the IDE on the local machine (the
web server), as I have just connected and debugged remotely.

Any ideas why this is?

Landers.

"Landley" <news@.creations-software.co.uk> wrote in message
news:Oy%23u1OJzEHA.2692@.TK2MSFTNGP10.phx.gbl...
> Thanks for your reply.
> I have already tried the iis restart, and have already reinstalled ASP and
> checked that the server components were installed also. Still no joy.
> Any other ideas?
> Landers
> "Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
> news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> > Hope this helps!
> > http://support.microsoft.com/defaul...kb;en-us;306172
> > Hrishi
> > "Landley" wrote:
> > > Hello All,
> > > > I can't seem to get my project to run in debug mode. When I run the
web
> > > application it says, "Error while trying to run project: Unable to
start
> > > debugging on the web server."
> > > > Any ideas?
> > > > Landers
> > >
Hello All,

I am having the same problem as Landers, any solutions ?

Angi

From http://www.developmentnow.com/g/8_2...ions-Problem.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
Hi, Angie.

Have you tried the solutions offered at :
http://support.microsoft.com/defaul...kb;en-us;306172

?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"Angie" <miewtee.ng@.citigroup.com> wrote in message
news:7939e9e7-b3f1-4fe5-ace2-ef403aa5c5e2@.msnews.microsoft.com...
> Hello All,
> I am having the same problem as Landers, any solutions ?
> Angie
> From http://www.developmentnow.com/g/8_2...ons-Problem.htm