T
raget of an invocation arises. then i findout particular error using innerException.
it shows like this
An exception of type 'System.IO.PathTooLongException' occurred in mscorlib.dll but was not handled in user code
Additional information: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
pls help to solve this expection
What I have tried:
Stack Trace:
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at Softcooks.Utilities.Conversion.StringToFile(String value, String fileName, Boolean append)
at Softcooks.ExceptionExtension.LogErrorToFile(Exception exception, String fileName)
at Adinn.Adways.App.Start()
at Adinn.Adways.AdwaysApp.<initevents>b__0(Object sender, StartupEventArgs args)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)