Click here to Skip to main content
16,005,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to manage (control) div in firfox broser Pin
Piyush Vardhan Singh6-Aug-07 2:10
Piyush Vardhan Singh6-Aug-07 2:10 
QuestionGrant ing ASP.NET access to a file Pin
ASPnoob6-Aug-07 0:21
ASPnoob6-Aug-07 0:21 
AnswerRe: Grant ing ASP.NET access to a file Pin
vimal_yet6-Aug-07 0:27
vimal_yet6-Aug-07 0:27 
Questionhow to store different users data in asp.net 2.0 Pin
asrabanu6-Aug-07 0:18
asrabanu6-Aug-07 0:18 
AnswerRe: how to store different users data in asp.net 2.0 Pin
vimal_yet6-Aug-07 0:21
vimal_yet6-Aug-07 0:21 
GeneralRe: how to store different users data in asp.net 2.0 Pin
asrabanu6-Aug-07 0:25
asrabanu6-Aug-07 0:25 
GeneralRe: how to store different users data in asp.net 2.0 Pin
vimal_yet6-Aug-07 0:30
vimal_yet6-Aug-07 0:30 
QuestionMicrosoft.Office.Interop.Outlook.Application() [modified] Pin
catchrajvi6-Aug-07 0:08
catchrajvi6-Aug-07 0:08 
Im making an application that makes a calendar entry into the MS Outlook database. Im using

Visual Studio 2005
Windows XP service pack 2
MS Outlook 2003
Im writing my code on a virtual machine (Windows XP service pack 2).

Im using the Microsoft Outlook 11.0 Object Library which ships with Outlook 2003. I have added it as a reference in my project. I have shown the code below. After writing the code, it compiles successfully. But when I run this, I get the below error while creating the object for Microsoft.Office.Interop.Outlook.Application():

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.




try
{
Microsoft.Office.Interop.Outlook.Application outlookApp;
outlookApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.AppointmentItem oAppointment = (Microsoft.Office.Interop.Outlook.AppointmentItem)outlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);

oAppointment.Subject = "This is appointment Subject";

oAppointment.Body = "This is appointment body";

oAppointment.Location = "This is appointment location";

oAppointment.Start = Convert.ToDateTime("07/29/2008 10:00:00 AM");

oAppointment.End = Convert.ToDateTime("07/29/2008 10:00:00 AM");

oAppointment.ReminderSet = true;

oAppointment.ReminderMinutesBeforeStart = 15;

oAppointment.ReminderPlaySound = false;

oAppointment.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceHigh;

oAppointment.BusyStatus = Microsoft.Office.Interop.Outlook.OlBusyStatus.olBusy;

//This method save the appointment to the outlook

oAppointment.Save();
}
catch (System.Exception ex)
{
Response.Write(ex.Message.ToString());
}



The application works while using Asp Pws but if i use IIS it stops working

I hv tried to give rights to IUSER_MACHIN account and also install Office PIA but still it gives the same error

Plz help me out if anybody knows the soltion






-- modified at 6:28 Monday 6th August, 2007
AnswerRe: Microsoft.Office.Interop.Outlook.Application() Pin
Vasudevan Deepak Kumar6-Aug-07 1:36
Vasudevan Deepak Kumar6-Aug-07 1:36 
QuestionAuthenication Using Certificate Pin
Malayil alex5-Aug-07 23:53
Malayil alex5-Aug-07 23:53 
Questionencryption conncetion string Pin
saravanan055-Aug-07 23:51
saravanan055-Aug-07 23:51 
AnswerRe: encryption conncetion string Pin
N a v a n e e t h6-Aug-07 0:13
N a v a n e e t h6-Aug-07 0:13 
AnswerRe: encryption conncetion string Pin
Vasudevan Deepak Kumar6-Aug-07 0:34
Vasudevan Deepak Kumar6-Aug-07 0:34 
GeneralRe: encryption conncetion string Pin
N a v a n e e t h6-Aug-07 0:48
N a v a n e e t h6-Aug-07 0:48 
GeneralRe: encryption conncetion string Pin
Vasudevan Deepak Kumar6-Aug-07 1:26
Vasudevan Deepak Kumar6-Aug-07 1:26 
GeneralRe: encryption conncetion string Pin
Cfer836-Aug-07 7:00
Cfer836-Aug-07 7:00 
Questionsaving flv file into folder Pin
harithadotnet5-Aug-07 23:51
harithadotnet5-Aug-07 23:51 
AnswerRe: saving flv file into folder Pin
Vasudevan Deepak Kumar6-Aug-07 0:28
Vasudevan Deepak Kumar6-Aug-07 0:28 
Questionabout the audio files Pin
mj_jai5-Aug-07 23:31
mj_jai5-Aug-07 23:31 
AnswerRe: about the audio files Pin
Vasudevan Deepak Kumar5-Aug-07 23:45
Vasudevan Deepak Kumar5-Aug-07 23:45 
GeneralRe: about the audio files Pin
Malcolm Smart5-Aug-07 23:46
Malcolm Smart5-Aug-07 23:46 
GeneralRe: about the audio files Pin
Vasudevan Deepak Kumar6-Aug-07 0:32
Vasudevan Deepak Kumar6-Aug-07 0:32 
QuestionJavascript select element manipulation- getting values in postback Pin
K.P.Kannan5-Aug-07 23:14
K.P.Kannan5-Aug-07 23:14 
Questionhow to add folders dynamically Pin
santoshkumarB5-Aug-07 22:59
santoshkumarB5-Aug-07 22:59 
AnswerRe: how to add folders dynamically Pin
Malcolm Smart5-Aug-07 23:30
Malcolm Smart5-Aug-07 23:30 

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.