Write some Software

已关闭 已发布的 7 年前 货到付款
已关闭 货到付款

debug fix c# outlook web project.

below code works on vs2013, after deploy it on IIS, got "80070005 Access is denied..." error message.

[url removed, login to view] outlookApp = new [url removed, login to view]();

[url removed, login to view] mailItem = ([url removed, login to view])[url removed, login to view]([url removed, login to view]);

[url removed, login to view] = "Dodge & Quote Information";

//[url removed, login to view](totalPath);

[url removed, login to view] ="<br /><br />" + body;

AddAttachments(mailItem);

//[url removed, login to view] = body;

[url removed, login to view] = [url removed, login to view];

//Edit:

//[url removed, login to view] += new Microsoft.Office.Interop.Outlook.ItemEvents_10_OpenEventHandler(mailItem_open(mailItem));

[url removed, login to view](true);

[url removed, login to view] += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(OutlookApplication_ItemSend);

============ Error Message ===========================================

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

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: [url removed, login to view]: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

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 and IIS 7, and the configured application pool identity on IIS 7.5) 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 access to a file, right-click the file in File 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.

Source Error:

Line 370: private void sendEmailTo(string body)

Line 371: {

Line 372: [url removed, login to view] outlookApp = new [url removed, login to view]();

Line 373: [url removed, login to view] mailItem = ([url removed, login to view])[url removed, login to view]([url removed, login to view]);

Line 374: [url removed, login to view] = "Dodge & Quote Information";

ASP.NET C# 编程 互联网信息服务

项目ID: #10667455

关于项目

17个方案 远程项目 活跃的7 年前

有17名威客正在参与此工作的竞标,均价$151/小时

agilepksolutions

Hi, I’ve had a good look at your project description and I’m very interested in providing a solution. I have 4+ hands on experience on developing quality web solutions as well as desktop standalone solutions. I u 更多

$147 USD 在3天内
(58条评论)
7.1
sumon355

Hello, I am very much interested to fix this issue as i have the required skills for this project. Looking forward to have a positive response from you. Thanks

$150 USD 在2天内
(89条评论)
6.1
kultech

Dear Sir, I can help you, please sure you have add right permission users and web.config. Happy working with you. Thank you very much

$111 USD 在3天内
(14条评论)
4.4
softhunters

Hello, I would love to work on your mentioned project specification .But I got to know you might missed the attachment. I highly value professionalism and hold myself strictly accountable to represent my client’ 更多

$250 USD 在3天内
(8条评论)
4.7
mohsinmehmood

Respected Employer, This error occurs because since your application runs under IIS and your COM Office library is not accessible to IIS user under which website is running. I can troubleshoot and fix this error. 更多

$88 USD 在0天内
(22条评论)
4.6
arityinfoway

Hello Sir, I have gone through your requirements regarding Write some Software. we brief and understand your idea and preference for job as you are looking for. I have more than 6+ years of experience in .NET, c# 更多

$189 USD 在3天内
(12条评论)
4.4
pakaimsolutions

Hello, I hope you doing very well! I have gone through the description and would like to provide a quality solution using my 5+ years of professional experience in required skills. (.NET/ASP.NET - MVC, EF, SQL, C#). 更多

$128 USD 在3天内
(7条评论)
3.3
mohammedtaher85

I have pretty good experience in debugging projects in c#, asp.net, Hopefully I can fix the issue in lesser time.

$111USD 在1天里
(0条评论)
0.0
ludiac

Hi, I have understood your project description and we are sure that we'll be able to solve the outlook error you are facing. Thanks

$155 USD 在5天内
(0条评论)
0.0
nicomedesbu

A proposal has not yet been provided

$155 USD 在3天内
(0条评论)
0.0