Click here to Skip to main content
15,905,963 members
Home / Discussions / C#
   

C#

 
QuestionRe: trapping F1 in a file dialog Pin
mla15415-Jun-10 4:30
mla15415-Jun-10 4:30 
AnswerRe: trapping F1 in a file dialog Pin
dan!sh 15-Jun-10 4:49
professional dan!sh 15-Jun-10 4:49 
GeneralRe: trapping F1 in a file dialog Pin
mla15415-Jun-10 5:12
mla15415-Jun-10 5:12 
GeneralRe: trapping F1 in a file dialog Pin
Dave Kreskowiak15-Jun-10 5:25
mveDave Kreskowiak15-Jun-10 5:25 
GeneralRe: trapping F1 in a file dialog [modified] Pin
mla15415-Jun-10 5:30
mla15415-Jun-10 5:30 
GeneralRe: trapping F1 in a file dialog Pin
Dave Kreskowiak15-Jun-10 7:05
mveDave Kreskowiak15-Jun-10 7:05 
GeneralRe: trapping F1 in a file dialog Pin
dan!sh 15-Jun-10 5:57
professional dan!sh 15-Jun-10 5:57 
QuestionCreating Calendar folders using WebDav and C# Pin
vonb15-Jun-10 4:10
vonb15-Jun-10 4:10 
Hello,

Creating one calendar folder (..\<account>\Calendar\<folder>) works without problems. (Using a MKCOL Query for IPF.Appointment).

However creating a sub-sub folder (needed for example dept/responsable/employee) it keeps giving me a "409 Conflict" Error from exchange. Creating the folder manually in outlook works fine.

Code is the following.

 string sUri = "http://ExchServer/Exchange/vonb/calendar/xxx"; //==>OK
//string sUri = "http://ExchServer/Exchange/vonb/calendar/xxx/yyy"; //==>Not OK even after the creation and 
//testing of the /xxx/ folder

	  
	        System.Uri myUri = new System.Uri(sUri);
	        HttpWebRequest HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);
	
	        string sQuery;
	        sQuery = "<?xml version='1.0'?>" + 
	          "<a:propertyupdate xmlns:a='DAV:' " + 
	          "xmlns:ex='http://schemas.microsoft.com/exchange/'>" + 
	          "<a:set><a:prop>" + 
	          "<ex:outlookfolderclass>IPF.Appointment</ex:outlookfolderclass>" + 
	          "</a:prop></a:set>" + 
	          "</a:propertyupdate>";
	
	        // Set Credentials
	        // TODO: Replace with appropriate user credentials
	        NetworkCredential myCred = new NetworkCredential(@"<myUser>", "<myPWD>");
	        CredentialCache myCredentialCache = new CredentialCache();
	        myCredentialCache.Add(myUri, "NTLM", myCred);
	        HttpWRequest.Credentials = myCredentialCache;
	
	        // Set Headers
	        HttpWRequest.KeepAlive = false; 
	        HttpWRequest.Headers.Set("Pragma", "no-cache");
	        HttpWRequest.ContentType =  "text/xml";
	        HttpWRequest.ContentLength = sQuery.Length;
	
	        //Set the request timeout to 5 minutes
	        HttpWRequest.Timeout = 300000;
	        // Set the request method
	        HttpWRequest.Method = "MKCOL";
	
	        // Store the data in a byte array
	        byte[] ByteQuery = System.Text.Encoding.ASCII.GetBytes(sQuery);
	        HttpWRequest.ContentLength = ByteQuery.Length;
	        Stream QueryStream = HttpWRequest.GetRequestStream();
	        // Write the data to be posted to the Request Stream
	        QueryStream.Write(ByteQuery,0,ByteQuery.Length);
	        QueryStream.Close();
	
	        // Send Request and Get Response
	        HttpWebResponse HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();
	
	        // Get the Status code
	        int iStatCode =  (int)HttpWResponse.StatusCode;


Comes directly from MSDN, so should be fine

Any help would be apreciated, thanks

vonb
QuestionAzMan Authorization provider and Security problem [modified] Pin
karanba15-Jun-10 3:01
karanba15-Jun-10 3:01 
AnswerRe: AzMan Authorization provider and Security problem Pin
R. Giskard Reventlov15-Jun-10 3:58
R. Giskard Reventlov15-Jun-10 3:58 
Questionadd property to Object OR String .... Pin
jojoba201115-Jun-10 2:31
jojoba201115-Jun-10 2:31 
AnswerRe: add property to Object OR String .... Pin
Peace ON15-Jun-10 2:46
Peace ON15-Jun-10 2:46 
QuestionRe: add property to Object OR String .... [modified] Pin
jojoba201115-Jun-10 2:51
jojoba201115-Jun-10 2:51 
AnswerRe: add property to Object OR String .... Pin
Luc Pattyn15-Jun-10 3:03
sitebuilderLuc Pattyn15-Jun-10 3:03 
QuestionRe: add property to Object OR String .... Pin
jojoba201115-Jun-10 3:04
jojoba201115-Jun-10 3:04 
AnswerRe: add property to Object OR String .... Pin
Luc Pattyn15-Jun-10 3:12
sitebuilderLuc Pattyn15-Jun-10 3:12 
AnswerRe: add property to Object OR String .... Pin
Dave Kreskowiak15-Jun-10 5:19
mveDave Kreskowiak15-Jun-10 5:19 
AnswerStop posting the same question. Pin
Pete O'Hanlon15-Jun-10 3:07
mvePete O'Hanlon15-Jun-10 3:07 
AnswerRe: add property to Object OR String .... PinPopular
J4amieC15-Jun-10 3:13
J4amieC15-Jun-10 3:13 
QuestionRe: add property to Object OR String .... Pin
jojoba201115-Jun-10 3:22
jojoba201115-Jun-10 3:22 
AnswerRe: add property to Object OR String .... Pin
DaveyM6915-Jun-10 3:30
professionalDaveyM6915-Jun-10 3:30 
AnswerRe: add property to Object OR String .... Pin
J4amieC15-Jun-10 5:11
J4amieC15-Jun-10 5:11 
QuestionRe: add property to Object OR String .... Pin
jojoba201115-Jun-10 3:48
jojoba201115-Jun-10 3:48 
AnswerRe: add property to Object OR String .... Pin
Pete O'Hanlon15-Jun-10 4:07
mvePete O'Hanlon15-Jun-10 4:07 
AnswerRe: add property to Object OR String .... Pin
DaveyM6915-Jun-10 4:17
professionalDaveyM6915-Jun-10 4:17 

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.