473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

COM & Outlook Application

Hi,
I am trying to send mail using Outlook component in C# code. But I am
getting errors. First error is,

Exception Details: System.UnauthorizedAccessException: General access
denied

error

ASP.NET is not authorized to access the requested resource. Consider

granting access rights to the resource to the ASP.NET request identity.
....

And then, I researched the web. And I found with similar error in Excel
component. I run DCOMCNFG and went to Component Services->Computers->My
Computer->DCOM Config->Microsoft Excell Application. And right
click->options->Security->Launch and Activation
Permissions->Customize->Edit. Then I gave all rights to ASPNET user.
After this operation I saw that there is no problem creating Excel
documents. So, I want to do same operation for Outlook. But I looked
that there is no clear Outlook dll. There are some dlls which includes
outlook keyword. I applied the same operation as Excel for ASPNET user
to these dlls. And I tried to run my application. And I saw that the
error changed to;

Server execution 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: Server
execution failed

Also, I gave the administrator role to ASPNET user.
Where is the wrong? Why I can not use Outlook. Please help.

Jan 30 '06 #1
0 1018

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MLH | last post by:
I have an AMP application running on linux server that collects, maintains and serves up image files to web clients. On my LAN (in fact, on the same subnet) I have both the linux box and windoze...
20
by: wolftor | last post by:
Would anyone be willing to beta test my application for me and give me some feedback? I can give you feedback in exchange (ie. if there are parts you're interested in knowing how it was done) or I...
1
by: Eric | last post by:
I am trying to start Outlook from C#. I have succeded in accessing the Outlook Inbox and SentMail folders but I'm nowhere in being able to make the application visible! What is the secret? ...
0
by: Nakah | last post by:
Hi, I have made an assembly that access to Outlook 2003 through Microsoft.Interop.Office.Outlook assembly. My library works fine with Windows applications. However, when I try to use it with...
3
by: wizzbangca | last post by:
Hi everyone. Having problems with a utility I am writing for work. The previous IT Director thoughtfully allowed 3 (2000, xp, 2003) versions of outlook to be installed rather than 1. Now I need...
3
by: Fred Zuckerman | last post by:
Hello All, I had written a quick email procedure for a client that uses DoCmd.SendObject. However they have the SR-1 version of Access 2K. They do not have the SP-3 upgrade. The procedure does...
1
by: Crash | last post by:
I am having a tough time finding documentation on DASL! 1) What the heck does DASL stand for - I can't even find any documentation on that? Anyway, I would like to integrate a DASL query into my...
8
by: Ken OHanlon | last post by:
I found this proven VB code on the internet, copy/pasted it but I get a "Method or data member not found" error on the line SET OLA=APPLICATION.SESSION... What am I doing wrong? Thanks -Ken. ...
0
by: Roman Optio | last post by:
Hi, I am currently working on a tool to transfer addressbook data such as contacts and organizations between Vondle and Outlook. For those of you who are wondering what Vondle is, it is an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.