Re: Creating a WinPOP MailBox from an ASP Net Application
From: Chris Dickens (chris_at_NOSP-Mobject-zone.net)
Date: 01/13/05
- Next message: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Requesting web page from SSL site fails"
- In reply to: Chris Dickens: "Re: Creating a WinPOP MailBox from an ASP Net Application"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 20:53:03 -0500
Alright - I'm convinced that this has something to do with Code Access
Security since I've pretty much wiped out all the other possibilities that I
am aware of. Does anyone know how I can grant my Interop DLL with rights to
make changes to the registry and folders outside of the web application's
path? I think this is where the exception is occurring.
--Chris
"Chris Dickens" <chris@NOSP-Mobject-zone.net> wrote in message
news:%23kjvzCL%23EHA.2316@TK2MSFTNGP15.phx.gbl...
>I am having this exact same problem Markus - have you located a solution
>yet? Anyone from Microsoft help out here?
>
> I have tried a number of things:
>
> - I have tried COM interop with the P3Admin interface which works great
> for retrieving information about anything in the system, but nothing works
> that requires modification (ie: creating a domain, mailbox, or changing
> password) Gives the same Access is Denied errors for both P3Admin via COM
> or Process.Start on WINPOP.
> - In a virtual machine, I added Everyone full control to C:\ drive and all
> subfolders (with the reset child objects option)
> - In the same virtual machine, I added Everyone full control to each
> registry hive starting at the root.
> - In the same exact web, I used the P3Admin interface with classic ASP
> (ala how the Server Appliance administrator works - no problems here!)
> - In the same web using ASP.NET, I used Process.Start on "net.exe help"
> and was able to see the StandardOutput, so starting of processes itself is
> not the problem.
> - Amazingly enough, anything involving this WINPOP.EXE gets Access is
> Denied - "winpop.exe list" got an Access is Denied.
> - Like you, I've twiddled with identity impersonate="true" and it doesn't
> seem to matter.
>
> --Chris
>
> "Markus Hopfenspirger" <MarkusHopfenspirger@discussions.microsoft.com>
> wrote in message
> news:D5176B1A-0223-49E0-8C2C-FAAC8D4AA6DB@microsoft.com...
>> Hello,
>>
>> I want to call a Command like
>>
>> winpop add username@domainname /createuser: password
>>
>> From a normal .Net Windows Application this is working without a problem.
>> The same code called from a ASP Net Application or a Windows Service
>> Application is not executed. Also if I do an impersonation to a local
>> admin
>> account before executing the Code.
>> (It makes no difference if I use shell or Prozess.start to execute the
>> command.)
>>
>> Any suggesstions?
>>
>> Greetings from Germany
>> Markus
>
>
- Next message: Chris Dickens: "Re: Hyperlink not operating correctly in ASPX file"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Requesting web page from SSL site fails"
- In reply to: Chris Dickens: "Re: Creating a WinPOP MailBox from an ASP Net Application"
- Messages sorted by: [ date ] [ thread ]