Permissions problems loading DTS file in C#
From: Paul Enfield (penfield_at_paraport.com)
Date: 01/12/05
- Next message: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Previous message: Lianne Kwock: "Schedule DTS Package"
- Next in thread: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Reply: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Reply: Mark: "Re: Permissions problems loading DTS file in C#"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 15:11:16 -0800
I'm using the code sample provided at
http://SQLDev.Net/DTS/DotNETCookBook.htm to attempt to load a .DTS package
in C# through the COM Interop services, and execute it.
When the LoadFromStorageFile method is called I get the following error:
System.Runtime.InteropServices.COMException (0x80040414): Cannot find
specified package in the storage location specified. at
Microsoft.SQLServer.DTSPkg80.Package2Class.LoadFromStorageFile(String
UNCFile, String Password, String PackageID, String VersionID, String Name,
Object& pVarPersistStgOfHost) at ExecPkg.App.Main(String[] args) in
h:\test\dts cookbook\execpkgcs\execpkg.cs:line 32
Initially I was getting a nondescript security exception but worked around
it by setting the .Net Framework Runtime Security Policy/Machine/Permission
Sets to FullTrust.
Thus far I have also tried:
- Granting full ACL's to the file to Everyone at both the domain level and
the local machine level.
- Using explicit path references
- Using UNC reference
- Placing the file local to the executable
- Placing the file on a remote network drive
- Placing the file on the SQL Server itself
- Enabling file auditing, and setting up Failure Audit's on the .DTS file
(nothing triggered... not entirely sure I did this right =^| )
Any pointers appreciated.
- Next message: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Previous message: Lianne Kwock: "Schedule DTS Package"
- Next in thread: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Reply: Peter Warren via SQLMonster.com: "Re: Permissions problems loading DTS file in C#"
- Reply: Mark: "Re: Permissions problems loading DTS file in C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|