![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
From a ASP:NET application I would guess you would have to run the application as a user with more rights than the standard "asp.net user". In the web.config file do: identity impersonate="true" username="login" password="password" Regards, Lars-Inge Tønnessen |
#4
| |||
| |||
|
|
OK, I'll do that but I will do the impersonation in code rather that the web.config. I didn't get a chance to try the other code you sent yet due to more pressing *issues*. Thanks BrÃ*an "Lars-Inge Tønnessen [VJ# MVP]" wrote: From a ASP:NET application I would guess you would have to run the application as a user with more rights than the standard "asp.net user". In the web.config file do: identity impersonate="true" username="login" password="password" Regards, Lars-Inge Tønnessen |
#5
| |||
| |||
|
|
Results are the same. NOTEPAD.EXE process starts but no output. I noticed on What kind of output do you expect from Notepad in an ASP.NET application on a server running as the "ASP.NET" user? (The ASP.NET user is not the logged on user your using.) What kind of an application do you build? What is the goal of your web-application? Regards, Lars-Inge Tønnessen |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Sorry... I ment this line: /** @attribute System.Runtime.InteropServices.DllImportAttribute( "mpr.dll") */ public static native System.UInt32 WNetAddConnection2A( structure lpNetResource, System.String lpPassword, System.String UserName, int dwFlags); And this struct/structure: /** @attribute System.Runtime.InteropServices.StructLayout(System .Runtime.InteropServices.LayoutKind.Sequential) */ public class structure { public int Scope; public int Type; public int DisplayType; public int Usage; public System.String LocalName; public System.String RemoteName; public System.String Comment; public System.String Provider; } Regards, Lars-Inge Tønnessen |
#8
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |