Issues and workarounds for MVC Project deployment to II6

Source: Internet
Author: User

I. Basic issues with IIS deployment

When you deploy a project deployment to IIS, the startup site often encounters a page error not found 403 possible cause:

1. The application pool. Net Framework version is not correct, the workaround opens the Control Panel--Administrative Tools-->internet Information Services (IIS) Manager, opens the application pool to select the project's application, configured as the appropriate version;

2. Projects are frequently encountered when deploying projects. NET version is high, and a high version of the. NET Framework is installed on your computer. An error occurs because the. Net framework needs to be re-registered once IIS is installed first.

Workaround Open File location C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe, run the console as administrator, drag into the software, and enter the-I run registration.

two. site Invoke local component error

When MVC needs to use the windowscom component, it needs to configure appropriate permissions on the appropriate Microsoft application components, otherwise it will not be able to access the appropriate application; The components used in this session are Microsoft Excel application;

Error: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the CLSID in the COM class factory is {00024500-0000-0000- The component of c000-000000000046} failed,

The following error occurred because the 80080005 server failed to run (Exception from hresult:0x80080005 (Co_e_server_exec_failure)).

1. Run input dcomcnfg, or manage tools, Component Services to find My Computer DCOM

2. Configure Microsoft Excel application, Properties-security-Customize to add network server with everyone, identify nodes to select interactive users;


3. Complete the above configuration to create the application, but still cannot open the corresponding document;

Error: System.Runtime.InteropServices.COMException (0X800A03EC): Microsoft Excel cannot access the file "C:\Test\Import\TEST.xlsx". There are several possible reasons for this:

The file name or path does not exist. The file is being used by another program. the workbook you are trying to save has the same name as the currently open workbook.

4. You need to add or modify an item <identity impersonate= "True" Username= "in the <System.Web><SysTem.Web/> of MVC's web. config Server operable user name "password=" password "/>

5. Finally, in the folder where you need to set up access, add users with modify permission in security to network server and everyone;
To successfully access the Excel file locally on the server

Issues and workarounds for MVC Project deployment to II6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.