Quantcast
Viewing all articles
Browse latest Browse all 24688

Creating Directory using My.Computer.FileSystem.CreateDirectory using Mapped Drive(SharePoint URL) in Script Task in SSIS 2008 having Issues

have uses Script Task in SSIS 2008

I have mapped SharePoint URL to a drive in Script using credentials.

then using My.Computer.FileSystem.CreateDirectory to create required folder.

Now credentials have changed , i have updated new password.

Now when i use My.Computer.FileSystem.CreateDirectory  to create required folder 'M:\FY2013' it throws an error. The Folder already resides in share point. But this piece of code should Not throw exceptions as per Microsoft.

Error: 0x1 at Script Task: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'M:\FY2013'.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)

at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)

at Microsoft.VisualBasic.FileIO.FileSystem.CreateDirectory(String directory)

at ST_8f18a01ce79b4345af453520734c1201.vbproj.ScriptMain.CheckandCreateDirectory(String BaseDirectory)

at ST_8f18a01ce79b4345af453520734c1201.vbproj.ScriptMain.Main()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

Task failed: Script Task


sureshk


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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