Click here to Skip to main content
15,912,493 members
Home / Discussions / C#
   

C#

 
QuestionApplication not closing properly Pin
Chazzysb29-Sep-08 1:26
Chazzysb29-Sep-08 1:26 
AnswerRe: Application not closing properly Pin
HemJoshi29-Sep-08 2:31
HemJoshi29-Sep-08 2:31 
QuestionUnexpected message queue behaviour Pin
Nicholas Butler29-Sep-08 1:11
sitebuilderNicholas Butler29-Sep-08 1:11 
AnswerRe: Unexpected message queue behaviour Pin
leppie29-Sep-08 1:39
leppie29-Sep-08 1:39 
GeneralRe: Unexpected message queue behaviour Pin
Nicholas Butler29-Sep-08 1:48
sitebuilderNicholas Butler29-Sep-08 1:48 
GeneralRe: Unexpected message queue behaviour Pin
leppie29-Sep-08 2:59
leppie29-Sep-08 2:59 
GeneralRe: Unexpected message queue behaviour Pin
Nicholas Butler29-Sep-08 3:23
sitebuilderNicholas Butler29-Sep-08 3:23 
QuestionConnection problem with MS Exchange Server Pin
free_soul42429-Sep-08 1:02
free_soul42429-Sep-08 1:02 
Hi,
I am trying to connect with Microsoft Exchange Server using the following code

static void Main(string[] args)
{        {

System.Net.ServicePointManager.ServerCertificateValidationCallback =delegate(Object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
            {
                return true;
            };

ExchangeServiceBinding objExchangeServiceBinding = new ExchangeServiceBinding();
            objExchangeServiceBinding.Credentials = new System.Net.NetworkCredential("user", "pass", "domain.com");
            //objExchangeServiceBinding.AllowAutoRedirect = true;
            objExchangeServiceBinding.UseDefaultCredentials = true;
            objExchangeServiceBinding.Url = "https://10.11.1.250/ews/Exchange.asmx";
            
            FindItemType request = new FindItemType();
            request.ItemShape = new ItemResponseShapeType();
            request.ItemShape.BaseShape = DefaultShapeNamesType.Default;
            request.Traversal = ItemQueryTraversalType.Shallow;
            request.ParentFolderIds = new BaseFolderIdType[1];
      DistinguishedFolderIdType inbox = new    DistinguishedFolderIdType();
            inbox.Id = DistinguishedFolderIdNameType.inbox;
            request.ParentFolderIds[0] = inbox;

ServerVersionInfo objServerVersionInfo  = objExchangeServiceBinding.ServerVersionInfoValue;
}


But I get the following error
“The request failed with HTTP status 401: Unauthorized.”
Can anyone please tell me what the problem is? I will be thankful to you
regards,
AnswerRe: Connection problem with MS Exchange Server Pin
Brij29-Sep-08 2:24
mentorBrij29-Sep-08 2:24 
GeneralRe: Connection problem with MS Exchange Server Pin
free_soul42429-Sep-08 17:37
free_soul42429-Sep-08 17:37 
QuestionChange Resolution Pin
Hossein Afyuoni29-Sep-08 0:54
Hossein Afyuoni29-Sep-08 0:54 
AnswerRe: Change Resolution Pin
Giorgi Dalakishvili29-Sep-08 1:29
mentorGiorgi Dalakishvili29-Sep-08 1:29 
Questionreading font files Pin
GSSPriya29-Sep-08 0:51
GSSPriya29-Sep-08 0:51 
AnswerRe: reading font files Pin
Anthony Mushrow29-Sep-08 3:01
professionalAnthony Mushrow29-Sep-08 3:01 
GeneralRe: reading font files Pin
GSSPriya29-Sep-08 19:45
GSSPriya29-Sep-08 19:45 
QuestionAdd Scanner Pin
Pedram Behroozi29-Sep-08 0:05
Pedram Behroozi29-Sep-08 0:05 
AnswerRe: Add Scanner Pin
N a v a n e e t h29-Sep-08 0:12
N a v a n e e t h29-Sep-08 0:12 
GeneralRe: Add Scanner Pin
Hossein Afyuoni29-Sep-08 0:38
Hossein Afyuoni29-Sep-08 0:38 
AnswerRe: Add Scanner Pin
vkuttyp29-Sep-08 18:14
professionalvkuttyp29-Sep-08 18:14 
QuestionCOM object in .net whose threading model is STA, not both Pin
Shao Voon Wong28-Sep-08 23:38
mvaShao Voon Wong28-Sep-08 23:38 
QuestionAuto FIll dropdown in asp.net 2.0 Pin
srinivaskonijeti28-Sep-08 23:30
srinivaskonijeti28-Sep-08 23:30 
AnswerRe: Auto FIll dropdown in asp.net 2.0 Pin
Harvey Saayman29-Sep-08 0:18
Harvey Saayman29-Sep-08 0:18 
QuestionGeneration of Report in .NET from whatever comments in Solution file. Pin
Piyush Vaishnav28-Sep-08 23:01
Piyush Vaishnav28-Sep-08 23:01 
AnswerRe: Generation of Report in .NET from whatever comments in Solution file. Pin
bruze28-Sep-08 23:39
bruze28-Sep-08 23:39 
GeneralRe: Generation of Report in .NET from whatever comments in Solution file. Pin
Piyush Vaishnav29-Sep-08 0:00
Piyush Vaishnav29-Sep-08 0:00 

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.