SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Unable to create a new Solution - Absolute path information is required

Last post 01-16-2008 9:22 AM by Kalumet. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 01-14-2008 5:50 PM

    Unable to create a new Solution - Absolute path information is required

    Hi, I tried to run SharpDevelop for the first time. Creating a new solution was impossible. Any ideas what might be the problem? Thanks!

     Kalu

     

     SharpDevelop Version : 2.2.1.2648
    .NET Version         : 2.0.50727.832
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : German (Germany) (de-DE)
    Current UI language  : en-US
    Working Set Memory   : 46044kb
    GC Heap Memory       : 9085kb

    Exception thrown:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Absolute path information is required.
       at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[ str, Boolean needFullPath)
       at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[ pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
       at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
       at System.Environment.GetFolderPath(SpecialFolder folder)
       at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog..ctor(Boolean createNewSolution)
       at ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution.Run()
       at ICSharpCode.StartPage.StartPageScheme.<DocumentCompleted>b__1(Object , HtmlElementEventArgs )
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[ arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[ arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[ args)
       at System.Windows.Forms.HtmlShim.FireEvent(Object key, EventArgs e)

  • 01-15-2008 8:32 AM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

     Hi, not long ago I got also such a problem. Maybe once you have changed the standard program path in the registry? By taking the default value (c:\programs) I could avoid the problem. Yet I don't know, what's the real problem by using another default inst. path. 

  • 01-15-2008 9:44 AM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

    To check those: can you please give installation path and path where you wanted to create the solution?

    Chris 

  • 01-15-2008 12:32 PM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

    "   at System.Environment.GetFolderPath(SpecialFolder folder)
       at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog..ctor(Boolean createNewSolution)"

    This indicates that the .NET framework crashed when trying to determine the location of your "My Documents" folder (which is the default location for new projects). Is there anything special about that folder on your machine?

  • 01-15-2008 5:13 PM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

     Well, the only thing that is special about my "My Documents" Folder is, that I have changed its default value to point to the partition D:\
    I haven't set any directory for new Solutions. It crashed immediatly.

     If I change the default project creation directory to something else, might this resolve the problem? I'll try that out.

     I have done so. Trying to select the "Project and Solutions" entry in the Options produced the same (or similar) Exception:

     

    SharpDevelop Version : 2.2.1.2648
    .NET Version         : 2.0.50727.832
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : German (Germany) (de-DE)
    Current UI language  : en-US
    Working Set Memory   : 52340kb
    GC Heap Memory       : 7518kb

    Exception thrown:
    System.ArgumentException: Absolute path information is required.
       at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[ str, Boolean needFullPath)
       at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[ pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
       at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
       at System.Environment.GetFolderPath(SpecialFolder folder)
       at ICSharpCode.SharpDevelop.Gui.OptionPanels.ProjectAndSolutionOptionsPanel.LoadPanelContents()
       at ICSharpCode.SharpDevelop.Gui.AbstractOptionPanel.ReceiveDialogMessage(DialogMessage message)
       at ICSharpCode.SharpDevelop.Gui.TreeViewOptions.SetOptionPanelTo(TreeNode node)
       at ICSharpCode.SharpDevelop.Gui.TreeViewOptions.SelectNode(Object sender, TreeViewEventArgs e)
       at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
       at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
       at System.Windows.Forms.TreeView.WmNotify(Message& m)
       at System.Windows.Forms.TreeView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • 01-15-2008 6:34 PM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

    Have you tried to change all your paths (my doc., default program path..... in the registry) to the standard windows value? Would be interesting if this works. I could fix my problem by doing so. 

  • 01-15-2008 9:07 PM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

    I have my "My Documents" folder set to d:\documents without problems.

    .NET checks if the path to My Documents starts with "x:\", so it might be possible to get the exception if you set the path to "D:" or "D:/" - but that seems to be impossible using the Windows GUI to move My Documents, it automatically corrects the path to "D:\".

  • 01-16-2008 9:22 AM In reply to

    Re: Unable to create a new Solution - Absolute path information is required

    I did change the "My Documents" folder from "D:\" to "D:\documents" it worked afterwards. Thanks for all the tips! 

    I have noticed, that the path of "My Documents" was set to "D:" instead of "D:\". I tried this and it worked.

Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.