Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to run a process forever Pin
Dave Kreskowiak19-Mar-10 2:05
mveDave Kreskowiak19-Mar-10 2:05 
GeneralRe: How to run a process forever Pin
Xelalem19-Mar-10 2:39
Xelalem19-Mar-10 2:39 
GeneralRe: How to run a process forever Pin
Dave Kreskowiak19-Mar-10 2:54
mveDave Kreskowiak19-Mar-10 2:54 
GeneralRe: How to run a process forever Pin
Xelalem19-Mar-10 3:51
Xelalem19-Mar-10 3:51 
GeneralRe: How to run a process forever Pin
Dave Kreskowiak19-Mar-10 12:28
mveDave Kreskowiak19-Mar-10 12:28 
AnswerRe: How to run a process forever Pin
Dave Kreskowiak19-Mar-10 2:53
mveDave Kreskowiak19-Mar-10 2:53 
GeneralRe: How to run a process forever Pin
Xelalem21-Mar-10 3:18
Xelalem21-Mar-10 3:18 
GeneralRe: How to run a process forever Pin
Dave Kreskowiak21-Mar-10 7:09
mveDave Kreskowiak21-Mar-10 7:09 
QuestionCOM exception unhandled Pin
sindhumahe18-Mar-10 20:19
sindhumahe18-Mar-10 20:19 
QuestionImporting data from an Excel Doc Pin
Gold_Dark18-Mar-10 19:32
Gold_Dark18-Mar-10 19:32 
AnswerRe: Importing data from an Excel Doc Pin
SeMartens18-Mar-10 21:22
SeMartens18-Mar-10 21:22 
GeneralRe: Importing data from an Excel Doc Pin
Gold_Dark18-Mar-10 21:27
Gold_Dark18-Mar-10 21:27 
QuestionHow to remove the Highlight blue colour in list box Pin
Joe Rozario18-Mar-10 18:32
Joe Rozario18-Mar-10 18:32 
AnswerRe: How to remove the Highlight blue colour in list box Pin
Joe Rozario18-Mar-10 19:47
Joe Rozario18-Mar-10 19:47 
QuestionUsing textfile as a storage system for numerical data... Pin
sebogawa18-Mar-10 16:34
sebogawa18-Mar-10 16:34 
AnswerRe: Using textfile as Pin
RCoate18-Mar-10 16:40
RCoate18-Mar-10 16:40 
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 

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.