473,698 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a WinPOP MailBox from an ASP Net Application

Hello,

I want to call a Command like

winpop add username@domain name /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
Nov 18 '05 #1
5 2040
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="tr ue" and it doesn't
seem to matter.

--Chris

"Markus Hopfenspirger" <Ma************ *****@discussio ns.microsoft.co m> wrote
in message news:D5******** *************** ***********@mic rosoft.com...
Hello,

I want to call a Command like

winpop add username@domain name /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

Nov 19 '05 #2
Hello Chris,

Sorry but I didn't get a answer yet, and just wrote a Programm started by a
locked on user... This is working...

Markus
Nov 19 '05 #3
Unfortunately, for my application the web is the only way possible. I don't
want to write this app in Classic ASP for sure - someone please help! :(

--Chris

"Markus Hopfenspirger" <Ma************ *****@discussio ns.microsoft.co m> wrote
in message news:73******** *************** ***********@mic rosoft.com...
Hello Chris,

Sorry but I didn't get a answer yet, and just wrote a Programm started by
a
locked on user... This is working...

Markus

Nov 19 '05 #4
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" <ch***@NOSP-Mobject-zone.net> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l...
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="tr ue" and it doesn't
seem to matter.

--Chris

"Markus Hopfenspirger" <Ma************ *****@discussio ns.microsoft.co m>
wrote in message
news:D5******** *************** ***********@mic rosoft.com...
Hello,

I want to call a Command like

winpop add username@domain name /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


Nov 19 '05 #5

I have been able to successfully create domains and email accounts using
P3Admin in .net. No permission problems; I am running this admin
applicaiton in the under the context of an admin ID

When trying to invoke winpop.exe to manage email passwords it did run
into the Access Denied problem discussed in this thread.

You need to use credentials on your process' startInfo
objProcess.Star tInfo.UserName = "userid"
objProcess.Star tInfo.Password = pwd 'NOTE password is a
Security.Secure String

Now that I have gotten past the permissions problem another issue has
come up. The process starts but then hangs.

Rather than using winpop to change passwords I would rather use
ChangePassword method in P3Admin.

Does anyone have some sample code showing the usage of ChangePassword?
The problem I am having is determining what is expected for "vID"
oConfig.Authent ication.Item(vI D).ChangePasswo rd(user.UserID,
user.Password, user.OldPasswor d)

--
jmunsch
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 8 '06 #6

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

Similar topics

2
4746
by: Vincent Nguyen | last post by:
Hi, I have problem create exchange 2000 mailbox using CDOEXM in my Web Service application. The error I got was "Catastrophic failure". Here is the code that I have: DirectoryEntry user = new DirectoryEntry("LDAP://fmsamrmc001.amrmc.minicorp.intel.com/"+strDN); user.Properties.Value = "aaamailbox1"; user.CommitChanges();
0
1289
by: Ouaes Jamali | last post by:
I am using C# and ASP.Net to create users and mailboxes. I can create an user without any problems but the code Blows up when i try to create a mailbox. Here is the code snippet is am using DirectoryEntry de = new DirectoryEntry(); DirectoryEntry ParentEntry = new DirectoryEntry(); CDOEXM.IMailboxStore Mailbox; ParentEntry.Username = username; ParentEntry.Password = password;
1
1949
by: B. Zuidgeest | last post by:
I use C# to connect a database with student information directly to the Active Directory (2003). This means that as the student is enlisted an account and mailbox is created in the active directory. Creating users is flawless en mailbox creating went perfect against a single exhange server using code from KB article 313114 of which part is displayed below. mailbox = (IMailboxStore)user.NativeObject; mailbox.CreateMailbox(homeMDB);...
0
1185
by: Flens | last post by:
Hi, I have code that worked until we upgraded from Exchange 2000 to Exchange 2003 and I now get a catastrophic failure at CreateMailbox (COMException (0x080004005)) I have updated the CDOEXM.dll (Version: 6.5.6944.0) as well. private void CreateMailbox(string homeMDB,DirectoryEntry CurrUser)
5
4869
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The Exchange System Manager is running on the web server and Exchange SP2 has been installed. The IIS site is configured with Basic Authentication and users are prompted to enter their Active Directory credentials when connecting to the site.
0
1573
by: Suman | last post by:
Hello Group, I am relatively new to .NET. I am trying to create a user in AD and a corresponding email account in the exchange server from an ASP.NET, C# application. ----------------------------- I have a problem wherein I am able to create a user but am unable to create a mailbox for the user. I "WAS" using exchange 2000.
3
2575
by: hardieca | last post by:
I would like to build a web application that will monitor a mailbox for new emails and then send a response. I have a reseller package with my hosting company, but they don't want to give me direct access to the mail server's API for security reasons. Can I instead somehow occasionally query my mailbox with POP? They won't deploy a standard app on their server because its shared amongst many resellers, is there a way I can do this with...
4
17670
by: pjblecha | last post by:
Hello all: I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a...
4
3556
by: box86rowh | last post by:
Hello all, I have been on a quest to setup email accounts through the code behind on one of my asp.net pages. I am using the process class to call the command line that creates the user: "c:\windows\system32\winpop.exe add user@domain.com /CREATEUSER password" I do not get an error on screen, but the account is never created and i get an error in my event viewer: "Application popup: winpop.exe - Application Error : The application...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6532
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.