Can anyone tell me what I am doing wrong. I get the following error on the objMailbox.CreateMailbox line. I am useing VS 2005 C# and exchange server 2003. I have the Exchange tools installed locally and get the same error if I try to run it on the Exchange
Server.
An operations error occurred. (Exception from HRESULT: 0x80072020)
I have the same problem and I don't understand why. I have 3 servers in my domain : The Active Directory Server, the Exchange Server where I have installed Exchange Server 2003 and my workstation for dev.
On each I've installed the Exchange Management tools. When I process the command CreateMailbox from my programm, an exception is throw.
I have tried many things and when I run the program on the server where Active Directory is installed, it works.
have you found any solution about running this programm on another computer in the domain ?
We are an American firm that specializes in developing world-class automated products and solutions for IT Professional.
You can check solutions for your query and feel free to Contact Us. Our Dedicated Team of Experts Will Helps You Find Solutions to any Technical Issues.
Member
1 Points
15 Posts
Exchange server 2003 and VS 2005 create mailbox error
Jul 12, 2007 01:45 PM|irondraco|LINK
Can anyone tell me what I am doing wrong. I get the following error on the objMailbox.CreateMailbox line. I am useing VS 2005 C# and exchange server 2003. I have the Exchange tools installed locally and get the same error if I try to run it on the Exchange Server.
An operations error occurred. (Exception from HRESULT: 0x80072020)
I am using CDOEXM object
using
ActiveDs;using CDO;
using
CDOEXM;{
string sEmpID = "12345"; string sUsername = "Test"; DirectoryEntry de = Conn.GetDirectoryEntry("EmpTest", "x"); DirectorySearcher ds = new DirectorySearcher(de); ds.Filter = "(&(objectCategory=Person)(objectClass=user)(employeeID=" + sEmpID + "))";ds.SearchScope =
SearchScope.Subtree; SearchResult results = ds.FindOne();if (results != null){
DirectoryEntry dey = Conn.GetDirectoryEntry("OneTest", results.Path);ActiveDs.
IADsUser objUser; objUser = (ActiveDs.IADsUser)dey.NativeObject;objUser.SetInfo();
CDOEXM.IMailboxStore objMailbox;objMailbox = (CDOEXM.
IMailboxStore)objUser; objMailbox.CreateMailbox("LDAP//CN=(myStore,CN=(myGroup),CN=InformationStore,CN=(myServer),CN=Servers,CN=(myAdmingroup),CN=Administrative Groups,CN=(myVariable),CN=Microsoft Exchange,CN=Services,CN=Configuration,dc=mystuff,dc=com");objUser.SetInfo();
objUser.PutEx(2, "proxyAddresses", sUsername + "@mystuff.com");objUser.SetInfo();
}
}
Thanks in advance
~IronDraco
Member
1 Points
4 Posts
Re: Exchange server 2003 and VS 2005 create mailbox error
Jul 20, 2007 03:47 AM|Billlegrand|LINK
Hello,
I have the same problem and I don't understand why. I have 3 servers in my domain : The Active Directory Server, the Exchange Server where I have installed Exchange Server 2003 and my workstation for dev.
On each I've installed the Exchange Management tools. When I process the command CreateMailbox from my programm, an exception is throw.
I have tried many things and when I run the program on the server where Active Directory is installed, it works.
have you found any solution about running this programm on another computer in the domain ?
None
0 Points
1 Post
Re: Exchange server 2003 and VS 2005 create mailbox error
Aug 22, 2019 07:21 AM|activejacksmith|LINK
Hi Iron,
We are an American firm that specializes in developing world-class automated products and solutions for IT Professional.
You can check solutions for your query and feel free to Contact Us. Our Dedicated Team of Experts Will Helps You Find Solutions to any Technical Issues.
Visit Us @ https://ossisto365.com or Email us at support@ossisto365.com.
Thanks in Advance
Jack Smith