Write some Software

Kapalı İlan edilme: 7 yıl önce Teslim sırasında ödenir
Kapalı Teslim sırasında ödenir

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# Programlama IIS

Proje NO: #10667455

Proje hakkında

17 teklif Uzak proje Aktif 7 yıl önce

Bu iş için 17 freelancer ortalamada $151 teklif veriyor

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 Daha Fazla

$147 USD in 3 gün içinde
(58 Değerlendirme)
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 in 2 gün içinde
(89 Değerlendirme)
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 in 3 gün içinde
(14 Değerlendirme)
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’ Daha Fazla

$250 USD in 3 gün içinde
(8 Değerlendirme)
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. Daha Fazla

$88 USD in 0 gün içinde
(22 Değerlendirme)
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# Daha Fazla

$189 USD in 3 gün içinde
(12 Değerlendirme)
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#). Daha Fazla

$128 USD in 3 gün içinde
(7 Değerlendirme)
3.3
mohammedtaher85

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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 in 5 gün içinde
(0 Değerlendirme)
0.0
nicomedesbu

A proposal has not yet been provided

$155 USD in 3 gün içinde
(0 Değerlendirme)
0.0