Beth31's Q&A profile
.NET Development XPath - Get node
Hi I have this XML structure: <Doc> <Values> <value a="100" b="131" c="20" /> <value a="100" b="130" c="20" /> <value a="23" b="400" c="20" /> <value a="2" b="1" c="110" /> <value a="2" b="1" c="100" /> <value a="0" b="30" c="2" /> </Values> </Doc> As you see the nodes are sorted in descending order by first "a", then "b" and last "c". I now want to insert <value a="100" b="10" c="11" />. This new node should be inserted a ...Show All
Software Development for Windows Vista failed to use web service from windows form inside web app
Hi, I have encountered this problem with Vista ultimate and IE7 in protected mode. I have a web application which exposes a windows form (written in .net 2.0) through an object element in a web app (generated using javascript rather than a html tag). The windows form is a web service client. When the web service is called the user is asked to authorise the use of CSC.exe (twice); immediately after this an error message is presented which says that 2 dlls can not be found. Consequently the windows component is unable to display data for the user and the application fails on vista/ie7 with protected mode. If protected mode is turned off for the web site then this problem does not occurr. The stack trace for the error is below. Q ...Show All
Microsoft ISV Community Center Forums Help with looping process excel macro
I have a spread sheet with personal records. so for example row 1 is name address and that kind of information. Row 2 is benefit information. Row 3 is spouse benefit information. The sheet contains thousands of people. What I am trying to do is insert headers for each individual so that the sheet is easy to read. Each line begins with a code. So column A is always 01, 02, 03, or 04. I am trying to make a macro that will recognize what is in column A, insert a line and then fill each row with the proper header. I have some code but it will only insert a header line over the first "02" row. I'm not sure why it won't loop through the whole spread sheet. Can you help Sub test() Dim Counter As Integer For Counter = Cel ...Show All
Visual Studio Team System How can you specify the workspace in TF Checkin
Hi, I posted a similar thread about this. But now that i have done more experimenting, i know exactly what to ask: I try to do a simple recursive check in using tf.exe. However, it keeps telling me that i was unable to determine the workspace. Well, no worries, i'll just specify the workspace using the ./workspace parameter like in the checkout command but NO, the parameter does'nt seem to exist for checkin... The funny thing is, the command works if i do not specify the /recursive parameter... For example: This work: tf checkin /noprompt /override:"Overriden from MSBUILD" "C:\myfiles\*" But not this: tf checkin /noprompt /recursive /override:"Overriden from MSBUILD" "C:\myfiles\*& ...Show All
Visual Studio HttpWebRequest gives error when run inside vs2005. Works from Windows
I have a Windows XP x64 workstation with a fairly clean install of Visual Studio 2005. I have a problem sending requests using WebRequest/HttpWebRequest. I get this exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation encountered a dead network at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exceptio ...Show All
Visual C++ Cannot Get Proper Build of Petzold's DLL Sample Code
I am attempting to build Charles Petzold's sample code for DLLs. The code in particular is the EdrLib code. The problem I am having is that a DLL is built but does not work. It is not even close to what appears to be the proper size, i.e. my debug build is 44K while the debug build supplied with Petzold's code is 197K. On further examination using the test harness I built using Petzold's code, EdrTest, it works with Petzold's dll but not with mine. The working environment is Visual Studio Professional 2005 on a Win2K box with the Windows 2003 Server SDK. Am I missing something critical. The project was set up as a Win32 projec, DLL, empty project. Thanks in advance for your assistance. The problem has been found. In the c ...Show All
SQL Server How to supply config file to Exec Package Task?
How do I do this Or is there any way to bundle Package with Config file so that they both are deployed in MSDB Fahad349 wrote: SQL Based configurations Whats that Any page to read about it There are plenty of resources on this forum, BOL, and other places. This should get your started: http://msdn2.microsoft.com/en-us/library/ms141682.aspx ...Show All
Microsoft ISV Community Center Forums Deleting tabs when a cell is emptied
Hello everyone, I have an excel macro where, whenever i put a name into a cell in the range B43 to B77 on the very first worksheet, a new worksheet is created that has the name of whatever is put into the cell. what i would like to be able to do is to create a macro that would, whenever one of the cells is cleared, to delete that specific worksheet that was created when the name was entered. any help is appreciated :D Nick This should be fairly easy to do. Since you've already got code that creates a sheet when a value is added within that range, I'd recommend creating a Collection which contains Items equal to the name of the sheet (the value of the cell) with Keys equal to Range.Address of th ...Show All
.NET Development Dataset Delete Error.
Hello, I recieve this error when I try to delete from the datagrid, what is going on! I asumed I had it correct, my sql looked and tested fine, though when it came to run... well. Im starting to asume my VS.NET is not working correctly. Might not be allowing to update changes to the code etc. http://www.ansego.com/ansego1.zip you can download this app, just basic test for me to get fimilar with ASP.NET. Please send back the info you come up with and test it as well please. If you get it working then let me know how and why... Keep hitting my head against the wall on this simple task. Thank you. Server Error in '/Ansego1' Application. Hi, The right forum for this question is http://forums.asp.net The answer: ...Show All
SQL Server migration tips
is there any materials online for migrating to 2005 rs. is it necessary to migrate the reportserver db to 2005 also Hey joeydj, nice to see you here. You might want to take the MOC 7031. You can also check out http://www.microsoft.com/technet/prodtechnol/sql/2005/technologies/rptsvcs.mspx for other resources which might be of use to you ...Show All
Windows Forms How to make an outlook style application
Hello, I want to make a simple thing. Create one bar of menus in the left like Outlook and when I click in something then open that option in the right, I guess I have to use the splitcontainer control and make independent forms for each option Please guide me as a newbie. Hi Luis, I'm not sure whether there is a control in vs2005 that can accomplish this task. But you can write a custom control to do it. There is a book "Sams - .NET Windows Forms Custom Controls" that focuses on this part, and there is an example about the outlook bar in the book. Besides, here is an outlook bar implementation which will help you a lot. ...Show All
.NET Development OleDbDataAdapter, Fill, Update, CommandBuilder and PrimaryKeys
Hi again, I used to change my database-tables using an OleDbDataAdapter, filling a DataTable with the table-data, change it and call Update again to save the changes. This was easily possible with the help of a CommandBuilder. No I've got the problem that a table has no primarykey and i can't define it because there are no (not even mutliple-column) unique entries. m_dbAdptrRemedies = new OleDbDataAdapter("","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename); m_dbAdptrRemedies.SelectCommand.CommandText ="SELECT * FROM tMittelListe"; new OleDbCommandBuilder(m_dbAdptrRemedies); So how do i update my changes in the DataTable to the database ...Show All
Visual Studio 2008 (Pre-release) Certificate usage
I am trying to use a certificate in my IIS hosted service. This works fine on my local box, but when I deploy to production environment, I get the following exception when trying to run the service. For my local box I have downloaded a program that creates a self install certificate for testing, but I cannot do this in the production environment. We already have a certificate that we use for SSL. The thumbprint value that I am looking for is the value of our SSL certificate. This is new to me, so any help will be greatly appreciated. Here is the exception: Keyset does not exist, which is a Cryptographic exception. And an Argument Exception: The certificate 'CN=legacy.ci.okc, OU=IT, O=City of Oklahoma City, L=Oklahoma City ...Show All
Windows Forms How to connect to secure database
-------------------------------------------------------------------------------------- Development Environment: Visual Studio 2005 Language: Visual Basic .NET Issue: Secure and connect to Access database -------------------------------------------------------------------------------------- Details: I set up a test application. For that, I created a UserInfo.mdb database and used the User-Level Security Wizard to create permissions, userids, and passwords for connecting to the database. When I use the connection string: Dim strConn as oledbConnection = New oledbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\access_db\UserInfo.mdb;UserID=""User1"";Password=""Password""") it gives ...Show All
Visual Basic Validating Textbox
Hello. A question please. In a version of VB that I don't remember exactly, a textbox had a property called "numeric" which avoids characters. In VB2005 is there something like this Thanks... Sounds like the NumberBox user control is just what you need: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1215559&SiteID=1 ...Show All
