Create App_Data and register Excel application on ASP.NET deployment? (IIS7.5)
- by Francesco
I am deploying an ASP.NET MVC3 application in IIS7. I already deployed other applications but they never made use of the App_Data folder or any additional component such as the Interop library.
I used the one click deployement and I sue the default application pool. When I launch the application I immediately get an error stating:
[web access] Sorry, an error occurred while processing your request.
[browse from IIS7] Could not find a part of the path 'D:\Data\Apps\OppUpdate\App_Data\Test.xlsx'.
Then I manually added the App_Data folder inside the deployment directory and the application starts regularly. Then when it comes to the taks that uses the Interop library, I get the following error:
[web access] Sorry, an error occurred while processing your request.
[browse from IIS7] Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Is there any way to automatically add the App_Data folder when using 1 click deploy? How can I register the Interop services?
Thanks you,
Francesco