Click here to Skip to main content
15,888,521 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionproblem in join query in access database Pin
Ravi_2127-Nov-07 19:36
Ravi_2127-Nov-07 19:36 
AnswerRe: problem in join query in access database Pin
Prateek G27-Nov-07 21:25
Prateek G27-Nov-07 21:25 
QuestionCan anyone tell me about the Satellite assembly? Pin
Ganesan Sankaran27-Nov-07 18:45
Ganesan Sankaran27-Nov-07 18:45 
AnswerRe: Can anyone tell me about the Satellite assembly? Pin
_AK_27-Nov-07 18:53
_AK_27-Nov-07 18:53 
AnswerRe: Can anyone tell me about the Satellite assembly? Pin
John-ph27-Nov-07 19:06
John-ph27-Nov-07 19:06 
Questioninsert or update records in the gridview Pin
subbu.sk27-Nov-07 18:31
subbu.sk27-Nov-07 18:31 
AnswerRe: insert or update records in the gridview Pin
_AK_27-Nov-07 18:35
_AK_27-Nov-07 18:35 
QuestionCreating folder in outlook 2003 conacts Pin
M LN Rao27-Nov-07 18:26
M LN Rao27-Nov-07 18:26 
Hi, I am working on outlook and ASP.NET integration. I am using the following class method to create a folder in the outlook 20003 contacts folder.

public class Folder<br />
{<br />
    public static void CreateFolder(String folderName)<br />
    {<br />
        Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();<br />
<br />
        Outlook.MAPIFolder oNs = (Outlook.MAPIFolder)oApp.GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderContacts);<br />
        oNs.Session.Folders.Add(folderName, Outlook.OlDefaultFolders.olFolderContacts);<br />
    } <br />
    <br />
}

From asp.net page I am passing the folder name. But it is throwing following exception.
Blush | :O
The operation failed.
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.Runtime.InteropServices.COMException: The operation failed.

Source Error:


Line 19:
Line 20: Outlook.MAPIFolder oNs = (Outlook.MAPIFolder)oApp.GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderContacts);
Line 21: oNs.Session.Folders.Add(folderName, Outlook.OlDefaultFolders.olFolderContacts);
Line 22: }
Line 23:



Please help me.

Intelligence is measured by common sense not by how many scholarly books you read.

Questionsystem time Pin
mukesh.mr0327-Nov-07 18:03
mukesh.mr0327-Nov-07 18:03 
AnswerRe: system time Pin
soni uma27-Nov-07 18:09
soni uma27-Nov-07 18:09 
AnswerRe: system time Pin
_AK_27-Nov-07 18:13
_AK_27-Nov-07 18:13 
AnswerRe: system time Pin
Sun Rays27-Nov-07 18:15
Sun Rays27-Nov-07 18:15 
QuestionWhen i press enter key in textbox control ,buttons event gets call. Pin
coolsatty27-Nov-07 17:17
coolsatty27-Nov-07 17:17 
QuestionWeb Server Control and Property Pin
Adoremi27-Nov-07 16:37
Adoremi27-Nov-07 16:37 
AnswerRe: Web Server Control and Property Pin
Venkatesh Mookkan27-Nov-07 18:01
Venkatesh Mookkan27-Nov-07 18:01 
QuestionUse of Login in the Toolbox Pin
Venkatesh Mookkan27-Nov-07 16:33
Venkatesh Mookkan27-Nov-07 16:33 
GeneralRe: Use of Login in the Toolbox Pin
Sam Xavier9-Dec-07 23:05
Sam Xavier9-Dec-07 23:05 
Questionblock internet Pin
biren6127-Nov-07 13:39
biren6127-Nov-07 13:39 
AnswerRe: block internet Pin
Colin Angus Mackay27-Nov-07 14:11
Colin Angus Mackay27-Nov-07 14:11 
QuestionBind with GridView Pin
johnmuthu27-Nov-07 8:14
johnmuthu27-Nov-07 8:14 
AnswerRe: Bind with GridView Pin
pmarfleet27-Nov-07 8:43
pmarfleet27-Nov-07 8:43 
QuestionRe: Bind with GridView Pin
Venkatesh Mookkan27-Nov-07 16:24
Venkatesh Mookkan27-Nov-07 16:24 
QuestionHow to get text From Page1 to Page2? Pin
Zeeshan Ahmed Memon27-Nov-07 4:54
Zeeshan Ahmed Memon27-Nov-07 4:54 
AnswerRe: How to get text From Page1 to Page2? Pin
SABhatti27-Nov-07 5:09
SABhatti27-Nov-07 5:09 
AnswerRe: How to get text From Page1 to Page2? Pin
pmarfleet27-Nov-07 5:10
pmarfleet27-Nov-07 5:10 

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.