Michel GUINTOLI's Q&A profile
.NET Development How to append xml files
Can anybody tell me that how to append xml files If you mean that you have a Xml document and you want to add some more nodes in it then first you have to read it and gets its Enumuration ( XmlTextReader or XmlNodeReader depends upon which parser you want to use for it). Then you have to locate where actually you want to add a new node. The problem with Xml document is that your end and start tages for whole document should be the same ...Show All
.NET Development A question on the new CLR Profiler for .NET Framework 2.0 Beta2
I notice that there is a new release of CLR Profiler for .NET Framework 2.0 Beta2. However, there is also a profiler in Whidbey Team System Beta2. What's the difference between them Which one should I use Thanks! To a certain extent this is what has happened - the VSTS folks have looked at CLRProfiler and integrated the most important features into VSTS. The idea was that most users would just work with VSTS. Thanks Peter ...Show All
Visual Basic ASP / MS access - BEST Practices
PROCESS #1: I have IIS hosting an asp file that collects data (asp forms), then user clicks button and it gets sent to another ASP form that the user can verify all the data is correct and click another submit button. When you click teh submit button, the information is then added to a MS Access database. (access v11.6566) PROCESS #2: The information the user submitted to my access DB was a credit card and address information. My ...Show All
Windows Forms FileLoadException when running app with Impersonate from network folder.
If I take the example c# code from the MSDN site: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp and compile it into a console app, using vs 2005, I can run the app and it works great. Then I drag the app.exe from the bin/debug folder to another folder on my hard drive, and double click the .exe. Still works great. Then I drag this app. ...Show All
Smart Device Development SHA Encryption in PDA
Is SHA encryption possible in .Net CF.If yes please provide some pointers to some sample code. http://msdn2.microsoft.com/en-us/library/system.security.cryptography.sha1(VS.80).aspx has documentation and related example code. ...Show All
SQL Server How can I detect which version of sqlServer I am connected to using smo?
Hi, I have a quick app to do few scripts and generate sps.However some stuff which is new to sql 2005 dont work in sql 2000 as not supported. Basically. I choose a server from a combobox and connect to the database. now at this point i need to know if I am running a sql 2005 server or 2000 . Is there a call I can make is SMO to achieve this thanks a lot in advance Ye, thats right, look at the ...Show All
Visual C++ visual c++ 6.0 vs visual c++ 2005
I am looking forward to upgrade VC++ 6.0 to Visual C++ .NET 2005. But there are things I need to know before I do... 1. What are major changes in the "object class" structure ( if there are changes). 2. Do I need to make changes for the MFC libraries that I used while coding with VC++ 6.0 when I upgrade to VC++ .NET 2005. 3. In VC++ 6.0 I can use openGL and MFC together, and I can run OpenGL in a window with th ...Show All
SQL Server SSIS Dynamically Naming Output Files
I've just started using SQL Server 2005 Integration Services and I've come up against a situation where I need to name output files dynamically (i.e. based on a timestmap). Looking through this newsgroup, and other web resources it looks like my only option is to use a Script Task/ActiveX Script Task to rename the file after it has been created with a generic file name. I was wondering if there was a different approach or if there was a way to ...Show All
Visual Basic Framework 2 Trust
I have a VB.Net 2003 WinForms application that I want to port to VB.Net 2005 but I can’t figure out how to deploy it in Framework 2. It is a 3 rd party app that hooks to Microsoft Dynamics and in Framework 1.1 I used the xcopy method of demployment, i.e. the exe was copied to the Dynamics folder on the server and referenced on the Dynamics menu. Full Trust was set for the exe by using the Framework 1.1 wizard on the client computers that conn ...Show All
Windows Forms What is the best way to Load/Store Form Location and Size?
Hello, What is the best way to Load/Store Form Location and Size Also what it the best method for Load/Store of other elements on a form such as a MenuStrip and ToolStrip when that are placed in a ToolStripContainer Thank you for your help, Well, I am using ToolStripContainer, several objects of type ToolStrip and one MenuStrip/StatusStrip. Unfortunatly it seems ToolStripManager.Save() and ToolStripMa ...Show All
Visual Basic Cross thread call error
I am using VB.NET 2005 I have the following application structure: UI form, a middle layer and a low level layer. They are all running in the same thread. The low-level object creates a serial port (the .NET one): New SerialPort(port, 57600, Parity.None, 8, StopBits.One) and handle its events. Some of these event handlers throw events that are handled by the middle layer that in turn throw events that are handled by the UI. ...Show All
Visual Basic XML comments
My group is attempting to standardize on XML commenting for all of our classes and methods. We like the "Insert comments" option in VS 2005 but would like to add an additional tag <history> to the comments section. I know that we could probably do this manually each time we add a new class, but I would like to be able to have this new section come up automatically when we insert the comment. Is there a way to modify the XML co ...Show All
Visual Basic Save Multipage compressed TIFF file
Does anyone know how to save a compressed multipage TIFF file I have a collection of images and I need to save all of the images into a single multipage TIFF file and I want it compressed with the LZW compression format. If anyone knows how to do this, please share the wealth. This is the code I am currently using. It works fine but it does not compress the image. Dim img As Image img = New Bitmap("C:\My Files\Isbell Bankruptcy Pap ...Show All
.NET Development SessionState 2.0 Problem connecting to SQL Server
We are attempting to upgrade from 1.1 to 2.0. We are running SQL Server 2003, and it has SessionState 1.1 installed successfully. We installed 2.0 on the same server, but under a different database name. The userid and password that is used to connect to 1.1 was given dbowner permissions on the new database. When we attempt to use the application, we get the following error: Unable to use SQL Server because ASP.NET version 2.0 Session State is ...Show All
SQL Server Insert / Update Trigger based on a column's value
I am new to triggers and surely could use some help. I can create a trigger to insert related records based on the main tables ID and insert that value into other related tables fine... but... How do I create a trigger that can insert a record into one table for a columns given value and then insert a record into another table for another given value For instance: New row... Table1, Column1 (PK) has a value of 101 Table1, Column2 has a value of ...Show All
