Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Unhandled Exception when selecting Design for a form

$
0
0

Received the following exception message when selected the Design tab for a particular form:

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.5.51209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 324028kb
GC Heap Memory       : 74963kb

Unhandled exception
Exception thrown:
System.TypeInitializationException: The type initializer for 'AdvanCE_10K.FS10K_Controls.ctrlRunMethod' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\SharpDevelop\5.1\bin\SharpDevelop.ini' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   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, FileShare share, Int32 bufferSize)
   at System.IO.File.Create(String path)
   at AATI.Utility.Files.CIniFile..ctor()
   at AdvanCE_10K.FS10K_Controls.ctrlRunMethod..cctor()
   --- End of inner exception stack trace ---
   at AdvanCE_10K.FS10K_Controls.ctrlRunMethod.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()

---- Recent log messages:
16:37:12.118 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=Image, Target=[CodeFieldReferenceExpression: Name=btnStow, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=Stow, Target=[CodeTypeReference: AdvanCE_10K.Properties.Resources]]]
16:37:12.119 [1] DEBUG - -> Decoded resource: In: D:\Projects\NGS Fragment Analyzer\AdvanCE_10K\Properties\Resources.resx. Key: Stow
16:37:12.371 [1] DEBUG - Forms designer: deserializing a property assignment:
16:37:12.371 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=ImageTransparentColor, Target=[CodeFieldReferenceExpression: Name=btnStow, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=Magenta, Target=[CodeTypeReference: System.Drawing.Color]]]
16:37:12.373 [1] DEBUG - Forms designer: Initializing nested service container of btnShowDemo [System.Windows.Forms.ToolStripButton] using Reflection
16:37:12.373 [1] DEBUG - Forms designer: deserializing a property assignment:
16:37:12.373 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=Image, Target=[CodeFieldReferenceExpression: Name=btnShowDemo, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=_ButtonRun1, Target=[CodeTypeReference: AdvanCE_10K.Properties.Resources]]]
16:37:12.374 [1] DEBUG - -> Decoded resource: In: D:\Projects\NGS Fragment Analyzer\AdvanCE_10K\Properties\Resources.resx. Key: _ButtonRun1
16:37:12.628 [1] DEBUG - Forms designer: deserializing a property assignment:
16:37:12.628 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=ImageTransparentColor, Target=[CodeFieldReferenceExpression: Name=btnShowDemo, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=Blue, Target=[CodeTypeReference: System.Drawing.Color]]]
16:37:12.657 [1] DEBUG - Forms designer: Initializing nested service container of TabPage: {} using Reflection
16:37:12.783 [1] DEBUG - Forms designer: Initializing nested service container of timerIdle [System.Windows.Forms.Timer], Interval: 100 using Reflection
16:37:12.785 [1] DEBUG - Forms designer: Initializing nested service container of openFileDialog1 [System.Windows.Forms.OpenFileDialog]: Title: , FileName:  using Reflection
16:37:12.787 [1] DEBUG - Forms designer: Initializing nested service container of saveFileDialog1 [System.Windows.Forms.SaveFileDialog]: Title: , FileName:  using Reflection
16:37:12.789 [1] DEBUG - Forms designer: Initializing nested service container of timerUpdate [System.Windows.Forms.Timer], Interval: 100 using Reflection
16:37:12.790 [1] DEBUG - Forms designer: Initializing nested service container of timerChecks [System.Windows.Forms.Timer], Interval: 100 using Reflection
16:37:12.809 [1] DEBUG - Forms designer: DesignerLoader unloading...
16:37:12.833 [1] DEBUG - Forms designer: DesignerLoader loaded, HasSucceeded=False
16:37:12.838 [1] DEBUG - FormsDesigner view content activated, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
16:37:12.841 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
16:37:12.854 [1] DEBUG - ParseInformationUpdated D:\Projects\NGS Fragment Analyzer\AdvanCE_10K\FormMain.cs (updated)
16:37:12.854 [1] DEBUG - ParseInformationUpdated D:\Projects\NGS Fragment Analyzer\AdvanCE_10K\FormMain.cs (updated)
16:37:12.854 [1] DEBUG - ParseInformationUpdated D:\Projects\NGS Fragment Analyzer\AdvanCE_10K\FormMain.Designer.cs (updated)
16:37:12.864 [2] FATAL - UnhandledException caught
--> Exception:
System.TypeInitializationException: The type initializer for 'AdvanCE_10K.FS10K_Controls.ctrlRunMethod' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\SharpDevelop\5.1\bin\SharpDevelop.ini' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   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, FileShare share, Int32 bufferSize)
   at System.IO.File.Create(String path)
   at AATI.Utility.Files.CIniFile..ctor()
   at AdvanCE_10K.FS10K_Controls.ctrlRunMethod..cctor()
   --- End of inner exception stack trace ---
   at AdvanCE_10K.FS10K_Controls.ctrlRunMethod.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()
16:37:12.864 [2] FATAL - Runtime is terminating because of unhandled exception.

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution D:\Projects\NGS Fragment Analyzer\AdvanCE_10K.sln with 9 projects]
ProjectService.CurrentProject: [CSharpProject: NGS Fragment Analyzer]
Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
   at System.Windows.Threading.Dispatcher.VerifyAccess()
   at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
   at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0()
   at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()


Viewing all articles
Browse latest Browse all 1764

Trending Articles