huysmans's Q&A profile
.NET Development serialize an exception
Hi, I got a small manually build communication, in which in case of an exception on the server side, I want to forward the exception to the client. The messages exchanged are in XML format, so my first thought was to serialize the caught Exception on the server side, deserialize it on the client side and rethrow it. But the standard Exception is not xml serializable because of the dictionary (Data). So I thought it would be a bright idea to use the SoapException for the data exchange as this guy is usually transported via xml, but how do I get the xml from the exception itself SoapException e = new SoapException("myexception", new XmlQualifiedName("test", " http://test "), innerException); Having that, h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Framwork without XNA Game Studio?
Hello! Can I develop games with XNA Framework without downloading XNA Game Studio Express Thanks in advance! -Martin Okey but I can't develop XNA games with Visual Studio 2005 Pro It seems unecessary to install an Express edition if you've got the Pro edition already -Martin ...Show All
Software Development for Windows Vista Reuse policies and rules
We are going to have a large number of workflows. Within these workflows we will have policies with rulesets used to validate the data and evaluate against business policy. A number of the rules are common to many policies and a number of policies are common to workflows. I cannot find a way to reuse a rule in several policies or reuse a policy in other workflows. Suggestions thanks Don Can you give more information i.e. xoml, code, etc Or do you need general debugging instructions, i.e. how to attach the debugger ...Show All
SQL Server missing tables
I have a database that I have been working on that is on a remote server for a website. I recently had them back up the database so I can work on it locally. After some time I managed to get the backup working, well sorta. Originally the database was a access 2000 database. This soon proved not to be up to the task. The server people converted the database to sql 2000 and everything is working on the site. However my backup has a problem. In the manager I can see all the tables that were there before. But when I go to run a query on the database through CF the only tables that it can see are tables that were created after the access conversion. I have gone in and checked permissions and set every table and every column to public and still ...Show All
Microsoft ISV Community Center Forums SaveAs help
I am trying to write a macro that saves a file with the name of a person. The name of the person is always in the same cell location, Column A. I am currently using this line to do the save: ActiveWorkbook.SaveAs Filename:="O:\Lead Report\temp\" & Sheet.Range("A2") & ".xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False I get the error: "Runtime error (424) - Object Required" I do not know what this means. The Workbook I am trying to save is generated from a drill down into a Pivot table that is then Moved to the new workbook. Any suggestions would be appreciated. Thanks! ...Show All
Smart Device Development How to center a dialog box
Hello, Looking at some of the msdn code I found the snippet below that I am trying to use for a customize dialog box. MSDN states this is available on compact 2.0 but I get the message stating it's not declared. Any help would be appreciated. John Dim form1 as new form() form1.StartPosition = FormStartPosition.CenterScreen Place this code inside form_load form will display in the center Rectangle screen = Screen.PrimaryScreen.Bounds; this.Location = new Point((screen.Width - this.Width) / 2, (screen.Height - this.Height) / 2); Thanks ...Show All
Visual C# Why is there a PDB file in my projects Release folder?
This is probably a deployment question, but there doesn't seem to be a deployment section in .NET Development Forum. I thought the PDB file was only for debugging purposes, so why is there a PDB file in my bin\Release folder What are the (dis)advantages of including this file in deployment Would it not work to use the debug build (with .pdbs) to analyze the crash dump in your example I am still not convinced that there is a good reason to build .pdbs with a release build. Thanks for the very descriptive post, though ...Show All
Windows Forms color of richtextbox contents
hi I want to chage the color of a single word in a richtext box thanx. thanks nobugz on your concerning...... I am really will go crazy , your last code work correctly but for the first time. My problem is: I want to change the color of a specific word in the richtextbox each time user enter this word its color chaged. your code work correctly at first time but second time all text in the richtextbox become with the new color!!!!!!. I maked sure with the values of SelectionStart and SelectionLength it was what ...Show All
Windows Forms DataGridView
I have a DataGridView on a form and I want the user to be able to edit several different fields in any of the rows displayed. After editing the fields (in possibly many rows) I want to find which rows in the DataGridView have been edited. How do I find out which rows in my DGV have been edited Thanks, Dave this is to verify directly on your table. Private Sub ToolStripButton1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click For i As Integer = 0 To Me .CostingDataSet.Bill_CostTypes.Rows.Count - 1 Select Case Me .CostingDataSet.Bill_CostTypes.Rows(i).RowState Case DataRowState.Added Case Da ...Show All
Visual Studio Team System SQL Server 2005 EE on the same machine as TFS
hi all i have to know, if it's possible to install the sql server 2005 enterprise edition on an separate machine i have to install 3 instances of virtual servers, the first for the sql server, the second for WSS, TFS and CRM 3.0 and the third for SharePoint Portal Server. so, would TFS works when sql is on an other virtual server on the same machine thanks for reply lg riv I think you have the answer here, but you can definitely have TFS, WSS, and RS on 1 VM and SQL EE on a 2nd (same physical computer). As Bruce notes, WSS must be on the same box or VM as TFS. marc ...Show All
Software Development for Windows Vista Installation Directory Write Access Issue
Hi, I am a developer for a commercial program and we are working on a Vista-aware release of our product. It is a large install (6 CDs) abd is currently all put in Program Files under XP. The Microsoft suggestion of putting program executables and static data in Program Files and all other stuff in the appropriate users/... directory is not practical for our application. I have never liked that model. It makes things complex both for users and programmers. It is a road that we simply will not follow. The problem, of course, is that users don't have write access to the Program Files folder unless they explicitly and manually set it. We could require the users to do that but this is not a happy solution and we probably will not do that. W ...Show All
Visual Studio Visual SourceSafe 2005 Installation Error
I'm having problems installing Visual SourceSafe 2005 (The same problem occurs when installing Visual Studio also). When running the setup program I get the dialog with the following text: Setup is loading installation components. This may take a minute or two. The progress bar gets to about 60% and then the following error occurs The exception unknown software exception (0xc000000d) occured in the application at location 0x4f46a490. This results in termination of setup and no further progress. I have read about one other occurance of this on these forums, involving Visual Studio, which related to having beta versions already installed, but I have not installed any previous version of either Visual SourceSafe or Visual Studio on my machine ...Show All
SQL Server Dynamically create text file as destination
I am trying to create a text file from an SQL query on a SQL table. I would like the SSIS package to prompt for the file name and path. The text file is tab delimited and the text qualifier is a double quote. Thanks, Fred Can I just question this approach Is this for end users If so then I don’t think using SSIS in this way is appropriate. SSIS is a server, so it is licensed as part of the full SQL Server license, and is not something you can install on client desktops as part of the normal Client access License. Each machine needs a full SQL Server license. To have a task offering a UI to the user means that package, and therefore SSIS itself, must be installed on the user's machine, making each ...Show All
SQL Server Updating from application does not work
Hello, I'm programming a Java application from which I send queries to a MicrosoftDabaBase. SELECT queries work fine, but when i try UPDATE queries, they don't work... However, there is one peculiar fact about this failure: Executing a query in Java is done like: stmt.executeQuery("SELECT ..."); // for select queries, or stmt.executeUpdate("UPDATE ..."); // for other queries... The first type results in a ResultSet, the second, however, results in an integer, implying how many rows have been modified. When I try a valid UPDATE-query, for example: "UPDATE series SET name = 'new_name' WHERE serie_id = 3, and I run it in Access, it changes the database data as wanted, but when executed the query ...Show All
Smart Device Development What it takes to Convert Win32 ActiveX Control to Mobile ActiveX
We have some ActiveX controls working on Win32 platform. I wonder if hat it takes to adapt them for Mobile Devices . Should we use Embedded Visual C++ 4.0 or 3.0. Any recomendations. Note:I have spent 2 days on this one month ago there were alot of missing libraries for compiling such as WinHttp is not there for Mobile in Visual Embedded C++ 4.0 I'd recommed using Visual Studio 2005 Standard Edition (or better). This enables you to target Windows Mobile 2003 SE and Windows Mobile 5.0 devices. To target WM5, download and install the Windows Mobile 5.0 SDKs availabe here . The next major step is porting your ActiveX controls to the Windows Mobile. This can be a non trivial task - as Windows Mobile does not support every Win32 ...Show All
