Click here to Skip to main content
15,902,741 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Master page problem Pin
Sherin Iranimose27-May-07 20:17
Sherin Iranimose27-May-07 20:17 
GeneralRe: Master page problem Pin
Amr M. K.28-May-07 2:29
Amr M. K.28-May-07 2:29 
GeneralRe: Master page problem Pin
Sherin Iranimose28-May-07 2:42
Sherin Iranimose28-May-07 2:42 
GeneralRe: Master page problem Pin
Sherin Iranimose28-May-07 2:50
Sherin Iranimose28-May-07 2:50 
GeneralRe: Master page problem Pin
Amr M. K.28-May-07 2:57
Amr M. K.28-May-07 2:57 
Questionhow to updata database Pin
sooreeagt27-May-07 19:28
sooreeagt27-May-07 19:28 
AnswerRe: how to updata database Pin
varshavmane27-May-07 20:20
varshavmane27-May-07 20:20 
QuestionError sending meeting request Pin
www.Developerof.NET27-May-07 19:06
www.Developerof.NET27-May-07 19:06 
I am encountering the following error while sending an outlook meeting request.


Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true">, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

I assigned all the permissions possible but it ain`t work.

Following is my code:
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Outlook;


public static void CreateMeetingRequest(string toEmail, string subject, string body, DateTime startDate , DateTime endDate)

{

Outlook.Application objOL = new Outlook.Application();

Outlook.AppointmentItem objAppt = (Outlook.AppointmentItem)objOL.CreateItem(OlItemType.olAppointmentItem);


objAppt.Start = startDate;

objAppt.End = endDate;

objAppt.Subject = subject;

objAppt.Body = body;


objAppt.MeetingStatus =Outlook.OlMeetingStatus.olMeeting;

objAppt.RequiredAttendees = toEmail;

objAppt.Send();

objAppt = null;

objOL = null;

}


private void Button1_Click(object sender, System.EventArgs e)
{
CreateMeetingRequest("abc.23@gmail.com","Hello test","Cool it works",DateTime.Now.AddDays(1),DateTime.Now.AddDays(1).AddHours(1));


}

Pls help!!!!
Questionhow to upload an excel file and store it in database Pin
sooreeagt27-May-07 18:26
sooreeagt27-May-07 18:26 
AnswerRe: how to upload an excel file and store it in database Pin
Christian Graus27-May-07 18:49
protectorChristian Graus27-May-07 18:49 
QuestionRepetitive Rows of Controls Pin
freshonlineMax27-May-07 17:40
freshonlineMax27-May-07 17:40 
AnswerRe: Repetitive Rows of Controls Pin
Christian Graus27-May-07 18:13
protectorChristian Graus27-May-07 18:13 
GeneralRe: Repetitive Rows of Controls Pin
freshonlineMax27-May-07 19:55
freshonlineMax27-May-07 19:55 
GeneralRe: Repetitive Rows of Controls Pin
Sandeep Akhare27-May-07 20:06
Sandeep Akhare27-May-07 20:06 
GeneralRe: Repetitive Rows of Controls Pin
Sathesh Sakthivel27-May-07 20:06
Sathesh Sakthivel27-May-07 20:06 
AnswerRe: Repetitive Rows of Controls Pin
freshonlineMax27-May-07 20:25
freshonlineMax27-May-07 20:25 
Questiontree component with multiple columns Pin
dannyyy27-May-07 11:03
dannyyy27-May-07 11:03 
QuestionHow do I add HTML dynamically in C# ASP? Pin
InvalidTypecast27-May-07 9:25
InvalidTypecast27-May-07 9:25 
AnswerRe: How do I add HTML dynamically in C# ASP? Pin
Christian Graus27-May-07 10:45
protectorChristian Graus27-May-07 10:45 
QuestionSoapException Pin
123456uio27-May-07 8:44
123456uio27-May-07 8:44 
QuestionPageChanged Event Handling with User Control Pin
Anees Mitha27-May-07 8:34
Anees Mitha27-May-07 8:34 
AnswerRe: PageChanged Event Handling with User Control Pin
Christian Graus27-May-07 10:49
protectorChristian Graus27-May-07 10:49 
GeneralRe: PageChanged Event Handling with User Control Pin
Anees Mitha27-May-07 17:23
Anees Mitha27-May-07 17:23 
GeneralRe: PageChanged Event Handling with User Control Pin
Christian Graus27-May-07 17:36
protectorChristian Graus27-May-07 17:36 
Questionpicture in URL Pin
haytham_mohammad27-May-07 8:00
haytham_mohammad27-May-07 8: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.