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

windows application is changed to windows service

$
0
0

Hi -- new here. Not much of a programmer, though I've used #develop quite a bit in the last year or two.

A problem has come up. I'm running Win 7 64 bit machine. I use #develop version 4.3.3.9663-463ee024. Net framework 4.0. When I start a solution (vb.net) and specify "windows application" the IDE instead starts the solution as a "windows service".

When I run the app from inside the IDE it runs as a windows service as well. Oddly enough, once it's running I can't stop it using Task Manager. Have to reboot the machine to make it die. And of course the IDE freezes too.

Further: if I open a solution which I successfully built in the past it too opens and runs (from inside the IDE) as a service.

I notice dseichter reported something vaguely similar in the bug report http://community.sharpdevelop.net/forums/t/19836.aspx 

Have I mucked up a Windows setting? Or a setting in the IDE? Should I re-install #develop? 

I'm not good at this, so I hesitate to put this in the bug report forum without some expert guidance.

Thanks! 

 

~~ Don


Compilation Fails because file cannot be copied from obj to bin (MSB3021)

$
0
0

I am using SharpDevelop 4.3.3 (Build 9663) on Windows 7 64 Bits for developing with C# for .NET 4.0 and build error MSB3021 is gradually driving me crazy.

I am working on a solution (or rather, several overlapping (in terms of included projects) solutions) with some 20 or more projects that heavily depend on each other. (Obviously not circularly, but it's not unusual for those projects to have up to 10 references to other projects in the solution.)


In each of those solutions, every now and then I cannot compile certain assemblies any more because the build system claims it cannot copy obj\Debug\<filename>.dll to bin\Debug\<filename>.dll. This has (seemingly with increasing frequency as the code grows) temporarily stopped me many times over the past few months and I have so far been unable to intentionally reproduce the problem whenever I tried.

Therefore, I can only report the following observations:

  • The problem seems to occur primarily in assemblies that are somewhere deeply nested in the dependency graph (i.e. never in the startup project).
  • Rebuilding/Cleaning the projects/solution does not solve the problem.
  • Deleting the files in the output folder manually, if that works, does not solve the problem.
  • Deleting the output folder manually does not solve the problem.
  • Running SharpDevelop with administrator priviledges does not solve the problem.
  • Switching the project to compile as Release instead of Debug (this idea was based on the information provided in this StackOverflow thread) sometimes solves the problem completely; sometimes the problem disappears for the assembly in question and instead the same error is reported for one or even two other assemblies (for which switching to Relase mode doesn't change anything).
  • Switching the whole solution to Release mode usually solves the problem.
  • Switching back to Debug mode (either the project or the solution, depending on which of the aforementioned cases was present) immediately makes the problem reappear exactly as it was before switching to Release mode.
  • Switching back to Debug mode at some later time after some more changes have been made does not make the problem reappear and building works flawlessly.
  • Closing SharpDevelop, opening the solution in Visual Studio 2010, building there, closing Visual Studio, reopening the solution in SharpDevelop and building there usually solves the problem (today was the very first time ever even didn't work any more).
  • SharpDevelop needs to be closed before building from Visual Studio; otherwise VS cannot access the binary files itself.
  • The problem has so far always come back at some point after some days of programming and repeated flawless building.
  • Building only a part of the solution (by building a project that is not the startup project and that does not depend upon every other project) including the files for which the problem was reported usually works, but building the full solution/the startup project makes the errors reappear as they were.
  • When the MSB3021 error occurs, building of the last few projects before the build reports back as failed seems to progress very slowly (as judged by the little progress indicator in the status bar).

I am sorry for not providing anything more structured, but I am close to believing I'm seeing ghosts there. The symptoms really seem that random and unforeseeable. I think however that this is indeed an issue that could be fixed in SharpDevelop rather than just an MSBuild bug because VS seems to cope with it, after all.

I have found a variety of threads in this forum that seem to describe something very similar, if not the same issue:

Those threads indicate that the described bug is supposed to have been fixed in SharpDevelop 2, but that was 7 years ago and I see this MSB3021 issue very much alive and kicking on the latest stable #dev version here and now in 2013. Does anyone know what has happened? Has the fix accidentally been reverted? Does anyone else suffer from the same problem at all (and possibly found any workaround other than constantly closing SharpDevelop and building in VS)?

Thanks in advance

SharpDevelop and Web Service development

$
0
0

Hello,

 

I'am new in C# development and i need to develop a web service  with C# using SharpDevelop IDE

Unfortunetely i didn't find any reference or sample which i can use to help me.

Please can you help me or guide me to write webservice in SharpDevelop IDE ?

 

 

 

[SOLVED] Which files must be kept into source control?

$
0
0

Hello

I just installed #Develop 4.3.3 on a brand new Windows7 host for writing small VB.Net apps.

I need to know exactly which files must be kept under source control, and which files can be left out.

Here's the contents of a new project:

Directory of C:\Projects\VB.Net

\UTF8.to.1252

UTF8.to.1252.sln

\UTF8.to.1252

MainForm.vb

MainForm.Designer.vb

Program.vb

UTF8.to.1252.vbproj

        \bin

        \Debug

UTF8.to.1252.exe

UTF8.to.1252.pdb

        \obj

        \Debug

UTF8.to.1252.vbprojResolveAssemblyReference.cache

UTF8.to.1252.exe

UTF8.to.1252.pdb

UTF8.to.1252.vbproj.FileListAbsolute.txt

        \Properties

Settings.settings

AssemblyInfo.vb

 

Thank  you.

[SOLVED] What does the SDK bring?

$
0
0

Hello

After checking that I had the .Net 3.5 SP1 and 4.0 runtimes, I installed #Develop and built a small test application.

I was wondering what the "Microsoft Windows SDK for Windows 7 and .NET Framework 4 (strongly recommended!)" would bring. Extra documentation?

Thank  you.

Startup error

$
0
0

Hey guys,

Not sure what happened. It recovered and carried on.

Cheers,

Dinsdale.

 

SharpDevelop Version : 4.3.0.9390-e0365b10
.NET Version         : 4.0.30319.34003
OS Version           : Microsoft Windows NT 6.2.9200.0
Current culture      : English (Canada) (en-CA)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 66944kb
GC Heap Memory       : 10082kb

Exception thrown:
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at AvalonDock.DockingManager.RestoreLayout(String filename)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()

---- Recent log messages:
22:09:56.576 [1] INFO - Starting workbench...
22:09:56.576 [1] DEBUG - NavigationService -- suspend logging
22:09:56.576 [1] INFO - Open file E:\Code\depot\sw\transit\wayside\fms\mainline\main\src\fms-core\fms-core.sln
22:09:56.608 [1] DEBUG - NavigationService -- suspend logging
22:09:57.076 [1] INFO - Loading addin C# Binding
22:09:58.764 [1] INFO - Loading addin XAML binding
22:09:58.764 [1] INFO - Loading addin XML Editor
22:09:59.389 [1] DEBUG - Creating project content for MdsDatabase
22:09:59.420 [1] DEBUG - Creating project content for DataAccessLayer
22:09:59.420 [1] DEBUG - Creating project content for FleetWiseInterfaces
22:09:59.420 [1] DEBUG - Creating project content for FleetWiseService
22:09:59.420 [1] DEBUG - Creating project content for ApplicationManager
22:09:59.420 [1] DEBUG - Creating project content for log4net.vs2010
22:09:59.420 [1] DEBUG - Creating project content for FleetWiseLibrary
22:09:59.420 [1] DEBUG - Creating project content for FleetMonitor
22:09:59.420 [1] DEBUG - Creating project content for FleetWiseConsole
22:09:59.608 [LoadSolutionProjects] DEBUG - Started build for ResolveAssemblyReferences
22:09:59.873 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.CompilerMessageView...
22:10:00.639 [1] DEBUG - NavigationService -- resume logging
22:10:00.951 [1] INFO - Number of screens: 1
22:10:00.951 [1] INFO - Screen {X=0,Y=0,Width=1366,Height=768}: Validating {X=10,Y=10,Width=750,Height=550}; intersection {X=10,Y=10,Width=750,Height=550}
22:10:01.030 [1] INFO - dockingManager_Loaded
22:10:01.030 [1] INFO - Loading layout file: C:\Users\Russell\AppData\Roaming\ICSharpCode/SharpDevelop4\layouts\Default.xml, hideAllLostPads=False
22:10:01.076 [1] ERROR -
--> Exception:
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at AvalonDock.DockingManager.RestoreLayout(String filename)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()
22:10:01.623 [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.Gui.AvalonDockLayout.LoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.dockingManager_Loaded(Object sender, RoutedEventArgs e)
   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.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, 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.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Application.<RunInternal>b__f(Object obj)
   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)
   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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, 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.Threading.Dispatcher.Run()
   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: <null>
ProjectService.OpenSolution: [Solution: FileName=E:\Code\depot\sw\transit\wayside\fms\mainline\main\src\fms-core\fms-core.sln, HasProjects=True, ReadOnly=True]
ProjectService.CurrentProject: <null>

Start with no form?

$
0
0

Hello

Neither Google nor the Search form here returned information on how to configure a SharpDevelop VBNet project to start with no form.

In Visual Basic Express, this is/was done through Project > MyApp Properties > Application, uncheck "Enable application framework", and create a Sub Main routine as starting point.

I need to write an application that will sit minimized in the icon bar and display a dialog box when necessary.

Thank you.

Bug opening any solution

$
0
0

 Hi,

Whenever i open any solution i get an exception and and then I cannot open any of the files in the solution even though i can use the navigator.

Exception details:

SharpDevelop Version : 4.4.0.9719-aef0b590
.NET Version         : 4.0.30319.2012
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 174092kb
GC Heap Memory       : 68850kb

Unhandled WPF exception
Exception thrown:
System.InvalidOperationException: Dispatcher processing has been suspended, but messages are still being processed.
   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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
09:01:20.803 [LoadSolutionProjects] DEBUG - Got information about System.Data; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - Got information about System; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - Got information about System.Xml; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - Got information about System.Xml.Linq; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\ORM\FluentNHibernate.1.3.0.727\FluentNHibernate.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\ORM\Iesi.Collections.3.2.0.4000\Iesi.Collections.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\MoQ\Moq.4.0.10827\NET40\Moq.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\ORM\NHibernate.3.3.0.4000\NHibernate.dll
09:01:20.803 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\NUnit unit.framework.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\XXX\dev\work\YYYY\lib\RhinoMocks\Rhino.Mocks.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.configuration.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll
09:01:20.804 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll
09:01:20.832 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\XXX\dev\work\YYYY\test\XXX.ZZZ.YYYY.Contract.Data.Tests\BWCFNetwrkConnectivityChkTest.cs]' from key '1e13ec5:C:\XXX\DEV\WORK\YYYY\TEST\XXX.ZZZ.YYYY.CONTRACT.DATA.TESTS\BASEWCFNETWRKCONNECTIVITYCHKTEST.CS'
09:01:20.855 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: BWCFNetwrkConnectivityChkTest.cs]
09:01:20.862 [1] INFO - CurrentProject changed to XXX.ZZZ.YYYY.Contract.Data.Tests
09:01:20.863 [1] DEBUG - NavigationService
 ActiveViewContent: BWCFNetwrkConnectivityChkTest.cs
           Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
09:01:20.864 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\XXX\dev\work\YYYY\test\XXX.ZZZ.YYYY.Contract.Data.Tests\BWCFNetwrkConnectivityChkTest.cs]
09:01:20.885 [1] WARN - System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at ICSharpCode.SharpDevelop.Gui.TextEditorSideBar.Initialize()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: <null>
ProjectService.OpenSolution: [Solution: FileName=C:\XXX\dev\work\YYYY\src\XXX.ZZZ.YYYY.TheLibName.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: XXX.ZZZ.YYYY.Contract.Data.Tests]

 


Aufteilen von Windows Form Klasse bei umfangreichem Projekt

$
0
0

Hallo zusammen.

Erst mal ein dickes Lob an die Entwickler. 

 

Ich programmiere mit VB.Net  ein sehr umfangreiches Windows Form Programm unter Win7 mit Version 4.3.3

Wo möglich habe ich die Komponenten in separaten Klassen deklariert.

Bei dem Projekt habe ich z.B.:

Eine Siemens S7 SPS

Einen PC mit Win 7 der mit der SPS kommuniziert.

Einen Keyence Scanner über Ethernet eingebunden

Eine Fireebird Datenbank im Netz

2 Micro-Epsilon High Speed Mess Controller über Ethernet verbunden.

Und noch 3 Elektrische Antriebe von SMC.

 

Jetzt zum eigentlichen Problem.

Der Code Umfang beträgt zur Zeit ca. 14.000 Zeilen.

Da meine MainForm bei ca. 7000 Zeilen angekommen war hatte ich über 

Public Partial Class MainForm...

Mehrere (ca. 8 ) ...vb Dateien ins Projekt geladen und in diesen den Code aus MainForm nach Themen strukturiert verschoben.

Alles mit dem Ziel den Editor wieder auf eine vernünftige Geschwindigkeit zu bringen.

Es dauerte teilweise 1-2 Sekunden wenn man z.B. mit STRG + C Code Abschnittte kopierte.

Im Editor ist nun aber bei jeder Datei ein Design Reiter unten vorhanden. Alles OK solange man nicht in einem 

anderen Code Fenster als der MainForm darauf klickt.

Der Designer wird aufgerufen, aber die Resourcen Dateien z.B. die in der MainForm.Designer.vb verknüpft sind werden gelöscht und z.B. eingebundene Hintergrundbilder sind verschwunden.

Gibt es einen anderen Weg als "Public Partial Class" die Datei aufzuteilen ohne den zugriff auf die globalen Variablen und vor allem die Steuerelemente der Form zu verlieren?

Z.B. sowas wie Include früher bei C++ oder ähnlich...

Da das Projekt schon sehr weit vorangeschritten ist sehe ich ein Problem alles auf zusätzliche Klassen und z.B. Modifiers Public zu setzen....

 

Bin für jeden Tip Dankbar.

 

Vielen Dank,

Tim

 

Git revert bug

$
0
0

When I open WPF-project and in git console try revert some *.cs file, such exception was thrown:

SharpDevelop Version : 4.3.3.9663-463ee024
.NET Version : 4.0.30319.1
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : Invariant Language (Invariant Country) ()
Current UI language : ru
Working Set Memory : 237160kb
GC Heap Memory : 46235kb

Unhandled WPF exception
Exception thrown:
System.IO.FileNotFoundException: Файл 'D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml' не найден.
Имя файла: "D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml"
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в 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)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
в ICSharpCode.SharpDevelop.OpenedFile.OpenRead()
в ICSharpCode.SharpDevelop.ParserService.GetParseableFileContentInternal(String fileName)
в ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.SafeThreadFunction[A,R](Func`2 method, A arg1)
в ICSharpCode.SharpDevelop.ParserService.GetParseableFileContent(String fileName)
в ICSharpCode.SharpDevelop.ParserService.timer_Tick(Object sender, EventArgs e)
в System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
01:20:51.625 [7] DEBUG - Removing part D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml from compound class AutoCAD_Teacher.Window1
01:20:51.625 [7] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
01:20:51.625 [7] DEBUG - Adding existing class Window1 from MainWindow.xaml
01:20:51.625 [7] DEBUG - Creating compound for AutoCAD_Teacher.Window1
01:20:51.625 [1] DEBUG - ParseInformationUpdated D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml new!=null:True
01:20:53.125 [30] DEBUG - Removing part D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml from compound class AutoCAD_Teacher.Window1
01:20:53.125 [30] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
01:20:53.125 [30] DEBUG - Adding existing class Window1 from MainWindow.xaml
01:20:53.125 [30] DEBUG - Creating compound for AutoCAD_Teacher.Window1
01:20:53.125 [1] DEBUG - ParseInformationUpdated D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml new!=null:True
01:20:54.625 [20] DEBUG - Removing part D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml from compound class AutoCAD_Teacher.Window1
01:20:54.625 [20] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
01:20:54.625 [20] DEBUG - Adding existing class Window1 from MainWindow.xaml
01:20:54.625 [20] DEBUG - Creating compound for AutoCAD_Teacher.Window1
01:20:54.625 [1] DEBUG - ParseInformationUpdated D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml new!=null:True
01:20:56.125 [34] DEBUG - Removing part D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml from compound class AutoCAD_Teacher.Window1
01:20:56.125 [34] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
01:20:56.125 [34] DEBUG - Adding existing class Window1 from MainWindow.xaml
01:20:56.125 [34] DEBUG - Creating compound for AutoCAD_Teacher.Window1
01:20:56.125 [1] DEBUG - ParseInformationUpdated D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml new!=null:True
01:20:57.625 [20] DEBUG - Removing part D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml from compound class AutoCAD_Teacher.Window1
01:20:57.625 [20] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
01:20:57.625 [20] DEBUG - Adding existing class Window1 from MainWindow.xaml
01:20:57.625 [20] DEBUG - Creating compound for AutoCAD_Teacher.Window1
01:20:57.625 [1] DEBUG - ParseInformationUpdated D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\MainWindow.xaml new!=null:True

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
ProjectService.OpenSolution: [Solution: FileName=D:\Documents\Наработки\Мои проэкты\Проэкты\AutoCAD Teacher\AutoCAD Teacher.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: AutoCAD Teacher]

Unhandled exception adding references

$
0
0

Hi,

I was adding references to my vb.net project and when I hit OK it raised an unhandled exception. It asked me to report it and here I am, the newby :)

Here's the message:

SharpDevelop Version : 4.3.3.9663-463ee024
.NET Version         : 4.0.30319.296
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (Australia) (en-AU)
Running under WOW6432, processor architecture: x86-64
Terminal Server Session
Working Set Memory   : 425988kb
GC Heap Memory       : 212027kb

Unhandled WPF exception
Exception thrown:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at ICSharpCode.SharpDevelop.Dom.DefaultProjectContent.GetClass(String typeName, Int32 typeParameterCount, LanguageProperties language, GetClassOptions options)
   at ICSharpCode.SharpDevelop.Dom.DefaultProjectContent.SearchType(SearchTypeRequest request)
   at ICSharpCode.SharpDevelop.Dom.SearchClassReturnType.get_BaseType()
   at ICSharpCode.SharpDevelop.Dom.ProxyReturnType.GetUnderlyingClass()
   at ICSharpCode.SharpDevelop.Dom.AttributeReturnType.get_BaseType()
   at ICSharpCode.SharpDevelop.Dom.ProxyReturnType.get_FullyQualifiedName()
   at ICSharpCode.FormsDesigner.Gui.CustomComponentsSideTab.ScanProjectAssemblies()
   at ICSharpCode.FormsDesigner.Gui.CustomComponentsSideTab.RescanProjectAssemblies(Object sender, EventArgs e)
   at ICSharpCode.FormsDesigner.Gui.CustomComponentsSideTab.ProjectItemAdded(Object sender, ProjectItemEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at ICSharpCode.SharpDevelop.Project.ProjectService.OnProjectItemAdded(ProjectItemEventArgs e)
   at ICSharpCode.SharpDevelop.Project.ProjectService.AddProjectItem(IProject project, ProjectItem item)
   at ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject.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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about mscorlib; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\mscorlib.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Core; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Core.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Data.DataSetExtensions; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Data.DataSetExtensions.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Data; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Data.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Drawing; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Drawing.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Windows.Forms; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Forms.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Xml; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - Got information about System.Xml.Linq; fullpath=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.Linq.dll
15:33:07.331 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Documents and Settings\All Users\Application Data\Arrow Research Corporation\Tencia\Client\arrowdotnet.com.common.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\ProgramData\Arrow Research Corporation\Tencia\Client\arrowdotnet.com.common.settings.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Documents and Settings\All Users\Application Data\Arrow Research Corporation\Tencia\Client\arrowdotnet.com.tencia.addin.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\ProgramData\Arrow Research Corporation\Tencia\SDK\Addin\samples\aa_Converted to Sharp Develop\StockCodeStyleColorSize\StockCodeStyleColorSize\bin\arrowdotnet.com.tencia.addin.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Documents and Settings\All Users\Application Data\Arrow Research Corporation\Tencia\Client\arrowdotnet.com.tencia.layer.common.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Microsoft.VisualBasic.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\mscorlib.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Core.dll
15:33:07.332 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Data.DataSetExtensions.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Data.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Drawing.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Forms.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.Linq.dll
15:33:07.333 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\ProgramData\Arrow Research Corporation\Tencia\Client\arrowdotnet.com.common.dll

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent C:\ProgramData\Arrow Research Corporation\Tencia\SDK\Addin\samples\aa_Converted to Sharp Develop\CreditCardSurcharge\CreditCardSurcharge\Addin.vb]
ProjectService.OpenSolution: [Solution: FileName=C:\ProgramData\Arrow Research Corporation\Tencia\SDK\Addin\samples\aa_Converted to Sharp Develop\CreditCardSurcharge\CreditCardSurcharge.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: CreditCardSurcharge]

Sign Assembly

$
0
0

SharpDevelop Version : 4.3.3.9663-463ee024 .NET Version : 4.0.30319.18408 OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1 Current culture : German (Germany) (de-DE) Running under WOW6432, processor architecture: x86-64 Working Set Memory : 265772kb GC Heap Memory : 58819kb Unhandled WPF exception Exception thrown: System.ArgumentOutOfRangeException: StartIndex darf nicht kleiner als Null sein. Parametername: startIndex bei System.String.Remove(Int32 startIndex, Int32 count) bei ICSharpCode.SharpDevelop.Gui.OptionPanels.Signing.CreateKeyFile() bei ICSharpCode.SharpDevelop.Gui.OptionPanels.Signing.b__0() bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) ---- Recent log messages: 08:55:07.717 [26] DEBUG - Stopped reading from WorkerProcess 12872. 08:55:07.717 [26] DEBUG - Telling worker process to exit 08:55:07.718 [26] DEBUG - End of reader thread on WorkerProcess 12872. 08:55:07.718 [5] DEBUG - Joined! 08:55:33.619 [1] INFO - FileService Jumping to File Position: [c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs : 24x1] 08:55:33.619 [1] DEBUG - NavigationService -- suspend logging 08:55:33.619 [1] INFO - Open file c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs 08:55:33.639 [1] DEBUG - Activated feature 'ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent/open.cs' 08:55:33.641 [1] DEBUG - [Task:File=c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs, Line=24, Column=1, Type=Warning, Description=Der 'args'-Parameter von 'Program.Main(string[)' wird nie verwendet. Entfernen Sie den Parameter, oder verwenden Sie diesen im Methodentext. (CA1801) 08:55:33.648 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs]' from key '1e13ec5:C:\USERS\SPEEDY\DOCUMENTS\SHARPDEVELOP PROJECTS\TEST1\TEST1\PROGRAM.CS' 08:55:33.655 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs] 08:55:33.655 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Program.cs] 08:55:33.655 [1] DEBUG - NavigationService ActiveViewContent: Program.cs Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage} 08:55:33.656 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs] 08:55:33.656 [1] DEBUG - IDEContainer: Disconnecting property grid from service provider 08:55:33.659 [1] DEBUG - FormsDesigner view content deactivated, setting ActiveDesignSurface to null 08:55:33.661 [1] DEBUG - NavigationService -- resume logging 08:55:33.661 [1] INFO - FileService Jumped to File Position: [c:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs : 24x1] 08:55:33.661 [1] DEBUG - ParseInformationUpdated C:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1\Program.cs new!=null:True 08:55:36.606 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ErrorListPad 08:55:53.408 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.ViewProjectOptions', activation=MainMenu 08:55:53.433 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView 08:55:53.433 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: test1] 08:55:53.433 [1] DEBUG - NavigationService ActiveViewContent: test1 Subview: TabPageText 08:55:53.433 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView ---- Post-error application state information: Installed 3rd party AddIns: Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView ProjectService.OpenSolution: [Solution: FileName=C:\Users\Speedy\Documents\SharpDevelop Projects\test1\test1.sln, HasProjects=True, ReadOnly=False] ProjectService.CurrentProject: [CSharpProject: test1]

Crash on closing form

$
0
0

 

Hello. I was trying to debug my program with threads (program is representing server-client interactions). I placed a breakpoint here:

 

private void RunServerStream() {

   while(run == true) {

     if(tcpListener.Pending()) {

       int availableThreads, completePortThreads;

    > System.Threading.ThreadPool.GetAvailableThreads(out availableThreads, out completePortThreads);

       if(availableThreads > 0) {

         MessageBox.Show("Got one!");

         new System.Threading.Thread(ProcessClient).Start();

       }

     }

   }

}

And when debug stopped here, I was not able to make a step. So, I pressed “Shift + F5”.

Minute later I run program. Then I pushed "start" button on form of server, then started another program as client and pushed button“connection” several times. Well, then I pushed button"stop" on server, and closed main form. Then... this exception appear.

Well, I definitely can say that my program have many bugs. I can send you copy of project if it's needed.

 

SharpDevelop Version : 4.3.3.9663-463ee024

.NET Version : 4.0.30319.18408

OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture : Russian (Russia) (ru-RU)

Running under WOW6432, processor architecture: x86-64

Working Set Memory : 167664kb

GC Heap Memory : 31958kb

 

Exception thrown:

Debugger.DebuggerException: Evaluation can not be stopped

в Debugger.Eval.WaitForResult()

в Debugger.Eval.InvokeMethod(DebugMethodInfo method, Value thisValue, Value[ args)

в Debugger.Value.InvokeMethod(Value objectInstance, MethodInfo methodInfo, Value[ arguments)

в Debugger.Value.GetPropertyValue(Value objectInstance, PropertyInfo propertyInfo, Value[ arguments)

в Debugger.Value.GetMemberValue(Value objectInstance, MemberInfo memberInfo, Value[ arguments)

в Debugger.Value.GetMemberValue(String name)

в Debugger.Exception.GetStackTrace(String endOfInnerExceptionFormat)

в ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object sender, ExceptionEventArgs e)

в Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)

в Debugger.Process.RaisePausedEvents()

в Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

в Debugger.MTA2STA.PerformCall()

в Debugger.MTA2STA.PerformAllCalls()

в System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

в System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

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

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

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

в System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

в System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Recent log messages:

14:10:18.180 [1] DEBUG - Adding existing class MainForm from MainForm_client.cs

14:10:18.180 [1] DEBUG - Creating compound for BD_course_client.MainForm

14:10:18.180 [1] DEBUG - ParseInformationUpdated C:\SharpDevelop Projects\BD_course\BD_course_client\MainForm_client.cs new!=null:True

14:10:39.100 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\SharpDevelop Projects\BD_course\BD_course\MainForm_server.cs]

14:10:39.100 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: MainForm_server.cs]

14:10:39.100 [1] INFO - CurrentProject changed to BD_course_server

14:10:39.100 [1] DEBUG - NavigationService
ActiveViewContent: MainForm_server.cs
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

14:10:39.100 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\SharpDevelop Projects\BD_course\BD_course\MainForm_server.cs]

14:10:56.229 [1] DEBUG - Debugger: Callback: MDANotification

14:10:56.229 [1] DEBUG - Debugger: Process has queued callbacks

14:10:56.229 [1] DEBUG - Debugger: Callback: ExitThread 5064

14:10:56.229 [1] DEBUG - Debugger: Thread 5064 exited

14:10:56.291 [1] DEBUG - Debugger: Callback: Exception

14:10:56.291 [1] DEBUG - Debugger: Process has queued callbacks

14:10:56.307 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)

14:10:56.307 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_USER_FIRST_CHANCE)

14:10:56.307 [1] DEBUG - Debugger: Callback: Exception

14:10:56.307 [1] DEBUG - Debugger: Process has queued callbacks

14:10:56.307 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_UNHANDLED)

14:10:56.447 [1] DEBUG - Debugger: Debugger event: OnExceptionThrown()

14:10:56.463 [1] INFO - Decompiled code debugging is disabled!

14:10:56.478 [1] DEBUG - Debugger: Callback: ExceptionUnwind

14:10:56.993 [1] DEBUG - Debugger: Aborting eval: Function call: String System.Exception.get_StackTrace()

14:11:00.019 [1] DEBUG - Debugger: Rude aborting eval: Function call: String System.Exception.get_StackTrace()

14:11:05.542 [1] ERROR - ThreadException caught

--> Exception:

Debugger.DebuggerException: Evaluation can not be stopped

в Debugger.Eval.WaitForResult()

в Debugger.Eval.InvokeMethod(DebugMethodInfo method, Value thisValue, Value[ args)

в Debugger.Value.InvokeMethod(Value objectInstance, MethodInfo methodInfo, Value[ arguments)

в Debugger.Value.GetPropertyValue(Value objectInstance, PropertyInfo propertyInfo, Value[ arguments)

в Debugger.Value.GetMemberValue(Value objectInstance, MemberInfo memberInfo, Value[ arguments)

в Debugger.Value.GetMemberValue(String name)

в Debugger.Exception.GetStackTrace(String endOfInnerExceptionFormat)

в ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object sender, ExceptionEventArgs e)

в Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)

в Debugger.Process.RaisePausedEvents()

в Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

в Debugger.MTA2STA.PerformCall()

в Debugger.MTA2STA.PerformAllCalls()

в System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

в System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

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

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

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

в System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

в System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Post-error application state information:

Installed 3rd party AddIns:

Workbench.ActiveContent: [AvalonEditViewContent C:\SharpDevelop Projects\BD_course\BD_course\MainForm_server.cs]

ProjectService.OpenSolution: [Solution: FileName=C:\SharpDevelop Projects\BD_course\BD_course.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [CSharpProject: BD_course_server]

OLE/COM Problem...

$
0
0

Hallo in die Runde,

 

ich arbeite erst seit ein paar Tagen mit sharpdevelop - und finde es sehr gut. Ich arbeite zu 99,9% unter Linux, muss nun aber ein einziges Projekt unter Windows zum Laufen bringen. Aller Anfang ist dabei natürlich schwer...

 

Aktuell habe ich folgendes Problem:

 

Ich habe mit dem c# - Kommandozeilencompiler von Win ein paar Zeilen Code kompiliert die mir Daten aus einer anderen laufenden Anwendung bereitstellen. Dort tun es die Zeilen:

 

dynamic sm_output = null;

sm_output = Marshal.GetActiveObject("MyProgram.Document");

string s_hw = sm_output.GetMyfunctionData(0);

.....

 

Ich versuche schon seit Stunden, diese drei Zeilen auch in sharpdevelop zum Laufen zu bringen. Die ersten beiden Zeilen scheinen zu funktionieren - zumindest kann ich eine Exception abfangen, wenn meine andere Applikation nicht läuft. Daraus schliesse ich, dass Marshal.GetActiveObject korrekt ausgeführt wird. Versuche ich allerdings danach in irgendeiner Weise sm_output zu verwenden, bekomme ich die Fehlermeldung 

"Der vordefinierte Typ Microsoft.Csharp.RuntimeBinder.Binder ist nicht definiert oder importiert".

Ich habe "using Microsoft.Csharp;" allerdings angegeben. Googlen hat mich nicht weitergebracht. Was mache ich falsch?

Gruß

df8oe

 

WiX platform dependent wixlib

$
0
0

Hello,

i have started with a WiX project and want to use the difxapp.wixlib. There are two different versions of the lib. One for x86 systems and one for x64 systems.

Is it possible to include the right wixlib for the selcted platform ?

I hope someone can direct me to solve this problem.

Thanks,

Garag

 


SharpDevelop 4.4

$
0
0

Release Information

This release comes with an important update to code completion - via the .NET 4.5.1 Developer Pack. This developer pack, as well as other additional software that you should install alongside SharpDevelop are now highlighted at the end of the the setup.

NuGet got a lot of love in this release, especially when it comes to packages that are supported - which is not always as easy as it seems. We now have full support for Fody, MVVM Light as well as Entity Framework 6. If you find a package you need that doesn't work in SharpDevelop, please let us know in the forums.

In other news, SharpDevelop 4.4 allows you to target .NET 4.5.1, and it supports the 12.0 solution format (VS 2013). NUnit and Subversion integration were upgraded too, and we made quite a few bug fixes (to point out one area: the WPF designer).

Downloads

SharpDevelop 4.4

Support

Our primary means of support is via ourWeb-based forum (please do not email team members directly unless they advise you to do so in the forum)

Sudden crash when switching from designer

$
0
0

I am using git and did a checkout to earlier version of windows application. Then was trying to run a project and was receiving message from compilator like "не удалось создать имя ресурса манифеста для "Form4.resx" (Form4.cs and Form4.Designer.cs are missing after checkout). I gave a look at Form4 code (tab was opened before that, so I thought nothing strange going on), then switched to designer mode. It was saying that no source file found. I tryed to switch to source code and exception appeared.

 

SharpDevelop Version : 4.3.3.9663-463ee024
.NET Version         : 4.0.30319.18408
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Russian (Russia) (ru-RU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 96960kb
GC Heap Memory       : 28706kb

Unhandled WPF exception
Exception thrown:
System.IO.FileNotFoundException: Файл 'C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs' не найден.
Имя файла: 'C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs'
   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   в System.IO.File.GetAttributes(String path)
   в ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Load(OpenedFile file, Stream stream)
   в ICSharpCode.SharpDevelop.OpenedFile.SwitchedToView(IViewContent newView)
   в ICSharpCode.SharpDevelop.FileServiceOpenedFile.WorkbenchActiveViewContentChanged(Object sender, EventArgs e)
   в System.EventHandler.Invoke(Object sender, EventArgs e)
   в ICSharpCode.SharpDevelop.Gui.WpfWorkbench.set_ActiveViewContent(IViewContent value)
   в ICSharpCode.SharpDevelop.Gui.WpfWorkbench.WorkbenchWindowActiveViewContentChanged(Object sender, EventArgs e)
   в ICSharpCode.SharpDevelop.Gui.AvalonWorkbenchWindow.UpdateActiveViewContent()
   в ICSharpCode.SharpDevelop.Gui.AvalonWorkbenchWindow.<CreateViewTabControl>b__d(Object param0, SelectionChangedEventArgs param1)
   в System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   в System.Windows.Controls.TabControl.OnSelectionChanged(SelectionChangedEventArgs e)
   в System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedInfos, List`1 selectedInfos)
   в System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   в System.Windows.Controls.Primitives.Selector.SetSelectedHelper(Object item, FrameworkElement UI, Boolean selected)
   в System.Windows.Controls.Primitives.Selector.NotifyIsSelectedChanged(FrameworkElement container, Boolean selected, RoutedEventArgs e)
   в System.Windows.Controls.Primitives.Selector.OnSelected(Object sender, RoutedEventArgs e)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   в System.Windows.Controls.TabItem.OnSelected(RoutedEventArgs e)
   в System.Windows.Controls.TabItem.OnIsSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetCurrentValueInternal(DependencyProperty dp, Object value)
   в System.Windows.Controls.TabItem.OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
   в System.Windows.UIElement.OnPreviewGotKeyboardFocusThunk(Object sender, KeyboardFocusChangedEventArgs e)
   в System.Windows.Input.KeyboardFocusChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   в System.Windows.UIElement.Focus()
   в System.Windows.Controls.TabItem.SetFocus()
   в System.Windows.Controls.TabItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   в System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
   в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   в System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
18:39:23.125 [10] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
18:39:23.125 [10] DEBUG - Adding existing class Form2 from Form2.cs
18:39:23.125 [10] DEBUG - Creating compound for BD_1.Form2
18:39:23.128 [1] DEBUG - ParseInformationUpdated C:\Учёба\Базы данных\BD_1\BD_1\Form2.cs new!=null:True
18:39:24.151 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Учёба\Базы данных\BD_1\BD_1\DBWork.cs]
18:39:24.151 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: DBWork.cs]
18:39:24.151 [1] DEBUG - NavigationService
    ActiveViewContent: DBWork.cs
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
18:39:24.151 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Учёба\Базы данных\BD_1\BD_1\DBWork.cs]
18:39:24.663 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs]
18:39:24.663 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Form4.cs]
18:39:24.663 [1] DEBUG - NavigationService
    ActiveViewContent: Form4.cs
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
18:39:24.663 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs]
18:39:25.546 [1] DEBUG - NavigationService
    ActiveViewContent: Form4.cs
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
18:39:25.564 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
18:39:25.890 [1] DEBUG - Forms designer: Load C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs; inMasterLoadOperation=False
18:39:25.912 [1] DEBUG - Forms designer: Determining designer source files for C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs
18:39:25.916 [1] DEBUG - Removing part C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs from compound class BD_1.Form4
18:39:25.917 [1] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
18:39:25.917 [1] DEBUG - Adding existing class Form4 from Form4.cs
18:39:25.917 [1] DEBUG - Creating compound for BD_1.Form4
18:39:26.684 [1] DEBUG - FormsDesigner view content activated, setting ActiveDesignSurface to null
18:39:26.695 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
18:39:26.960 [1] DEBUG - ParseInformationUpdated C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs new!=null:True
18:39:34.270 [1] DEBUG - NavigationService
    ActiveViewContent: Form4.cs
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
18:39:34.270 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Учёба\Базы данных\BD_1\BD_1\Form4.cs]

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.FormsDesigner.FormsDesignerViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\Учёба\Базы данных\BD_1\BD_1.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: BD_1]

Unhandled exception has occured when clicking on web in project properties

$
0
0

SharpDevelop Version : 4.3.3.9663-463ee024

.NET Version         : 4.0.30319.17379

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : English (India) (en-IN)

Working Set Memory   : 236044kb

GC Heap Memory       : 140696kb

 

Unhandled WPF exception

Exception thrown:

System.Xml.XmlException: There are multiple root elements. Line 1, position 547.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)

   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)

   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

   at System.Xml.XmlTextReaderImpl.Read()

   at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)

   at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)

   at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)

   at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.LoadProjectExtensions(String name)

   at ICSharpCode.AspNet.Mvc.VisualStudioProjectExtension.ContainsWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProject.HasWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProject.GetWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProjectOptionsPanel.Load(MSBuildBasedProject project, String configuration, String platform)

   at ICSharpCode.SharpDevelop.Gui.OptionPanels.ProjectOptionPanel.Load()

   at ICSharpCode.SharpDevelop.Gui.OptionPanels.ProjectOptionPanel.ICSharpCode.SharpDevelop.IOptionPanel.LoadOptions()

   at ICSharpCode.SharpDevelop.Gui.TabbedOptions.OptionTabPage.LoadPadContentIfRequired()

   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:

14:06:03.574 [1] INFO - CurrentProject changed to UDSMR.Documentation.PrintWCFService

14:06:03.589 [1] INFO - CurrentProject changed to UDSMR.Documentation.PrintData

14:06:03.589 [1] INFO - CurrentProject changed to UDSMR.Documentation.Print.MainExe

14:06:03.620 [1] INFO - CurrentProject changed to UDSMR.Documentation.Print.HTMLToPDFExe

14:06:03.620 [1] INFO - CurrentProject changed to UDSMR.Documentation.Print.DataExe

14:06:03.636 [1] INFO - CurrentProject changed to UDSMR.Documentation.PlanofCare

14:06:03.636 [1] INFO - CurrentProject changed to UDSMR.Documentation.LDAPLibrary

14:06:03.652 [1] INFO - CurrentProject changed to UDSMR.Documentation.FaceSheet

14:06:03.667 [1] INFO - CurrentProject changed to UDSMR.Documentation.Extensions

14:06:03.667 [1] INFO - CurrentProject changed to UDSMR.Documentation.Data

14:06:03.683 [1] INFO - CurrentProject changed to UDSMR.Documentation.CustomField

14:06:03.683 [1] INFO - CurrentProject changed to UDSMR.Documentation.Contracts

14:06:03.698 [1] INFO - CurrentProject changed to UDSMR.Documentation.ClinicalSummary

14:06:03.698 [1] INFO - CurrentProject changed to UDSMR.Documentation.ClinicalDocument

14:06:03.714 [1] INFO - CurrentProject changed to UDSMR.Documentation.CareTrendPRO

14:06:03.714 [1] INFO - CurrentProject changed to UDSMR.Documentation.AdditionalPatientInfo

14:06:03.730 [1] INFO - CurrentProject changed to null

14:06:03.917 [1] INFO - Creating default project content

14:06:05.929 [1] INFO - CurrentProject changed to UDSMR.Documentation.AdditionalPatientInfo

14:06:07.863 [1] INFO - CurrentProject changed to UDSMR.Documentation.Service.WebHost

14:06:09.158 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.ShowPropertiesForNode', activation=Menu

14:06:09.174 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

14:06:09.174 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: UDSMR.Documentation.Service.WebHost]

14:06:09.174 [1] DEBUG - NavigationService

                ActiveViewContent: UDSMR.Documentation.Service.WebHost

                          Subview: TabPageText

14:06:09.174 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

 

---- Post-error application state information:

Installed 3rd party AddIns:

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

ProjectService.OpenSolution: [Solution: FileName=D:\Harinath\UDS DOC Project\UDSMR.Documentation.Developer.2010.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [CSharpProject: UDSMR.Documentation.Service.WebHost]

Error when trying to format a bad structured xml document

$
0
0

Hello,

I had an xml document bad formed with two root elements (my fault) and this exception rised when I tried to format (Ctrl+I) this document. For me is not a really bug is just that is not 'nice' to have an 'Unhandled exception' window.

Regards,

David

.NET Version        : 2.0.50727.42
OS Version           : Microsoft Windows NT 5.0.2195 Service Pack 4
Current culture      : Spanish (Spain) (es-ES)
Current UI language  : en-US
Working Set Memory   : 48360kb
SharpDevelop Version : 2.0.0.1591


Exception thrown:
System.Xml.XmlException: There are multiple root elements. Line 3, position 2.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at ICSharpCode.SharpDevelop.DefaultEditor.XmlFormattingStrategy.TryIndent(TextArea textArea, Int32 begin, Int32 end)
   at ICSharpCode.SharpDevelop.DefaultEditor.XmlFormattingStrategy.IndentLines(TextArea textArea, Int32 begin, Int32 end)

vb.net, sharpdevelopreports and odbc

$
0
0

Hi,

Am working on a project with VB.net and so far things were flowing, with sharpdevelop until i got to the reports section. I had installed 4.3-Alpha and when i got to the reports, i had the capability to add an odbc database with the pull data report model, i installed 4.3 stable and now i have only the capability to do ms sql server databases only...what did  i do wrong.

I went ahead an tried getting samples with sharpreports, and when it came to running this report, i get several reports among which are

 "Found conflicts between different versions of the same dependent assembly., 'Public Event SectionRendering(sender As Object, e As ICSharpCode.Reports.Core.SectionRenderEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. (BC32022) -

C:\Downloads\SharpDevelopReports_3.0.0.616_Source\samples\src\ReportSamples.ConvertedToVBNet\EventLogger.vb:54,5, Class 'ReportViewerMessagesProvider' must implement 'ReadOnly Property BackButtonText As String' for interface 'ICSharpCode.Reports.Core.ReportViewer.IReportViewerMessages'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. (BC30154) -

C:\Downloads\SharpDevelopReports_3.0.0.616_Source\samples\src\ReportSamples.ConvertedToVBNet\ReportViewerMessagesProvider.vb:12,13"

 i tried adding references and components so that i can call  ICSharpCode.Reports.Core but nothing. please i need some guidance on how to use sharpdevelop reports.

 

regards.

Viewing all 1764 articles
Browse latest View live