Click here to Skip to main content
15,915,513 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: SmtpClient 2.0 Framework Pin
Dave Kreskowiak12-Jan-06 9:06
mveDave Kreskowiak12-Jan-06 9:06 
Questionmedia player control? Pin
pgcnet11-Jan-06 2:33
pgcnet11-Jan-06 2:33 
AnswerRe: media player control? Pin
Christian Graus11-Jan-06 11:11
protectorChristian Graus11-Jan-06 11:11 
QuestionPivotTable Pin
ckruger11-Jan-06 2:00
ckruger11-Jan-06 2:00 
QuestionHow to find my windows service ( SOS ) Pin
Texas_CodeMaster10-Jan-06 14:37
Texas_CodeMaster10-Jan-06 14:37 
Questioncomo limpiar consola Pin
yero10-Jan-06 9:38
yero10-Jan-06 9:38 
AnswerRe: como limpiar consola Pin
Dave Kreskowiak10-Jan-06 10:03
mveDave Kreskowiak10-Jan-06 10:03 
QuestionCreating mailbox in Exchange 2003 from asp.net web application Pin
VPR10-Jan-06 8:29
VPR10-Jan-06 8:29 
I am trying to create a mailbox from a web applicattion that it is not in a domain controller (a webservice) using CDOEXCH. The code works fine when the web service is in the domain controller but no way out of it. If we put the code in a Windows applicattion then everything work fine even in a non domain controller computer. We have try to impersonate the asp, or even the application pool. The security context was ok but there is something wrong with any permission or something like that though the credentials have domain administrator rights.
I have tried to encapsulate the code in a COM+ object and impersonating with administrator rights but I didn´t success. I copy the general idea from our code and the return error. Any idea wolud be really apreciate

DirectoryEntry container, user;
CDOEXM.IMailboxStore mailbox;

//This creates the new user in the "users" container.
//Set the sAMAccountName and the password
container = new DirectoryEntry("LDAP://cn=users," + defaultNC);
user = container.Children.Add("cn=" + fullName, "user");
user.Properties["sAMAccountName"].Add(alias);
user.CommitChanges();
user.Invoke("SetPassword", new object[]{password});

//This enables the new user.
user.Properties["userAccountControl"].Value = 0x200; //ADS_UF_NORMAL_ACCOUNT
user.CommitChanges();

//Obtain the IMailboxStore interface, create the mailbox, and commit the changes.
mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();

RETURN ERROR:
Unable to create a mailbox for the specified user. Using homeMDB path: LDAP://PRSRVDCCAM1.redcam.local/CN=Mailbox Store (PRSRVDCCAM1),CN=First Storage Group,CN=InformationStore,CN=PRSRVDCCAM1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=CAM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=REDCAM,DC=local. Inner exception attached from: mscorlib. Current user context: REDCAM\AdministratorWith error
Facility: LDAP Provider
ID no: 80072020
Microsoft CDO for Exchange Management

AnswerRe: Creating mailbox in Exchange 2003 from asp.net web application Pin
Curtis Schlak.10-Jan-06 9:09
Curtis Schlak.10-Jan-06 9:09 
GeneralRe: Creating mailbox in Exchange 2003 from asp.net web application Pin
VPR10-Jan-06 21:30
VPR10-Jan-06 21:30 
QuestionProgramming own Browser in .NET 2.0 Pin
tommy_tanaka10-Jan-06 3:44
tommy_tanaka10-Jan-06 3:44 
AnswerRe: Programming own Browser in .NET 2.0 Pin
Curtis Schlak.10-Jan-06 4:58
Curtis Schlak.10-Jan-06 4:58 
AnswerRe: Programming own Browser in .NET 2.0 Pin
mitooki13-Jan-06 6:12
mitooki13-Jan-06 6:12 
GeneralRe: Programming own Browser in .NET 2.0 Pin
tommy_tanaka13-Jan-06 6:25
tommy_tanaka13-Jan-06 6:25 
Questionc# and javascript functions Pin
ckruger10-Jan-06 3:02
ckruger10-Jan-06 3:02 
AnswerRe: c# and javascript functions Pin
Guffa10-Jan-06 6:40
Guffa10-Jan-06 6:40 
Question.net built in classes Pin
pyro_3k10-Jan-06 2:49
pyro_3k10-Jan-06 2:49 
AnswerRe: .net built in classes Pin
Dave Kreskowiak10-Jan-06 5:14
mveDave Kreskowiak10-Jan-06 5:14 
GeneralRe: .net built in classes Pin
pyro_3k10-Jan-06 5:35
pyro_3k10-Jan-06 5:35 
QuestionPassing long from ASP to C# method Pin
sauravg2810-Jan-06 0:29
sauravg2810-Jan-06 0:29 
AnswerRe: Passing long from ASP to C# method Pin
jonathan1510-Jan-06 1:50
jonathan1510-Jan-06 1:50 
GeneralRe: Passing long from ASP to C# method Pin
Guffa10-Jan-06 6:44
Guffa10-Jan-06 6:44 
Questionwho's familiar with Intel UPnP stuff ? Pin
cat_9-Jan-06 20:55
cat_9-Jan-06 20:55 
QuestionRewriting SplitContainer functionality Pin
IMinusMinus9-Jan-06 15:41
IMinusMinus9-Jan-06 15:41 
AnswerRe: Rewriting SplitContainer functionality Pin
Daniel Grunwald10-Jan-06 7:49
Daniel Grunwald10-Jan-06 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.