DEVPATH bug in a Web app (ASP.NET) ?

  • Thread starter Thread starter dan.c.roth
  • Start date Start date
D

dan.c.roth

DEVPATH bug in a Web app (ASP.NET)?

Hi

Has anyone got DEVPATH to work in a Web app?

I have no problem for a Win app.

I added

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" />
<developmentMode developerInstallation="true"/>
</runtime>

in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config

and set the DEVPATH to c:\common

but I still get System.IO.FileNotFoundException

and yes I set all permissions for c:\common.

Now If I set the DEVPATH to c:\Temp

and Put the shared dlls in c:\Tem it seems to work.

So is there any special format That DEVPATH should be set to?

I tried c:\Temp\ and c:\Temp\\


Regards,

Daniel Roth
MCSD.NET
 
One issue you will have here is how IIS handles security. It is more
restrictive, for example, on Windows Server 2003 than earlier Windows. You
are not permitted to traverse outside of the root path. This is probably not
the cause of the issue you are having, however.

Another issue is reserved directory names, which are more prevalent in
ASP.NET than other .NET applications.

I have not fully studied the internals of ASP.NET applications, but they are
certainly far more restrictive than Windows Forms and Console based
applications. You will also find more restrictive rules in Window Service
applications.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Hi Cowboy

That is all well and good.

But could you or could you not get DEVPATH to work in a Web app?

If so how?

Regards,

Daniel Roth
MCSD.NET
 
Did you set the DEVPATH in the system environments or user environments?
It should be in the System environment block, the asp.net default account
"aspnet" has no associated user environments loaded.

Willy.
 
Hi Willy

Yes the System environment block.

And from my post you will see I got it to work by doing
"
Now If I set the DEVPATH to c:\Temp
and Put the shared dlls in c:\Tem it seems to work.
So is there any special format That DEVPATH should be set to?
I tried c:\Temp\ and c:\Temp\\
"

Now obviously (the above) is not the way to do it.

So have you got it to work in a Web app?

If so how?

Regards,

Daniel Roth
MCSD.NET
 
The last character must be a backslash, and you should restart IIS when
changing the environment.

Note that DEVPATH is deprecated in V2, and is something that should be
avoided in v1 even in a development environment.

Willy.
 
Hi



And I did a restart.

But it did not work.

What did you use for DEVPATH?

Regards,

Daniel Roth
MCSD.NET

Sorry, I meant you should restart the server running IIS.
The reason is that all services such as IIS and asp.net don't run in the
context of an interactive user account, so they don't have a user profile
loaded and as such no associated Environment block other than those
variables that are part of the system variables. The environment block for
these services is built when the winlogon starts, that's why you have to
reboot.

Note again that DEVPATH is deprecated and is not a reliable feature, that's
why I don't use it.

Willy.
 
Hi

Yes I did a restart.

If you (or anyone) have got it to work in a Web app (I got it to work
in a Win app) please post the solution.

Regards,

Daniel Roth
MCSD.NET
 
Back
Top