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

Unable to unzip file with AES encryption

$
0
0

Hi,

I use the following code. The zip file creation is working but when I want to unzip the file I cannot do it if I use entry.AESKeySize = 256; if I comment it I can unzip the file without any problem. With the "Exctract" function of windows I get the following error "0x80004005 Unspecified error" and from 7zip "Cannot open output file"

Can you help me on this topic?

Thanks!

Guillaume

I use the following pasword to test "aB!1234567890@"

public void CreateDeliveryZipFile()
        {
            using (var zipOutputStream = new ZipOutputStream(File.Create(DeliveryZipFilePath)))
            {
                //zipOutputStream.SetLevel(0); // 0-9, 9 being the highest compression
                zipOutputStream.Password = _password;
                zipOutputStream.UseZip64 = UseZip64.Off;

                byte[ buffer = new byte[4096];
                foreach (var informationPackagePath in _informationPackagePaths)
                {
                    var entry = new ZipEntry(Path.GetFileName(informationPackagePath));
                    entry.DateTime = DateTime.Now;
                    entry.AESKeySize = 256;
                   

                    zipOutputStream.PutNextEntry(entry);
                    using (FileStream fs = File.OpenRead(informationPackagePath))
                    {
                        entry.Size = fs.Length;

                        int sourceBytes;
                        do
                        {
                            sourceBytes = fs.Read(buffer, 0, buffer.Length);
                            zipOutputStream.Write(buffer, 0, sourceBytes);
                        } while (sourceBytes > 0);
                    }

                    zipOutputStream.CloseEntry();


                    File.Delete(informationPackagePath);
                }
               
                zipOutputStream.Finish();
                zipOutputStream.Close();
            }
        }


Identical projects, different behaviors

$
0
0

Hi all,

I had projets that were working perfectly well, class library called by a third party exe, and I could set a breakpoint in my code, launch the third party and debug inside just fine. All of a sudden, one of them stopped being able to debug/break. Another identical project can still break no problem. AFAIK, version control tells me nothing changed in the .sln, .csproj, .cs, files. I tried to duplicate the working project to another folder and try to debug/break this, and it's not working either. I'm scratching my head over how that could happen. The breakpoint-ed code is hit by the third party exe (tested with a messagebox.show there). Do you have any idea where the problem might come from?

 

WPF Ribbon designer -Trying to insert "

$
0
0

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.00079
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : Invariant Language (Invariant Country) ()
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 243156kb
GC Heap Memory       : 80818kb

Unhandled WPF exception
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.XamlBinding.XamlConst.<GetAllowedItems>d__6.MoveNext()
   at ICSharpCode.XamlBinding.CompletionDataGenerator.CreateElementList(XamlCompletionContext context, Boolean includeAbstract)
   at ICSharpCode.XamlBinding.CompletionDataGenerator.CreateListForContext(XamlCompletionContext context)
   at ICSharpCode.XamlBinding.XamlCodeCompletionBinding.HandleKeyPress(ITextEditor editor, Char ch)
   at ICSharpCode.SharpDevelop.Editor.CodeCompletion.LazyCodeCompletionBinding.HandleKeyPress(ITextEditor editor, Char ch)
   at ICSharpCode.AvalonEdit.AddIn.CodeEditor.TextAreaTextEntering(Object sender, TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.OnTextEntering(TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.PerformTextInput(TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.OnTextInput(TextCompositionEventArgs e)
   at System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
   at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
13:08:38.556 [1] DEBUG - ActiveContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:08:40.275 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
13:08:40.275 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml]
13:08:40.291 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml]
13:08:42.660 [1] DEBUG - Resolved (Line 12, Col 2) to [ErrorResolveResult ?]
13:08:42.660 [1] DEBUG - ParseInformationUpdated C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml (updated)
13:08:45.863 [1] DEBUG - Resolved (Line 10, Col 2) to [ErrorResolveResult ?]
13:08:49.129 [1] DEBUG - Resolved (Line 10, Col 2) to [ErrorResolveResult ?]
13:08:54.504 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.OutlinePad
13:09:04.597 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ToolsPad
13:09:08.194 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
13:09:08.194 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:09:08.209 [1] DEBUG - [Task:File=C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml, Line=3, Column=1, Type=Error, Description=Data at the root level is invalid. Line 3, position 1.
13:09:08.209 [1] ERROR - Error in loading app.xaml
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.WpfDesign.AddIn.WpfViewContent.LoadInternal(OpenedFile file, Stream stream)
13:09:08.225 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ErrorListPad
13:09:08.241 [1] DEBUG - ActiveContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:09:51.219 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
13:09:51.219 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml]
13:09:51.219 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml]
13:09:53.126 [1] DEBUG - Resolved (Line 12, Col 19) to [ErrorResolveResult ?]
13:09:53.126 [1] DEBUG - ParseInformationUpdated C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml (updated)
13:09:58.283 [1] DEBUG - Resolved (Line 3, Col 62) to [ErrorResolveResult ?]
13:10:06.721 [1] DEBUG - Resolved (Line 9, Col 8) to [ErrorResolveResult ?]
13:10:07.346 [1] DEBUG - Resolved (Line 9, Col 8) to [ErrorResolveResult ?]
13:10:25.647 [1] ERROR - Unhandled WPF exception
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.XamlBinding.XamlConst.<GetAllowedItems>d__6.MoveNext()
   at ICSharpCode.XamlBinding.CompletionDataGenerator.CreateElementList(XamlCompletionContext context, Boolean includeAbstract)
   at ICSharpCode.XamlBinding.CompletionDataGenerator.CreateListForContext(XamlCompletionContext context)
   at ICSharpCode.XamlBinding.XamlCodeCompletionBinding.HandleKeyPress(ITextEditor editor, Char ch)
   at ICSharpCode.SharpDevelop.Editor.CodeCompletion.LazyCodeCompletionBinding.HandleKeyPress(ITextEditor editor, Char ch)
   at ICSharpCode.AvalonEdit.AddIn.CodeEditor.TextAreaTextEntering(Object sender, TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.OnTextEntering(TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.PerformTextInput(TextCompositionEventArgs e)
   at ICSharpCode.AvalonEdit.Editing.TextArea.OnTextInput(TextCompositionEventArgs e)
   at System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
   at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\SecondAttempt.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: SecondAttempt]
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\SecondAttempt\SecondAttempt\Window1.xaml]

Exeption to add a Service Referece

$
0
0

Hi,

I would add a service Reference, but when i set it i will get an Unhandled exeption.

Hope everyone can help me...

greeting

chr2002

 

http://www.imgbox.de/show/img/Yzohye6xG5.JPG

 

Here is the Exeption:

SharpDevelop Version : 5.1.0.4936-Beta-3ea20cfa
.NET Version         : 4.5.51209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : German (Germany) (de-DE)
Current UI language  : en
Working Set Memory   : 166796kb
GC Heap Memory       : 33551kb

Unhandled WPF exception
Exception thrown:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.SvcUtilRunner.<Run>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   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)

---- Recent log messages:
17:10:13.212 [19] DEBUG - Resolved (Line 61, Col 20) to
17:10:39.629 [1] DEBUG - Resolved (Line 66, Col 24) to
17:10:46.574 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = ManagePackages, addIn=C:\Program Files\SharpDevelop\5.1\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!
17:10:46.574 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = RestorePackages, addIn=C:\Program Files\SharpDevelop\5.1\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!
17:10:46.594 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
17:10:46.832 [1] INFO - Loading addin Package Management
17:10:47.470 [1] INFO - Show add reference dialog for O:\FREIGABE\TA\PC_Programm\Spannungsmessanlage\Spannungsmessanlage\Spannungsmessanlage.csproj
17:10:47.560 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Parser.IGlobalAssemblyCacheService
17:11:14.632 [1] INFO - Loading addin CodeAnalysis
17:11:14.634 [1] INFO - Loading addin SourceAnalysis
17:11:14.639 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
17:13:41.510 [1] DEBUG - ActiveContentChanged to
17:13:41.569 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.SvcUtilRunner.<Run>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   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)
17:15:02.731 [1] DEBUG - Resolved (Line 54, Col 4) to
17:15:03.622 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent O:\FREIGABE\TA\PC_Programm\Spannungsmessanlage\Spannungsmessanlage\SQL.cs]
17:15:04.132 [5] DEBUG - Resolved (Line 58, Col 19) to [ConstantResolveResult System.Boolean = False]
17:15:04.385 [1] DEBUG - Resolved (Line 45, Col 29) to
17:15:04.884 [1] DEBUG - Resolved (Line 39, Col 27) to [LocalResolveResult password:System.String]
17:15:13.714 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
17:15:19.874 [1] INFO - Initialize DirectoryNode O:\FREIGABE\TA\PC_Programm\Spannungsmessanlage\Spannungsmessanlage\Properties
17:15:19.876 [7] DEBUG - Git: OverlayIconManager Thread started
17:15:19.978 [7] DEBUG - Git: OverlayIconManager Thread finished
17:15:51.785 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.CompilerMessageView
17:15:51.785 [1] DEBUG - CompilerMessageView: Combined 2 appends.
17:15:51.785 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference.SvcUtilRunner.<Run>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   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)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution O:\FREIGABE\TA\PC_Programm\Spannungsmessanlage\Spannungsmessanlage.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: Spannungsmessanlage]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.CompilerMessageView

 

 

Debug symbols when attaching to a Process

$
0
0

I've compiled my app and I can debug it when I hit F5 from SharpDevelop.

I move the app (.exe + .pdb + config and other files needed, I'm confident that I'm not missing any needed file/configuration) to an other folder and I'm getting a strange crash - that I need to debug - when launching the app from there (after a certain sequence of actions, but the application issue is not relevant for this question).

So I start the .exe from the folder and I Debug>Attach to Process from SharpDevelop, but it does not find the Debug Symbols!

Please, help me.

Thanks

AvalonEdit

$
0
0

I have syntax highlighted some text, the normal way.

a) How to i get a string-array of all the highlighted words

b) how to i get a string-array of all the highlighted words of a specific group of the *.xshd definition file ?

 

thx

Need help for finding Main Form of #D Interface

$
0
0

Hi,

I was going to theme SharpDevelop for my own personal use (just for fun! :D) to be more like VS2013 with some components (like custom forms, custom toolbars, custom sidebars, etc.) but I can't find the instance of System.Windows.Forms.Form for the main window!

Also, I don't know (can't find out!) whether #D is a WPF app or a WinForms app!

Can someone help me with these?

 

Thanks.

Setting Click prperty in WPF desiger causes error and function not created

$
0
0

 

DearCSharp team,

I received this error message.When I set the "click " property on a button it shoiuld create C~code to hand the event, right?

Regards,

David Hyde

 

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.00079
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : Invariant Language (Invariant Country) ()
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 230428kb
GC Heap Memory       : 85738kb

Unhandled WPF exception
Exception thrown:
System.ArgumentNullException: Value cannot be null.
Parameter name: node
   at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.GetResolverStateAfter(AstNode node, CancellationToken cancellationToken)
   at CSharpBinding.Refactoring.CSharpCodeGenerator.InsertEventHandler(ITypeDefinition target, String name, IEvent eventDefinition, Boolean jumpTo, InsertEventHandlerBodyKind bodyKind)
   at ICSharpCode.WpfDesign.AddIn.SharpDevelopEventHandlerService.CreateEventHandler(DesignItemProperty eventProperty)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.Commit()
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.OnKeyDown(KeyEventArgs e)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
13:21:26.650 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
13:21:26.650 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:21:35.210 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:35.210 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:42.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:42.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:43.898 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:43.898 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:45.429 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
13:21:45.429 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml]
13:21:45.444 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml]
13:21:47.575 [1] DEBUG - Resolved (Line 41, Col 3) to [ErrorResolveResult ?]
13:21:47.575 [1] DEBUG - ParseInformationUpdated C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml (updated)
13:21:52.419 [1] DEBUG - Resolved (Line 45, Col 5) to [ErrorResolveResult ?]
13:22:09.544 [1] DEBUG - Resolved (Line 52, Col 5) to [ErrorResolveResult ?]
13:22:36.841 [1] DEBUG - Resolved (Line 39, Col 3) to [ErrorResolveResult ?]
13:22:42.852 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
13:22:42.852 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:22:42.883 [1] ERROR - Error in loading app.xaml
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.WpfDesign.AddIn.WpfViewContent.LoadInternal(OpenedFile file, Stream stream)
13:22:42.883 [1] DEBUG - ActiveContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:22:45.472 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:22:45.472 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:22:56.800 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad
13:23:21.744 [1] INFO - Open file C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml
13:23:21.745 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: node
   at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.GetResolverStateAfter(AstNode node, CancellationToken cancellationToken)
   at CSharpBinding.Refactoring.CSharpCodeGenerator.InsertEventHandler(ITypeDefinition target, String name, IEvent eventDefinition, Boolean jumpTo, InsertEventHandlerBodyKind bodyKind)
   at ICSharpCode.WpfDesign.AddIn.SharpDevelopEventHandlerService.CreateEventHandler(DesignItemProperty eventProperty)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.Commit()
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.OnKeyDown(KeyEventArgs e)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: RestartRiibbon]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.PropertyPad


License

$
0
0

Could you please better explain the meaning of the following LICENSE sentence?

Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination.

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module.

The two sentences seem to be contradictory: is the final executable file (obtained by linking my own code with your library) under GPL or not? Sentence 1 would say "YES", while sentence 2 seems to let me free to copy and distribute the executable under license terms of my choice.

Could you please help?

Roberto

 

C# 6.0?

$
0
0

Is there any way to enable C# 6.0 in the editor, or even just in the compiler?

If not, is there a roadmap for this feature?

SD 5.1.0, Python option not available for new projects

$
0
0

Hi.

Sorry for the very basic question, this is the first time I have tried SharpDevelop and I would love to use it to code Python applications.

I have just installed SharpDevelop 5.1.0 and I already had installed IronPython 2.7.5 and Python 2.7 on my PC.

But when I try to create a new project in SharpDevelop there is no Python option available (just C#, C++, F#, Setup, SharpDevelop, VB).

Do I have to install an AddIn or setup an option in order to add Python support ?.

Thank you.

SD 4.4.2 - WPF IronPython app -> No module named wpf

$
0
0

Hi

I have just installed SharpDevelop 4.4.2 to try IronPython, and it seems to work very nice running Python Windows Forms applications, but when I try even the most simple "Hello World" Python WPF application I can't run it, I get an "No module named wpf" error on the first line (import wpf).

Do I need to install or setup something more ?.

Thank you.

installing sharpdevellop 5.1 on windows 10 , first use fatal error

$
0
0

this is wat i got as an error

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5

 

.NET Version         : 4.6.00079

 

OS Version           : Microsoft Windows NT 6.3.9600.0

 

Current culture      : Dutch (Netherlands) (nl-NL)

 

Current UI language  : en

 

Running under WOW6432, processor architecture: x86-64

 

Working Set Memory   : 83592kb

 

GC Heap Memory       : 7262kb

 

 

 

Unhandled WPF exception

 

Exception thrown:

 

System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {56FDF344-FD6D-11D0-958A-006097C9A090} failed due to the following error: 8007007e Kan opgegeven module niet vinden. (Exception from HRESULT: 0x8007007E).

 

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

 

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

 

   at System.Activator.CreateInstance(Type type)

 

   at System.Windows.Window.ApplyTaskbarItemInfo()

 

   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

 

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

 

 

---- Recent log messages:

 

22:28:45.302 [1] WARN - Codon (FindNextSelected) specified in the insertafter of the [Codon: name = MenuItem, id = Replace, addIn=C:\Program Files (x86)\SharpDevelop\5.1\bin\..\AddIns\Misc\SearchAndReplace\SearchAndReplace.addin] codon does not exist!

 

22:28:45.506 [1] INFO - Loading addin CodeCoverage AddIn

 

22:28:45.506 [1] INFO - Loading addin AvalonEdit AddIn

 

22:28:45.506 [1] INFO - Loading addin XML Editor

 

22:28:45.537 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Debugging.IDebuggerService

 

22:28:45.537 [1] INFO - Loading addin Debugger

 

22:28:45.912 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.CompilerMessageView...

 

22:28:46.193 [1] DEBUG - [AddInManager2] AddInsViewModelBase: Changed package source to SharpDevelop AddIn Repository

 

22:28:46.193 [1] INFO - Starting workbench...

 

22:28:46.193 [1] DEBUG - NavigationService -- suspend logging

 

22:28:46.193 [1] INFO - Loading addin Start Page

 

22:28:46.271 [1] INFO - Loading addin Usage Data Collector

 

22:28:46.334 [5] DEBUG - RecentProjectsControl: Looking up path 'D:\BACKUP\Documents\SharpDevelop Projects\test1\test1.sln'

 

22:28:46.349 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.WinForms.IWinFormsService

 

22:28:46.349 [1] DEBUG - NavigationService -- resume logging

 

22:28:47.146 [1] INFO - Number of screens: 1

 

22:28:47.146 [1] INFO - Screen {X=0,Y=0,Width=1920,Height=1080}: Validating {X=10,Y=10,Width=750,Height=550}; intersection {X=10,Y=10,Width=750,Height=550}

 

22:28:47.256 [1] INFO - dockingManager_Loaded

 

22:28:47.256 [1] INFO - Loading layout file: C:\Users\eigenaar\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml, hideAllLostPads=False

 

22:28:47.459 [1] DEBUG - ActiveContentChanged to ICSharpCode.StartPage.StartPageViewContent

 

22:28:47.459 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Start Page]

 

22:28:47.459 [1] DEBUG - NavigationService

 

         ActiveViewContent: Start Page

 

                   Subview: TabPageText

 

22:28:47.459 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.StartPage.StartPageViewContent

 

22:28:47.474 [1] DEBUG - [AddInManager2.Events] Package list download ended (success: True).

 

22:28:47.474 [1] ERROR - Unhandled WPF exception

 

--> Exception:

 

System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {56FDF344-FD6D-11D0-958A-006097C9A090} failed due to the following error: 8007007e Kan opgegeven module niet vinden. (Exception from HRESULT: 0x8007007E).

 

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

 

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

 

   at System.Activator.CreateInstance(Type type)

 

   at System.Windows.Window.ApplyTaskbarItemInfo()

 

   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

 

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

 

 

---- Post-error application state information:

 

Installed 3rd party AddIns:

 

ProjectService.CurrentSolution:<null>

 

ProjectService.CurrentProject:<null>

 

Workbench.ActiveContent: ICSharpCode.StartPage.StartPageViewContent

-------------------------------------------------------------------------------------------------------------------

also there is now whay to draw on a design window, there isn't anny

hope for solution

Can't see form design in #Develop 5.0

$
0
0

Hi,

I am trying something simple in #Develop using vb.net.

I don't know if I am doing something wrong but the form design tab seems to have dissappeared.

When I run the app the form appears, but inside the ide there's no way I can see the design or layout of the form.

How can I get it back?

Thanks

H.F.

 

 

Dark Theme in portable mode

$
0
0

Hi,

I have installed Sharp Develop Version 4.4.2.9749
After That i have made it Protable with the file SharpDevelop.exe.config with the switch:

<add key="settingsPath" value="J:\PortableApps\SharpDevelopPortable\Data\AppSettings" />

on the internet I found some articles where a file named CSharp-Mode-VSEnh.xshd was created and copied to the modes directory to bring a dark theme to SharpDevelop (like the dark themes in Visual Studio 2012 and 2013). But in the Portable mode this feature seems not to be working.

Is there any way to use a dark theme in portable mode?
I am asking because a dark theme is more eye friendly than this white environment and i would like to use Sharp Develop as my primary dot net IDE without headaches.

If there is a way, I think users (me included ;) ) would be happy if you can distribute a little tutorial or FAQ entry for this task.


Geez bit17


Side by Side Config

$
0
0

Help

Whenever I try to make a new file or a new solution it says there is an error 'The application has failed to start because its side-by-side configuration is incorrect.' Can anybody help me with this? I am trying to make a VB.NET Windows Forms Application.

Cannot load "Azure Cloud Service" project

$
0
0

I have a solution with a few Azure Cloud Service projects, When i attempt to load the solution in SharpDevelop 5.1.0.5134-RC-d5052dc5, i get an error "No back end for project type installed".

The solution and all of the projects open up fine in visual studio 2012, 2013 and 2015.

Is this a limitation of SharpDevelop? or am i missing some part of the azure sdk? 

IDE crashes

$
0
0

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.00079
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 119652kb
GC Heap Memory       : 17100kb

Error on LoadSolutionProjects thread
Exception thrown:
System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
   at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
   at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
   at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.ParseFiles(List`1 filesToParse, IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.Initialize(IProgressMonitor progressMonitor, List`1 filesToParse)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass10_0.<.ctor>b__0(IProgressMonitor monitor)
   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()
---> (Inner Exception #0) System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
   at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
   at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
   at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---


---- Recent log messages:
10:58:49.688 [1] INFO - Loading addin WiX Binding
10:58:49.695 [1] INFO - Initialize DirectoryNode D:\Acquisition
10:58:49.736 [1] DEBUG - [AddInManager2.Events] Package list download ended (success: True).
10:58:49.740 [1] DEBUG - NavigationService -- suspend logging
10:58:49.740 [1] INFO - Open file D:\Acquisition\AcquisitionResultForm.cs
10:58:49.740 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Workbench.IDisplayBindingService
10:58:49.783 [1] INFO - Loading addin Search & Replace
10:58:49.797 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.ILanguageService
10:58:49.866 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Editor.IEditorControlService
10:58:49.895 [1] DEBUG - Update Foldings
10:58:49.896 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Editor.Bookmarks.IBookmarkManager
10:58:49.906 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent D:\Acquisition\AcquisitionResultForm.cs]' from key '1e13ec5:D:\ACQUISITION\ACQUISITIONRESULTFORM.CS'
10:58:49.982 [1] DEBUG - NavigationService -- resume logging
10:58:49.987 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Acquisition\AcquisitionResultForm.cs]
10:58:49.987 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: AcquisitionResultForm.cs]
10:58:49.987 [1] INFO - CurrentProject changed to Acquisition
10:58:49.987 [1] DEBUG - NavigationService
 ActiveViewContent: AcquisitionResultForm.cs
           Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
10:58:49.987 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent D:\Acquisition\AcquisitionResultForm.cs]
10:58:50.044 [1] INFO - Loading addin ASP.NET MVC Binding
10:58:50.046 [1] DEBUG - Service startup: ICSharpCode.UnitTesting.ITestService
10:58:50.054 [LoadSolutionProjects] DEBUG - Deserializing C:\Users\Graham\AppData\Local\Temp\SharpDevelop5.1\Acquisition.17f1d263.prj
10:58:50.108 [1] DEBUG - Update Foldings
10:58:50.148 [12] ERROR - Got ArgumentOutOfRangeException while parsing D:\Acquisition\MainForm.cs
10:58:50.151 [LoadSolutionProjects] ERROR - Error on LoadSolutionProjects thread
--> Exception:
System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
   at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
   at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
   at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.ParseFiles(List`1 filesToParse, IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.Initialize(IProgressMonitor progressMonitor, List`1 filesToParse)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass10_0.<.ctor>b__0(IProgressMonitor monitor)
   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()
---> (Inner Exception #0) System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
   at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
   at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
   at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---

10:58:50.154 [LoadSolutionProjects] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   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:
ProjectService.CurrentSolution: [Solution D:\Acquisition\Acquisition.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: Acquisition]
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()

 

Cannot find central directory

$
0
0

I am having a problem unzipping a GZIP file...I do not know what process was used to zip it as it comes from a client.  However, the file can be sucessfully unzipped using the 7-Zip execuatable.  Furthermore, the GZIP file contains several layers of folder structure with the ultimate zipped file residing 5 or 6 layers down the tree.  Could that be the problem?  Can SharpZipLib handle multiple folder layers?

In the Catch, the Exception is: 

Cannot find central directory

 

 

Here is the code i am using to attemp to unzip the folders/file:

string currDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).Substring(6);                

                ZipFile zf = null;

                try {

                    FileStream fs = File.OpenRead(currDir + "\\TSUSDLYRPT.GZIP");

                    zf = new ZipFile(fs);

                    //if (!String.IsNullOrEmpty(password)) {

                    //    zf.Password = password;     // AES encrypted entries are handled automatically

                    //}

                    foreach (ZipEntry zipEntry in zf) {

                        if (!zipEntry.IsFile) {

                            continue;           // Ignore directories

                        }

                        String entryFileName = zipEntry.Name;

                        // to remove the folder from the entry:- entryFileName = Path.GetFileName(entryFileName);

                        // Optionally match entrynames against a selection list here to skip as desired.

                        // The unpacked length is available in the zipEntry.Size property.

 

                        byte[ buffer = new byte[4096];     // 4K is optimum

                        Stream zipStream = zf.GetInputStream(zipEntry);

 

                        // Manipulate the output filename here as desired.

                        String fullZipToPath = Path.Combine(currDir, entryFileName);

                        string directoryName = Path.GetDirectoryName(fullZipToPath);

                        if (directoryName.Length > 0)

                            Directory.CreateDirectory(directoryName);

 

                        // Unzip file in buffered chunks. This is just as fast as unpacking to a buffer the full size

                        // of the file, but does not waste memory.

                        // The "using" will close the stream even if an exception occurs.

                        using (FileStream streamWriter = File.Create(fullZipToPath)) {

                            StreamUtils.Copy(zipStream, streamWriter, buffer);

                        }

                    }

 

                } 

                catch(Exception ex){}

                finally {

                    if (zf != null) {

                        zf.IsStreamOwner = true; // Makes close also shut the underlying stream

                        zf.Close(); // Ensure we release resources

                    }

                }

======================================

 

The error occurs on the line:

zf = new ZipFile(fs);

 

The fs object is populated however.

Is there a way for me to attach the actual GZIP file (it is only 3K)?  I cannot see how...

 

Can anyone diagnose this issue without the actual file?

Thanks in advance for all assistance!!

error creating a solution that contains 3 projects converted from VB to C#

$
0
0

So I successfully converted from Visual Basic to C# the 3 projects that made up my solution.  Since I had no solution in the C# domain, I tried to create a new one so I could include the 3 projects I just converted to C#.  That is when I got the following error:

SharpDevelop Version : 4.4.2.9749-39bf891c

.NET Version         : 4.0.30319.42000

OS Version           : Microsoft Windows NT 6.2.9200.0

Current culture      : English (United States) (en-US)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 160848kb

GC Heap Memory       : 42139kb

 

Error while loading project template:

(C:\Program Files (x86)\SharpDevelop\4.4\data\templates\project\CSharp\Mvc3RazorProject.xpt)

 

Exception thrown:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\Tom\AppData\Roaming\NuGet\NuGet.Config' 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 NuGet.PhysicalFileSystem.AddFileCore(String path, Action`1 writeToStream)

   at NuGet.PhysicalFileSystem.AddFile(String path, Action`1 writeToStream)

   at NuGet.Settings.<Save>b__b()

   at NuGet.Settings.ExecuteSynchronized(Action ioOperation)

   at NuGet.Settings.Save()

   at NuGet.Settings.SetValues(String section, IList`1 values)

   at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.UpdatePackageSourceSettingsWithChanges()

   at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.ReadPackageSources()

   at ICSharpCode.PackageManagement.PackageManagementOptions.get_PackageSources()

   at ICSharpCode.PackageManagement.PackageManagementServices..cctor()

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

   at ICSharpCode.PackageManagement.PackageManagementServices.get_ProjectTemplatePackageRepositoryCache()

   at ICSharpCode.PackageManagement.InstallProjectTemplatePackagesCommand..ctor()

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

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at ICSharpCode.Core.AddIn.CreateObject(String className)

   at ICSharpCode.Core.ClassDoozer.BuildItem(BuildItemArgs args)

   at ICSharpCode.Core.Codon.BuildItem(BuildItemArgs args)

   at ICSharpCode.Core.AddInTreeNode.BuildChildItem(Codon codon, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.Core.AddInTreeNode.BuildChildItem(String childItemID, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.Core.AddInTree.BuildItem(String path, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.ReadAction(XmlElement el)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.LoadFromXml(XmlElement templateElement, String xmlFileName)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate..ctor(String fileName)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()

 

---- Recent log messages:

15:01:58.821 [53] DEBUG - Adding existing class frmMuseum from frmMuseum.Designer.cs

15:01:58.821 [53] DEBUG - Creating compound for PresentationLayer.frmMuseum

15:01:58.821 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmMuseum.Designer.cs new!=null:True

15:01:58.821 [58] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmLogin.Designer.cs from compound class PresentationLayer.frmLogin

15:01:58.821 [58] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part

15:01:58.821 [58] DEBUG - Adding existing class frmLogin from frmLogin.Designer.cs

15:01:58.821 [58] DEBUG - Creating compound for PresentationLayer.frmLogin

15:01:58.821 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmLogin.Designer.cs new!=null:True

15:01:58.821 [54] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmShowManual.Designer.cs from compound class PresentationLayer.frmShowManual

15:01:58.821 [54] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part

15:01:58.822 [54] DEBUG - Adding existing class frmShowManual from frmShowManual.Designer.cs

15:01:58.822 [54] DEBUG - Creating compound for PresentationLayer.frmShowManual

15:01:58.822 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmShowManual.Designer.cs new!=null:True

15:01:58.822 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\My Project\Settings.Designer.cs new!=null:True

15:01:58.823 [45] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\MyNamespaceSupportForCSharp.cs from compound class PresentationLayer.My.MyApplication

15:01:58.823 [45] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part

15:01:58.823 [45] DEBUG - Adding existing class MyApplication from MyNamespaceSupportForCSharp.cs

15:01:58.823 [45] DEBUG - Creating compound for PresentationLayer.My.MyApplication

15:01:58.823 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\MyNamespaceSupportForCSharp.cs new!=null:True

15:01:58.823 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\My Project\Resources.Designer.cs new!=null:True

15:01:58.851 [40] DEBUG - Git: OverlayIconManager Thread finished

15:02:22.305 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution', activation=MainMenu

15:02:22.742 [1] INFO - Loading addin Package Management

15:02:22.930 [1] ERROR - Error while loading project template:

(C:\Program Files (x86)\SharpDevelop\4.4\data\templates\project\CSharp\Mvc3RazorProject.xpt)

 

--> Exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\Tom\AppData\Roaming\NuGet\NuGet.Config' 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 NuGet.PhysicalFileSystem.AddFileCore(String path, Action`1 writeToStream)

   at NuGet.PhysicalFileSystem.AddFile(String path, Action`1 writeToStream)

   at NuGet.Settings.<Save>b__b()

   at NuGet.Settings.ExecuteSynchronized(Action ioOperation)

   at NuGet.Settings.Save()

   at NuGet.Settings.SetValues(String section, IList`1 values)

   at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.UpdatePackageSourceSettingsWithChanges()

   at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.ReadPackageSources()

   at ICSharpCode.PackageManagement.PackageManagementOptions.get_PackageSources()

   at ICSharpCode.PackageManagement.PackageManagementServices..cctor()

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

   at ICSharpCode.PackageManagement.PackageManagementServices.get_ProjectTemplatePackageRepositoryCache()

   at ICSharpCode.PackageManagement.InstallProjectTemplatePackagesCommand..ctor()

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

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at ICSharpCode.Core.AddIn.CreateObject(String className)

   at ICSharpCode.Core.ClassDoozer.BuildItem(BuildItemArgs args)

   at ICSharpCode.Core.Codon.BuildItem(BuildItemArgs args)

   at ICSharpCode.Core.AddInTreeNode.BuildChildItem(Codon codon, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.Core.AddInTreeNode.BuildChildItem(String childItemID, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.Core.AddInTree.BuildItem(String path, Object caller, IEnumerable`1 additionalConditions)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.ReadAction(XmlElement el)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.LoadFromXml(XmlElement templateElement, String xmlFileName)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate..ctor(String fileName)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()

15:02:23.117 [1] WARN - Stack trace of last exception log:

   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()

   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.get_ProjectTemplates()

   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.InitializeTemplates()

   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog..ctor(Boolean createNewSolution)

   at ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution.Run()

   at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run(Window window)

   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)

   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)

   at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)

   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()

   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()

   at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Workbench.ActiveContent: [AvalonEditViewContent 39114066\Conversion Results]

ProjectService.OpenSolution: [Solution: FileName=C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\CE_Museum.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [VBNetProject: PresentationLayer]

Viewing all 1764 articles
Browse latest View live