Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80070005

$
0
0
Hi All,
This error has had me stumped for a week. I have read numerous forum posts from all sources and tried most of the suggestions to no avail.
Please note that I can run the DTSX package on the production server manually quite successfully. It produces an XLS file.
When called from ASP.NET however, it fails.

Additional error information:
"ASP.NET is not authorized to access the requested resource."
"Consider granting access rights to the resource to the ASP.NET request identity. "

There is no ASP.NET user nor a NETWORK SERVICE user on the Server!

The CLSID {BA785E28-3D7B-47AE-A4F9-4784F61B598A} refers to in the registry:

Default  REG_SZ C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTS.dll

Assembly REG_SZ Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91

Class    REG_SZ  Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass

Error: 80070005 usually refers to access denied.
8027758069
Environment:
Windows Server 2008 R2 with Service Pack 1 64-bit
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
Microsoft Visual Studio 2008 Version 9.0.30729.4462 QFE
Microsoft .NET Framework Version 3.5 SP1
Parallels Plesk Panel 11.0.9 for Windows

I have created an ASP.NET web page that calls a DTSX package as follows:

Line 11:   Private Sub btnExecute_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExecute.Click
Line 12:     Dim app As New Application
Line 13:     Dim package As New Package
Line 14:     Dim filename As String = ""
Line 15:    Dim csvFileName As String = ""
Line 16:
Line 17:    Try
Line 18:      filename = Server.MapPath("/dtsx/MakeNewOrdersXLS.dtsx")
Line 19:
Line 20:      '***Load DTSX
Line 21:      package = app.LoadPackage(filename, Nothing)

The error is thrown on line 12: Dim app As New Application
Of course this application runs perfectly on my development machine:
    Windows 7 32-bit Pro with SP1
    Visual Studio 2008 with SP1
    .NET Framework 3.5 SP1
    SQL Server 2008 Standard 32-bit
But it doesn't run on the production web server as specified under Environment at top. Note that the Website resides on the same
server that the SQL Server database is on. It is a leased Dedicated Web Server that uses Plesk to provision the web sites.
    
Solutions that I have tried:

1. The application pool that the website runs under uses Identity SRV1\IWPD_1 (an identity created by PLesk). I have added that user
to the Local Administrators group. That did not solve the problem. There is no Active Directory domain. SRV1 is the name of the local server.

2. I have tried using identity impersonation with the same ID/PWD that I use to log into the server via RDP, with which I can easily
run the DTSX package manually without a problem.
    <identity impersonate="true" userName="SRV1\admin_login" password="RO_##_$$_ex"/>
That allows the package to return "Success" but NO XLS file is produced!

3. I am using the References to the assemblies found in the GAC.
    <add assembly="Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
    <add assembly="Microsoft.SqlServer.ManagedDTS, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
I have tried giving Read_Write_Execute rights to the C:\Windows\Assembly folder to the Identity "SRV1\admin_login", but even though I am
 logged in to the server as an Administrator (via RDP) I am not allowed to propagate those rights to the assemblies in the GAC.

4. I have tried to change those references to the same named assemblies in the C:\Program Files\Microsoft SQl Server\100\SDK\Assemblies
folder, but for some reason they do NOT get written to Web.config! I was going to give the Identity "SRV1\admin_login" rights to those assemblies directly.
But if the references are not accepted by Visual Studio, then what is the use of that?

Anyone have any ideas? Any help will be appreciated.

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>