473,545 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Denied trying to do quick editing

I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the web
files reside. I am just doing quick and dirty asp editing (like I used to be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the file
and then the file gets wiped on the server. If I reopen it, only half of it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron
Nov 19 '05 #1
12 3072
This is really weird. I see all these claims of people saying that "when I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share -- still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the web
files reside. I am just doing quick and dirty asp editing (like I used to be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the file
and then the file gets wiped on the server. If I reopen it, only half of it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron

Nov 19 '05 #2
Hi David,

Thanks for the reply. I was starting to lose hope...

Just today I was editing an asp file and it worked fine the first few times
and bang! Access Denied. The funny thing is that I then save as to a
different location and can copy it into the folder and it works. Needless to
say, it's really a pain.

As far as environment, I have a WS03 server I use for remote development.
Now it does have active directory installed and it is a domain controller so
I am not sure if that could be part of the problem. I have been tempted to
rebuild the server without active directory as I cannot get ASP.NET
debugging to work on it as well. But I am more than willing to work with you
to figure out the cause of the problem. And I can reliably reproduce it.

If you want to email me directly (that's my real address up here) I will
gladly send you anything you want as far as how my configuration is set up.
It could be tedious doing this on the newsgroup. I also live in Bothell, so
if you're on campus I'm close.

- Ron
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron

Nov 19 '05 #3
Hi David,

You know, I'm not sure if this maybe part of it or not but... my server
configuration is a little out of the ordinary in that the server OS is not
installed on drive C:. For some reason, when I installed WS03 on this box,
it decided to install itself on Drive E:. In fact, I don't even have a C:
drive on the box at all. I am not sure if this has anything to do with the
problem but it wouldn't surprise me.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron

Nov 19 '05 #4
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version! Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron

Nov 19 '05 #5
You can validate by using a tool like Process Explorer
(www.sysinternals.com) to see what process has an open handle on the file
you get "Access Denied" on (open ProcExp, Ctrl-F, enter the filename,
search, and see the process that appears).

I'll try out Visual Studio 2003 and see what happens. Is the VS.Net
installed on the same machine as IIS or different?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version! Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should I
be practicing a new method of working?

- Ron


Nov 19 '05 #6
Cool. I'll give that a shot. So could it be possible that VS.NET has two
open handles to the file? Wierd. What's really strange is that it will write
back some of the file and then truncate the end. If you are not careful and
do a save as, you lose! Then you wonder why your asp page is whacked out.
Luckily I had a backup on the production server the first few times it
happened until I figured out what was going on.

Not a pleasant bug.

VS.NET is installed on my dev machine, not on the server where IIS is
installed. I am opening files that are on a drive mapped to the server. I'm
not using UNC. Keep in mind that it may work okay at first but after 3 or 4
iterations of change - save - refresh page... it then hits.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
You can validate by using a tool like Process Explorer
(www.sysinternals.com) to see what process has an open handle on the file
you get "Access Denied" on (open ProcExp, Ctrl-F, enter the filename,
search, and see the process that appears).

I'll try out Visual Studio 2003 and see what happens. Is the VS.Net
installed on the same machine as IIS or different?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see
what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version!
Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the
dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should
I
be practicing a new method of working?

- Ron


Nov 19 '05 #7
Ok, let me make sure I understand your filesystem setup.

1. Server has the ASPX files on a local drive
2. IIS is configured to map URL to the local ASPX files via a local
directory
3. The Server has some UNC shares (including the C$ / D$ shares )
4. You NET USE to the Server's UNC share(s) and map it to a local drive
letter
5. VS.Net is on a separate machine from the server and accesses the ASPX
files via this local drive letter

i.e.
Your server OS is on C: and you have this file:
C:\inetpub\wwwr oot\MyApp\MyApp .aspx
IIS has /MyApp vdir mapped to C:\inetpub\wwwr oot\MyApp
On a separate machine, you run NET USE Z: \\server\wwwroo t$ using an account
that has access
With VS.Net, you open Z:\MyApp\MyApp. aspx and can make requests to
http://server/MyApp/MyApp.aspx

The details are important because different technology are in play depending
on what you say.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
Cool. I'll give that a shot. So could it be possible that VS.NET has two
open handles to the file? Wierd. What's really strange is that it will write
back some of the file and then truncate the end. If you are not careful and
do a save as, you lose! Then you wonder why your asp page is whacked out.
Luckily I had a backup on the production server the first few times it
happened until I figured out what was going on.

Not a pleasant bug.

VS.NET is installed on my dev machine, not on the server where IIS is
installed. I am opening files that are on a drive mapped to the server. I'm
not using UNC. Keep in mind that it may work okay at first but after 3 or 4
iterations of change - save - refresh page... it then hits.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
You can validate by using a tool like Process Explorer
(www.sysinternals.com) to see what process has an open handle on the file
you get "Access Denied" on (open ProcExp, Ctrl-F, enter the filename,
search, and see the process that appears).

I'll try out Visual Studio 2003 and see what happens. Is the VS.Net
installed on the same machine as IIS or different?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see
what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version!
Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the
dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that "when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits, and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should
I
be practicing a new method of working?

- Ron



Nov 19 '05 #8
Some slight differences, but I don't think this is anything different than
what you describe...

1. I'm currently editing ASP files, not aspx... although I think the same
thing happens with aspx files.
2. My server is set up with the OS on drive C: and a seperate data drive D:
but the rest is the same.
3. I have a set up a folder on D: where my web files are,
D:\webdata\mywe bfiles
4. There is another level below that has the files for the site,
D:\webdata\mywe bfiles\client1\ web and this is the folder that IIS points to
for the site. I have not set mywebfiles as my wwwroot$.
5. I have shared the mywebfiles folder so you see it on my network as
\\Server\mywebf iles
6. On my workstation I map using windows explorer's ->tools - map network
drive menu option
7. In VSNet, you open Z:\Client1\web\ MyApp.asp and can make requests to
http://server/MyApp.asp
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, let me make sure I understand your filesystem setup.

1. Server has the ASPX files on a local drive
2. IIS is configured to map URL to the local ASPX files via a local
directory
3. The Server has some UNC shares (including the C$ / D$ shares )
4. You NET USE to the Server's UNC share(s) and map it to a local drive
letter
5. VS.Net is on a separate machine from the server and accesses the ASPX
files via this local drive letter

i.e.
Your server OS is on C: and you have this file:
C:\inetpub\wwwr oot\MyApp\MyApp .aspx
IIS has /MyApp vdir mapped to C:\inetpub\wwwr oot\MyApp
On a separate machine, you run NET USE Z: \\server\wwwroo t$ using an
account
that has access
With VS.Net, you open Z:\MyApp\MyApp. aspx and can make requests to
http://server/MyApp/MyApp.aspx

The details are important because different technology are in play
depending
on what you say.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
Cool. I'll give that a shot. So could it be possible that VS.NET has two
open handles to the file? Wierd. What's really strange is that it will
write
back some of the file and then truncate the end. If you are not careful
and
do a save as, you lose! Then you wonder why your asp page is whacked out.
Luckily I had a backup on the production server the first few times it
happened until I figured out what was going on.

Not a pleasant bug.

VS.NET is installed on my dev machine, not on the server where IIS is
installed. I am opening files that are on a drive mapped to the server.
I'm
not using UNC. Keep in mind that it may work okay at first but after 3 or
4
iterations of change - save - refresh page... it then hits.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
You can validate by using a tool like Process Explorer
(www.sysinternals.com) to see what process has an open handle on the file
you get "Access Denied" on (open ProcExp, Ctrl-F, enter the filename,
search, and see the process that appears).

I'll try out Visual Studio 2003 and see what happens. Is the VS.Net
installed on the same machine as IIS or different?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see
what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version!
Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the
dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that
"when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it
cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no
stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits,
and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details
of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that
they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably
fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and
asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used
to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like
a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as
I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should
I
be practicing a new method of working?

- Ron



Nov 19 '05 #9
Hi David,

I downloaded Process Explorer and replicated the Access Denied error.
Looking in process explorer I can see that VS.NET (devenv.exe) has a handle
to the file:
\Device\LanmanR edirector\;Q:00 0000000001cf40\ otterden\stariq \web site
files\stariq\me mbers
and looking at the properties it says that there are 3 references and one
handle. I really don't know how to use this tool very well so any hints you
may have will be helpful. As this is a really annoying problem, I would like
to make some headway on it. Should I be posting on the VS.NET group as well?

Here is another interesting tidbit. It does not matter if I have looked at
the file in internet explorer or not. Simply opening the file and making a
change and then trying to save it causes an access denied error. So having
done that, I simply created a text file on the share on my server using
vs.net. I put it in a directory unrelated to any web site. It create and
saved it, that was fine. Then added another line of text and hit the save
icon. Boom! Access Denied.

Then I went and created a text file and saved it using unc naming
conventions. Had no problems creating it and making changes and saving it.

This is VS.NET issue. It cannot save files to mapped drives.

"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, let me make sure I understand your filesystem setup.

1. Server has the ASPX files on a local drive
2. IIS is configured to map URL to the local ASPX files via a local
directory
3. The Server has some UNC shares (including the C$ / D$ shares )
4. You NET USE to the Server's UNC share(s) and map it to a local drive
letter
5. VS.Net is on a separate machine from the server and accesses the ASPX
files via this local drive letter

i.e.
Your server OS is on C: and you have this file:
C:\inetpub\wwwr oot\MyApp\MyApp .aspx
IIS has /MyApp vdir mapped to C:\inetpub\wwwr oot\MyApp
On a separate machine, you run NET USE Z: \\server\wwwroo t$ using an
account
that has access
With VS.Net, you open Z:\MyApp\MyApp. aspx and can make requests to
http://server/MyApp/MyApp.aspx

The details are important because different technology are in play
depending
on what you say.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
Cool. I'll give that a shot. So could it be possible that VS.NET has two
open handles to the file? Wierd. What's really strange is that it will
write
back some of the file and then truncate the end. If you are not careful
and
do a save as, you lose! Then you wonder why your asp page is whacked out.
Luckily I had a backup on the production server the first few times it
happened until I figured out what was going on.

Not a pleasant bug.

VS.NET is installed on my dev machine, not on the server where IIS is
installed. I am opening files that are on a drive mapped to the server.
I'm
not using UNC. Keep in mind that it may work okay at first but after 3 or
4
iterations of change - save - refresh page... it then hits.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OG******** ******@TK2MSFTN GP09.phx.gbl...
You can validate by using a tool like Process Explorer
(www.sysinternals.com) to see what process has an open handle on the file
you get "Access Denied" on (open ProcExp, Ctrl-F, enter the filename,
search, and see the process that appears).

I'll try out Visual Studio 2003 and see what happens. Is the VS.Net
installed on the same machine as IIS or different?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Okay, so check this out. I started using VS 6.0 and I have not had any
problems. It must be VS.NET that has the bug! Try using VS.NET and see
what
happens. I just use file -> open with no project. I'm using build hmmm...
okay I just went to help about and I got a blank window that says 'Key
Expired'. What the? I have a fully registered and activated version!
Hmmm...
that window came up twice. Must be some plug-in or something. Anyway the
dev
environment is 7.1.3088.
"David Wang [Msft]" <so*****@online .microsoft.com> wrote in message
news:OH******** ******@tk2msftn gp13.phx.gbl...
This is really weird. I see all these claims of people saying that
"when
I
update content on IIS6 it either continues to serve stale content or get
access denied", and I totally have been unable to reproduce any of them.

I mean, I go and install WS03 and then IIS6, publish my ASP/ASPX file to
inetpub\wwwroot , make a few requests to it to see it and get it
cached --
and when I open that ASP file up with notepad, make some changes, save
it --
I *immediately* see the changes. Every time. No access denied, no
stale
entries, no problems at all. I even check to make sure my static and
dynamic
files are truly cached in memory/kernel-mode and then make the edits,
and
they continue to immediately work for me (I see the cache miss/flush as
well). Same thing happens when I make the vdir go over a UNC share --
still
works. Pass-thru auth also works.

So, I really have no suggestions other than to ask for all the details
of
your configuration and problem-reproduction steps (more details the
better).
I've really gone through and tried out all the settings and see that
they
work as advertised from the very start. No fuss.

So, I'm really anxious to get a good setup/example that predictably
fails
and that I can reproduce it as well...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no
rights.
//
"Ron Weldy" <ro******@msn.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a test server runinng 2003/IIS 6 with a mixture of asp and
asp.net
files. On my workstation I have a share set up to the folder where the
web
files reside. I am just doing quick and dirty asp editing (like I used
to
be
able to do with 2K/IIS5) where I use VS.NET, open an asp file, make
changes,
save and refresh my browser.

Problem is that I get an Access is Denied error when I try to save the
file
and then the file gets wiped on the server. If I reopen it, only half of
it
is there. So obviously, it's getting locked and cached. This looks like
a
problem from IIS 4 days
(http://support.microsoft.com/default...b;en-us;191742) but as
I
mentioned I'm using IIS 6.0 now and VS.NET to boot (it's such a pain
changing and getting up to speed).

What should I do? How can I disable caching on my test server, or should
I
be practicing a new method of working?

- Ron



Nov 19 '05 #10

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

Similar topics

3
5700
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.Data.Common Imports System.Reflection
1
2317
by: Benny | last post by:
Dear All, My ASP-MS Access application works fin in our local server and in our hosting I get this errors, while adding/editing or deleteing. When deleting a product: error Microsoft VBScript runtime error '800a0046' Permission denied /webadmin/Products.asp, line 27 When deleting an image from a product: error Microsoft VBScript runtime...
1
2785
by: Del | last post by:
We have a MS SQL Server 2000 application for our shipping system. We have created a front end application using MS Access for our order analyst. The front end application allows the analyst to review and update orders before they are released to the warehouse. We are in the test phase of this project and have run into a couple problems that we...
20
3295
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to speed. I like books with practical exercises, and also with test questions (like cert books) *2*
0
2456
by: Efi | last post by:
Hi, We have a simple 3 tier application which its core application is VC++ 6.0 ATL COM running as a server application in the COM+. An asp pipe is in charge of handling the requests and passes it to the COM for processing. We are now trying to migrate the asp pipe to Asp.Net. When running the above configuration with Asp.Net on IIS 5.0...
3
7945
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else...
1
3190
by: joshtichauer | last post by:
So i have an xml file, i'm grabbing it via dataset, then placing the data into a datagrid. everythings all good, but i'd like to edit the data. the coding grabs whats in the edit textboxes, and should throw it back to the xml file, but i get an error "System.UnauthorizedAccessException: Access to the path...
2
3070
by: Thomas Thomas | last post by:
Hi All, I am trying to access a mapped network drive folder. everything works fine normally. But when i run the application as service I am getting the error Traceback (most recent call last): File "docBoxApp.py", line 129, in ? File "core\PollFiles.pyc", line 332, in doPoll File "core\PollFiles.pyc", line 47, in createFileList File...
8
6034
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in ASP.NET 1.1, but was migrated to 2.0 during development. The reason this is an issue is because the application is using the...
0
7808
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7757
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5329
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4945
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.