Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using textfile as Pin
sebogawa18-Mar-10 16:45
sebogawa18-Mar-10 16:45 
AnswerRe: Using textfile as a storage system for numerical data... Pin
Luc Pattyn18-Mar-10 16:51
sitebuilderLuc Pattyn18-Mar-10 16:51 
GeneralRe: Using textfile as a storage system for numerical data... Pin
sebogawa18-Mar-10 17:28
sebogawa18-Mar-10 17:28 
GeneralRe: Using textfile as a storage system for numerical data... Pin
Luc Pattyn18-Mar-10 17:38
sitebuilderLuc Pattyn18-Mar-10 17:38 
GeneralRe: Using textfile as a storage system for numerical data... Pin
sebogawa18-Mar-10 17:50
sebogawa18-Mar-10 17:50 
GeneralRe: Using textfile as a storage system for numerical data... Pin
sebogawa18-Mar-10 22:43
sebogawa18-Mar-10 22:43 
GeneralRe: Using textfile as a storage system for numerical data... Pin
Luc Pattyn19-Mar-10 3:03
sitebuilderLuc Pattyn19-Mar-10 3:03 
QuestionMicrosoft.Exchange.WebServices Question Pin
RCoate18-Mar-10 13:56
RCoate18-Mar-10 13:56 
I am testing out using Exchange Webservices to post tasks to the current user in a corporate intranet.
The code below works when I run it through Visual Studio 2008 debug mode, but when I publish it to the intranet site, it bails with the following error:

Microsoft.Exchange.WebServices.Data.ServiceResponseException: 
     When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids.


I have disabled anonymous access to the website and have it set security to Integrated Windows Authentication.
As you can see below, I am passing the default credentials to the web service.

What am I missing here?Confused | :confused:
Any help will be appreciated.

public class ExchangeTask
{
   ExchangeService myService = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
	public ExchangeTask()
	{
         ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
        {
        // Trust all certificates. WARNING: Don't do this in production code!
            return true;
        };
        myService.UseDefaultCredentials = true;
        myService.AutodiscoverUrl(EmailAddressToFind);
        ServiceURL = myService.Url.ToString();
    }

    public void SendTask()
    {
        Task myTask = new Task(myService);
        
        myTask.Body = "This is a reminder task that has automatically been set by ExchangeWebservices";
        myTask.DueDate = DateTime.Now;
        myTask.ReminderDueBy = DateTime.Now;
        myTask.StartDate = DateTime.Now;
        myTask.Subject = "Event Reminder Task";
        myTask.Save();
    }

AnswerRe: Microsoft.Exchange.WebServices Question Pin
RCoate21-Mar-10 17:09
RCoate21-Mar-10 17:09 
AnswerRe: Microsoft.Exchange.WebServices Question Pin
alisonstang229-Jul-11 4:38
alisonstang229-Jul-11 4:38 
Questionappend node by element name Pin
Jassim Rahma18-Mar-10 11:43
Jassim Rahma18-Mar-10 11:43 
AnswerRe: append node by element name Pin
Not Active18-Mar-10 12:10
mentorNot Active18-Mar-10 12:10 
AnswerRe: append node by element name Pin
carlecomm18-Mar-10 15:44
carlecomm18-Mar-10 15:44 
AnswerRe: append node by element name Pin
Mirko198018-Mar-10 22:27
Mirko198018-Mar-10 22:27 
QuestionHow do I call a method on the parent form from another form? Pin
Paul Stol18-Mar-10 10:09
Paul Stol18-Mar-10 10:09 
AnswerRe: How do I call a method on the parent form from another form? Pin
T M Gray18-Mar-10 10:46
T M Gray18-Mar-10 10:46 
AnswerRe: How do I call a method on the parent form from another form? Pin
DaveyM6918-Mar-10 11:15
professionalDaveyM6918-Mar-10 11:15 
QuestionQuestion with converting double to long Pin
Fenryl18-Mar-10 9:19
Fenryl18-Mar-10 9:19 
AnswerRe: Question with converting double to long Pin
Alaric_18-Mar-10 9:35
professionalAlaric_18-Mar-10 9:35 
GeneralRe: Question with converting double to long Pin
#realJSOP18-Mar-10 9:44
mve#realJSOP18-Mar-10 9:44 
AnswerRe: Question with converting double to long Pin
#realJSOP18-Mar-10 9:46
mve#realJSOP18-Mar-10 9:46 
AnswerRe: Question with converting double to long Pin
Luc Pattyn18-Mar-10 9:55
sitebuilderLuc Pattyn18-Mar-10 9:55 
GeneralRe: Question with converting double to long Pin
Richard MacCutchan18-Mar-10 10:34
mveRichard MacCutchan18-Mar-10 10:34 
GeneralRe: Question with converting double to long Pin
Alaric_18-Mar-10 10:35
professionalAlaric_18-Mar-10 10:35 
GeneralRe: Question with converting double to long Pin
Luc Pattyn18-Mar-10 11:06
sitebuilderLuc Pattyn18-Mar-10 11:06 

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.