Write some Software
$30-250 USD
货到付款
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";
项目ID: #10667455
关于项目
有17名威客正在参与此工作的竞标,均价$151/小时
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 更多
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
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
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’ 更多
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. 更多
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# 更多
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#). 更多
I have pretty good experience in debugging projects in c#, asp.net, Hopefully I can fix the issue in lesser time.
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