pd42's Q&A profile
.NET Development XmlException: "Name cannot begin with the '.' character"
Hello, My application loads XML file and updates its content. The steps are: 1. XmlDocument m_doc = new XmlDocument(); 2. m_doc.Load("c:\\inetpub\\wwwroot\\folder\\data.config"); 3. making updates to the file attributes 4. XmlTextWriter wrtr = new XmlTextWriter(filePath, Encoding.Unicode); 5. this.m_doc.WriteTo(wrtr); 6. wrtr.Flush(); 7. wrtr.Close(); After performing these stemps once, and trying to load again the file (step ...Show All
Visual Studio Team System GroupsandPermissions - I could have sworn
I cold have sworn I have used a command line command to upload GroupsandPermissions.xml up to existing Team Projects. For the life of me I cannot find it or recall it or my notes on it. Can anyone help me out. Thanks, The closest that I can think of is tfssecurity.exe. It is located in < drive >:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools. ...Show All
.NET Development POST fails on larger messages/slower connection
I have a webservice receiving encoded strings of a size usually between 1k and 20MB which will be sent by a special application. When the application is started, it sends about 1000 of these strings to to the server, checking response and sending again, if necessary. Im using Framework 1.1, no additional stuff (like WSE) installed. Only known users are allowed to access the webservice. The server is configured to handle these bigger requests by ...Show All
Visual Studio How can I setup to see more projects in Visual Studio 2003?
By default, Visual Studio 2003 provides 4 recent projects on the start up form. How can setup to see more projects like last 15 projects Thanks, Jil. ...Show All
Visual Basic Inputting Data in MS Access with vb.net
Using vb.net express edition, I want the end user to input data in a textbox control which then would be inputted into MS Access database and then click a button to see a summary using dataGridView control. What is the best way to begin programming this. They are available now. Thank you for your help. I will read through the documents ...Show All
.NET Development Exception while connecting to server
Hi, I created a remoting server and client application using c#. I have used events ( i don't know whether if any drawback is there doing so ). Everything was working fine locally, but when i put the remote server in another machine, i get the following error: "A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel. The reason for using events ...Show All
Visual Basic How do I run a command line EXE from VB.NET?
I want to run the following command line program from VB.NET: rotor95.exe -d -k "password" -i "C:\FileLocation" -o "C:\FileLocation" The reason for this is that I don't want my users to have to drop out to a command line prompt in order to run a tiny program for 3 seconds. Typing in a 50 - 75 character file path twice isn't any fun either. I tried using tooltask as discussed in the MSDN2 help but it appears ...Show All
Visual Studio 2008 (Pre-release) How do I connect up Events to my WPF Controls
I am using Orcas: Orcas Community Tech preview - WinFXDev Tools 1.0 which i am running on Vista Beta 2 (Build 5384) But I cannot attach my WPF controls to any Event, nor by Doubling clicking the control do I get the event code insert like I used to get with Windows Forms. How do you connect Controls to your event code in Orcas Jules This feature is not implemented yet. Right now the easiest way to hoo ...Show All
.NET Development using()
hi, What is the best way to rewrite this method with the keyword using() I know I can use it for the connection and command. public int EmployeeDetailsAdd( string strFirstName, string strLastName, string strTitle, DateTime dtBirthDate, string strNotes) { string strSQL = "usp_EmployeeDetailsAdd"; string strConn = clsDataHandler.GetConnectionString; try { SqlConnection oCon = new SqlConnectio ...Show All
Visual Studio Express Editions MFC with VC ++ express ?
Hello, I try to compile the sample regmaid in VC ++ 2005. When linking , I have the error "mfc42d.lib not found" There is only the 64 bits version in the SDK. Where to find MFC dll and LIB Thanks for answer , ToutEnMasm 1. VC++ Express doen't contain the MFC! You need at least VS-Standard 2. The SDK contains only a 64bit version of the MFC. VC++ Express doesn't sup ...Show All
SQL Server Upgrade to SP1 breaks Integration Services.
I upgraded SQL Server 2005 Standard to Service Pack 1. The upgrade reported failure on Integration Services and now the service will not start! Please see this KB article which describe this in detail http://support.microsoft.com/kb/918644 ...Show All
Windows Forms Flash8.ocx does not work in VS2005 C#
Product Versions: MS .NET Framework Version 2.0.50727 MSVS2005 Version 8.0.50727.42 Macromedia Flash Player 8.0 r22 8.0.22.0 Definitions: FlashObj axShockwaveFlashObjects (flash8.ocx) Visual Studio Version: vs2003, vs2005 Language: C# This FlashObj works perfectly in vs2003 Fact/Symptoms Fail 1 1. I put the FlashObj on the Toolbox using "Choose Items" 2. With a new windows app I attempt to place the FlashObj on the form ...Show All
Visual Studio Team System Runtime context different when running through TestMgr and running as an application?
I am running VS.NET2005 (Version 8.0.50727.42) and are having some problems with a complex test I have that uses a 3rd party assembly. The code is to complex to produce a simple example to show here, but what happens is that when I run the testmethod from a new projects Main method it runs fine, but when I run the same testmethod as a test through TestManager it will fail (assert on an object of the 3rd party assembly that is empty which it s ...Show All
Visual C++ CFrameWnd::OnSetPreviewMode ASSERTs in VC 2005 but not VC 6.0
I have a VC++ 6.0 MDI project that uses a class derived from CPreviewView to provide some mildly enhanced Print Preview functions. The class is invoked according to the MSDN documentation by calling DoPrintPreview. In Visual Studio 2005 the program asserts in Debug mode at the last line of this fragment from winfrm.cpp: void CFrameWnd::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState* pState) { ...etc... if (bPreview) { // Ente ...Show All
Visual Basic RichTextBox Caret
How would I go about changing the actual shape of the RichTextBox caret I have tried using the CreateCaret and ShowCaret API calls, but they only seem to work with normal text boxes. Is there any way to modify them so they work with RichTextBoxes I got the caret to change by calling CreateCaret/ShowCaret but it immediately returns to a regular caret once you click or type in the control. Looks to me like ...Show All
