SharpDevelop Community

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

Unhandled exceptions creating IronPython WinForms solution

Last post 07-06-2009 9:35 AM by mikeh. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-03-2009 1:20 PM

    • mikeh
    • Not Ranked
    • Joined on 08-07-2008
    • Melbourne Australia
    • Posts 3

    Unhandled exceptions creating IronPython WinForms solution

    The following error is being thrown twice when I try to create a new IronPython WinForms project using SharpDevelop 3.1 beta 1. This error has happened three times now. This is causing the program to close. Note there is a FileNotFoundException on Microsoft.Scripting.

    It looks this namespace is contained within SCRRUN.DLL which is present in my System32 folder.

     SharpDevelop Version : 3.1.0.4077
    .NET Version         : 2.0.50727.3082
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 3
    Current culture      : English (Australia) (en-AU)
    Current UI language  : en-US
    Working Set Memory   : 66368kb
    GC Heap Memory       : 16997kb

    Error parsing C:\Documents and Settings\Mike\My Documents\SharpDevelop Projects\PyWinForm\PyWinForm\MainForm.py
    Exception thrown:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at ICSharpCode.PythonBinding.PythonParser.CreateAst(String fileName, String fileContent)
       at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
       at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent fileProjectContent, String fileName, String fileContent, Boolean updateCommentTags)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


    ---- Recent log messages:
    21:09:30.156 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\en\System.Data.xml
    21:09:30.156 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.xml
    21:09:30.156 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en\System.Data.xml
    21:09:30.156 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.xml
    21:09:30.265 [loadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
    21:09:30.265 [loadSolutionProjects] DEBUG - Loading PC for System.Drawing
    21:09:30.265 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\en\System.Drawing.xml
    21:09:30.265 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.xml
    21:09:30.265 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en\System.Drawing.xml
    21:09:30.265 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.xml
    21:09:30.359 [loadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll
    21:09:30.359 [loadSolutionProjects] DEBUG - Loading PC for System.Windows.Forms
    21:09:30.359 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\en\System.Windows.Forms.xml
    21:09:30.359 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.xml
    21:09:30.359 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en\System.Windows.Forms.xml
    21:09:30.359 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.xml
    21:09:30.796 [loadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll
    21:09:30.796 [loadSolutionProjects] DEBUG - Loading PC for System.Xml
    21:09:30.796 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\en\System.Xml.xml
    21:09:30.796 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.xml
    21:09:30.796 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en\System.Xml.xml
    21:09:30.796 [loadSolutionProjects] DEBUG - Try find XMLDoc @C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.xml
    21:09:30.828 [loadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
    21:09:30.843 [loadSolutionProjects] ERROR - Error parsing C:\Documents and Settings\Mike\My Documents\SharpDevelop Projects\PyWinForm\PyWinForm\MainForm.py
    --> Exception:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.Scripting, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at ICSharpCode.PythonBinding.PythonParser.CreateAst(String fileName, String fileContent)
       at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
       at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent fileProjectContent, String fileName, String fileContent, Boolean updateCommentTags)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    21:09:30.843 [loadSolutionProjects] WARN - Stack trace of last error log:
       at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       at System.Environment.get_StackTrace()
       at ICSharpCode.Core.MessageService.ShowError(Exception ex, String message)
       at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent fileProjectContent, String fileName, String fileContent, Boolean updateCommentTags)
       at ICSharpCode.SharpDevelop.ParseProjectContent.Initialize2(IProgressMonitor progressMonitor)
       at ICSharpCode.SharpDevelop.ParserService.LoadSolutionProjectsInternal()
       at ICSharpCode.SharpDevelop.ParserService.LoadSolutionProjects()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    ---- Post-error application state information:
    Installed 3rd party AddIns:
    Workbench.ActiveContent: <null>
    ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\Mike\My Documents\SharpDevelop Projects\PyWinForm\PyWinForm.sln, HasProjects=True, ReadOnly=False]
    ProjectService.CurrentProject: <null>

  • 07-04-2009 8:11 PM In reply to

    Re: Unhandled exceptions creating IronPython WinForms solution

    Try uninstalling and then reinstalling SharpDevelop. It looks like you upgraded the installation (i.e. installed on top) and the Microsoft.Scripting dll was removed due to the version number of this dll being lower in the new installer.

  • 07-04-2009 8:58 PM In reply to

    Re: Unhandled exceptions creating IronPython WinForms solution

    Is there some way to avoid this problem with Windows Installer? Maybe assign a new GUID to the component?

  • 07-05-2009 11:10 AM In reply to

    Re: Unhandled exceptions creating IronPython WinForms solution

    Assigning a new GUID would fix the problem. However we would still need to check all version numbers of third party dlls when they are updated.

    Another simpler fix is to disable upgrades.

  • 07-06-2009 9:35 AM In reply to

    • mikeh
    • Not Ranked
    • Joined on 08-07-2008
    • Melbourne Australia
    • Posts 3

    Re: Unhandled exceptions creating IronPython WinForms solution

    Thanks Matt. You were spot on. I did install over the top of #develop 3.0. Uninstalling and re-installing did the trick.

    Cheers

    Mike

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