Hello Im writing an application that will implement its own custom exceptions Just wanted to hear if anyone has any input before I start on how to do this "best practise"?? Cheers Spaz
Spaz80
Posts
-
Custom Exception Handling "Best Practise" -
DataTemplate "library"Hello Im building an application using WPF and was wondering what was the best practise when storing my WPF DataTemplates. I want to be able to use the datatemplates on the different UI projects. Im trying to avoid the situation that all the developers have their own DataTemplates. If one developer has created a DataTemplate for an object, this shall be used. Need idees on how this is best solved Cheers Spaz
-
Change the order of Unit testsHello Does anyone know where I can change the order of the Unite tests in vs 2008? I would like to decide in witch order they shall run.. Cheers spaz
-
Full Screen and visible start menu [modified]Hei I´ve got a solution that works, not optimal, but it works this.Left = 0; //place our form at top this.Top = 0; this.WindowState = WindowState.Normal; this.Height = SystemParameters.PrimaryScreenHeight - 30; this.Width = SystemParameters.PrimaryScreenWidth; Spaz
-
Full Screen and visible start menu [modified]Hello Im after code that opens an application in "full screen", I want to keep the start menu visible. (Using WPF Window) this.WindowState = WindowState.Maximized; Covers the whole screen.... Cheers Spaz
modified on Monday, January 28, 2008 6:42:16 AM
-
Microsoft Sync Framework and SQL ExpressHello Does anyone know if the new Microsoft Sync Framework include/will include support for SQL Express as the client db? Cheers Spaz
-
Word COMHello Im trying to deploy a application created on a machine with Office2007 on a new machine witch is using Office 2003. Im not getting it... I continue getting this error... Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)). Just wondering if any of you guys know what could be wrong Cheers Spaz
-
Word compatibilityHello Thanx for the help, im a bit in the blue here... I did what you sad, importet the reference, created a new setup project. Changed the setting under register property to "vsdrfCOM". But when I try to run it on the deplyment PC I get this error: "Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))" Any ide what could be wrong? Thanx Spaz
-
Word compatibilityThanks for the reply The Word Library only contain version 12, witch is Office 2007. If I compile my application with that library and deploy it on a machine with Office 2003 I get this error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) So I need a way to compile my application with Microsoft.Office.Interop.Word, Version=11.0.0.0 Thanx Spaz
-
Word compatibilityHello Im writing a Word application that shall be used on machines with Office 2003 or later versions. On the developer machine I have Office 2007. Im having trouble creating the application so that it works on the test PC witch is using Office 2003. Can anybody help me with a solution on how to use a assembly from Office 2003 in my project... C# :) Thanx Spaz
-
Export data from SQL server 2005Hello I am writing an application that should export some data from an SQL server 2005 server to an SQL Mobile (sdf file) on an remote PC. What is the best way of doing this? I want the user to be abel to choose witch data that should be exportet. So it is not allways the complete database that will be exportet The user will then modify the data on the remote PC, and the idee is that he/she:) then could "import" the data, with some merge (conflict solving) solution. Any idees on how to solve this is appreciated. Cheers Spaz
-
Implementing "Merge replication" in vs.net 2005Hello I´m working on a project that implements a SQL server 2005 DB as the main DB. Users should be able to extract an given project from the main server DB and "copy" it to there own local machine and work on it there (offline). When they return to work, they should merge it with the main DB. And I hoped it would be possible to show conflicts through vs.NET so that the user can solve them. I´m wondering if anyone out there has ever implementet a solution with Merge replication from SQL Server 2005 in Vs.Net 2005. And if this could be the solution to my problem? Thanx :) Spaz
-
Implementing "Merge replication" in Vs.Net 2005Hello I´m working on a project that implements a SQL server 2005 DB as the main DB. Users should be able to extract an given project from the main server DB and "copy" it to there own local machine and work on it there (offline). When they return to work, they should merge it with the main DB. And I hoped it would be possible to show conflicts through vs.NET so that the user can solve them. I´m wondering if anyone out there has ever implementet a solution with Merge replication from SQL Server 2005 in Vs.Net 2005. And if this could be the solution to my problem? Thanx :) Spaz
-
Updating WebServiceHello, I have a WebService where I have added som methods, when I try to update the excisting WebService by just copying the new files into the folder only the old methods work. If I brows the asmx file in the IIS the new methods are in the list, but if I invoke a new method a page shows with a yellow bar at the top saying "Youre security settings do not allow Web sites to use ActiveX controls installed on youre computer......." It seems to me that the webservice is using som old DLL files stored some where on the server. Anybody with any idees to where these dll files may be located? Spaz -- modified at 10:12 Tuesday 18th April, 2006
-
Error message, HelpI dont get this message, could anybody help me? System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.ControlUIElementBase.StartHoverTimer() at Infragistics.Win.ControlUIElementBase.CheckMouseHoverStatus(UIElement element) at Infragistics.Win.ControlUIElementBase.ElementEntered(UIElement element, Boolean triggerMouseLeavesOnly) at Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType) at Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly) at Infragistics.Win.ControlUIElementBase.SyncMouseEntered() at Infragistics.Win.ControlUIElementBase.VerifyIfElementsChanged(Boolean verify) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode) at Infragistics.Win.UltraWinGrid.UltraGridUIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode) at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe) at Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-
Dual monitors and fullpageNo prob Could you describe a way to solve my problem? Hint or tips... I am completely lost about what to do. I can place my second webapp where I want on the secondary monitor. But not get it to go fullscreen. Beacuse it overlaps the first webpage.. Thanx Spaz
-
Dual monitors and fullpageThanks for the reply Using youre code I get information about the primary screen. Could you please help me with what I should do next to show my two webpages in different monitors. I would like to display them fullscreen. PS The web page in the main screen is fullscreen, but if I set the other webpage to full screen it displays over the firs webpage, how do I get it to display in the secondary monitor? Spaz
-
Dual monitors and fullpageI have a web page that uses javascript to open two new web pages. The two new pages should be opend in full screen on dual monitors. But if I move one of them to the right monior and set Fullscreen = true, it opens over the other one. How can I get the two web pages to open in different monitors. I want to view one web page in each monitor Please help.... Spaz
-
Dual monitors and full screenI have a web page that uses javascript to open two new web pages. The two new pages should be opend in full screen on dual monitors. But if I move one of them to the right monior and set Fullscreen = true, it opens over the other one. How can I get the two web pages to open in different monitors. I want to view one web page in each monitor Please help.... Spaz
-
An existing connection was forcibly closed by the remote hostI´m using SSH1 to access an Cisco AP, but when I try to connect I get the following error "An existing connection was forcibly closed by the remote host" Has anybody seen this error before?