none
Open new email from Visual Studio RRS feed

  • Question

  • Hi,

    Am having a need to draft a mail from visual studio direct and am able to do that when i run this from visual studio local host  but when i publish it on same machine IIS then it's showing error of access if denied (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)).)

    After that i overcome from this error and then its start showing the class not registered error.

    Please help

    Friday, June 26, 2020 9:46 AM

All replies

  • Vijay,

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution. Read more about that in the Considerations for server-side Automation of Office article. 


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Friday, June 26, 2020 12:40 PM