notepad will not save .config file in iis7

notepad will not save .config file in iis7

am 04.12.2006 17:50:00 von carl

Hello, I have a web app that has its own configuration file named
vinetype.config. Under certain circumstances, this vinetype.config file may
sit in the same directory as the web.config file (in default IIS setup in the
wwwroot directory.)

On my local Vista RTM iis7 box, I am able to place the vinetype.config file
in this location and it is able to be read by the web app.

When I try to edit the file with notepad, Notepad issues an error "Cannot
create the c:\inetpub\wwwroot\vinetype.config file Make sure the path and
file name are correct."

The workaround is to edit a copy of the file on my desktop and then
copy-replace the file in the inetpub folder.

So my questions are
1. Should I be able to edit-in-place my applcation's config file on my local
box?
2. If so, how do I do that?
3. If not, why not?

Sincerely,

Carl

Re: notepad will not save .config file in iis7

am 04.12.2006 18:16:25 von wadeh

Hi Carl,

IIS does not do anything to prevent you from editing the file in place, but
the operating system might. What's probably happening is that the file
requires administrator group membership for writing. If that is the case,
and you are running as an administrator but not the built-in administrator,
then you will need to run notepad elevated.

I hope that this helps,
-Wade A. Hilmo,
-Microsoft

"Carl" wrote in message
news:8FA83FF0-29D7-42F5-8EC2-9576222FCBE4@microsoft.com...
> Hello, I have a web app that has its own configuration file named
> vinetype.config. Under certain circumstances, this vinetype.config file
may
> sit in the same directory as the web.config file (in default IIS setup in
the
> wwwroot directory.)
>
> On my local Vista RTM iis7 box, I am able to place the vinetype.config
file
> in this location and it is able to be read by the web app.
>
> When I try to edit the file with notepad, Notepad issues an error "Cannot
> create the c:\inetpub\wwwroot\vinetype.config file Make sure the path and
> file name are correct."
>
> The workaround is to edit a copy of the file on my desktop and then
> copy-replace the file in the inetpub folder.
>
> So my questions are
> 1. Should I be able to edit-in-place my applcation's config file on my
local
> box?
> 2. If so, how do I do that?
> 3. If not, why not?
>
> Sincerely,
>
> Carl
>

Re: notepad will not save .config file in iis7

am 04.12.2006 20:01:00 von carl

Wade, Thanks that seems to be the solution. It's going to take some time to
get used to Administrator but not Built-In Administrator -- logging into the
Administrator account and having to open an app "As Administrator."

Furthermore, when I run Notepad "elevated" I cannot drag and drop a file
into the open application. I can only open files via the File->Open
interface. I can't open a file "elevated" I can only open the app "elevated"
and then I can't drag the file onto the app window. This seems rather
Windows 3.1-ish as far as user interface interaction is concerned.

Sincerely,

Carl


"Wade A. Hilmo [MS]" wrote:

> Hi Carl,
>
> IIS does not do anything to prevent you from editing the file in place, but
> the operating system might. What's probably happening is that the file
> requires administrator group membership for writing. If that is the case,
> and you are running as an administrator but not the built-in administrator,
> then you will need to run notepad elevated.
>
> I hope that this helps,
> -Wade A. Hilmo,
> -Microsoft
>
> "Carl" wrote in message
> news:8FA83FF0-29D7-42F5-8EC2-9576222FCBE4@microsoft.com...
> > Hello, I have a web app that has its own configuration file named
> > vinetype.config. Under certain circumstances, this vinetype.config file
> may
> > sit in the same directory as the web.config file (in default IIS setup in
> the
> > wwwroot directory.)
> >
> > On my local Vista RTM iis7 box, I am able to place the vinetype.config
> file
> > in this location and it is able to be read by the web app.
> >
> > When I try to edit the file with notepad, Notepad issues an error "Cannot
> > create the c:\inetpub\wwwroot\vinetype.config file Make sure the path and
> > file name are correct."
> >
> > The workaround is to edit a copy of the file on my desktop and then
> > copy-replace the file in the inetpub folder.
> >
> > So my questions are
> > 1. Should I be able to edit-in-place my applcation's config file on my
> local
> > box?
> > 2. If so, how do I do that?
> > 3. If not, why not?
> >
> > Sincerely,
> >
> > Carl
> >
>
>
>

Re: notepad will not save .config file in iis7

am 06.12.2006 05:50:55 von David Wang

Yup, the confusions are normal.

While drag-drop between windows is natural, automatically drag/drop
across security-elevation boundaries is not naturally secure and
disallowed. Why should an non-elevated user be able to drag
non-trusted content into an elevated/trusted app window? What happens
if that content is then saved/executed in an elevated context? It is
the exact elevation of privilege attack that the explicit Elevation
step is supposed to prevent.

I know that it looks visually confusing because the window is open but
you cannot drag/drop into it. However, I think the separation is
necessary. Why?

Well, suppose you are in an airport and all the food-service is outside
the security checkpoint while all flight gates are inside the security
checkpoint. Does it make sense to grab a sandwich, go through security,
then realize you forgot your drink so you go back out to get a drink,
go through security again, find that you forgot the newspaper, etc...
you lose the freedom of being able to be forgetful and are forced to be
more organized because straddling the security checkpoint is painful.

Yes, the change may be annoying and some may be more annoyed than
others, but in some senses, this is the cost of security.

Virus and malware have long abused people's tendency to run as
Administrator because it removes all security boundaries. Because
computers cannot distinguish between good and bad users, you cannot
stop malware without inconveniencing good users. Incidentally, the same
analog applies in real-life with terrorists...



//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


Carl wrote:
> Wade, Thanks that seems to be the solution. It's going to take some time to
> get used to Administrator but not Built-In Administrator -- logging into the
> Administrator account and having to open an app "As Administrator."
>
> Furthermore, when I run Notepad "elevated" I cannot drag and drop a file
> into the open application. I can only open files via the File->Open
> interface. I can't open a file "elevated" I can only open the app "elevated"
> and then I can't drag the file onto the app window. This seems rather
> Windows 3.1-ish as far as user interface interaction is concerned.
>
> Sincerely,
>
> Carl
>
>
> "Wade A. Hilmo [MS]" wrote:
>
> > Hi Carl,
> >
> > IIS does not do anything to prevent you from editing the file in place, but
> > the operating system might. What's probably happening is that the file
> > requires administrator group membership for writing. If that is the case,
> > and you are running as an administrator but not the built-in administrator,
> > then you will need to run notepad elevated.
> >
> > I hope that this helps,
> > -Wade A. Hilmo,
> > -Microsoft
> >
> > "Carl" wrote in message
> > news:8FA83FF0-29D7-42F5-8EC2-9576222FCBE4@microsoft.com...
> > > Hello, I have a web app that has its own configuration file named
> > > vinetype.config. Under certain circumstances, this vinetype.config file
> > may
> > > sit in the same directory as the web.config file (in default IIS setup in
> > the
> > > wwwroot directory.)
> > >
> > > On my local Vista RTM iis7 box, I am able to place the vinetype.config
> > file
> > > in this location and it is able to be read by the web app.
> > >
> > > When I try to edit the file with notepad, Notepad issues an error "Cannot
> > > create the c:\inetpub\wwwroot\vinetype.config file Make sure the path and
> > > file name are correct."
> > >
> > > The workaround is to edit a copy of the file on my desktop and then
> > > copy-replace the file in the inetpub folder.
> > >
> > > So my questions are
> > > 1. Should I be able to edit-in-place my applcation's config file on my
> > local
> > > box?
> > > 2. If so, how do I do that?
> > > 3. If not, why not?
> > >
> > > Sincerely,
> > >
> > > Carl
> > >
> >
> >
> >