ScottyWakefield's Q&A profile
.NET Development SelectNode - create if does not exist
I am looking for a slick solution for this scenario: Input to a method should be an XmlDocument, an XPath expression and a string value. The inner text of the node found by the XPath expression should be set the the string value, if the node is not found it should be created first. The creation of the node is the biggest challenge here and I wonder if there is a good solution or functions which I am missing which can help me to accomplish this. Currently I put many restrictions on the XPath expression to make it work (no complicated queries: no back and forward, no search expressions). If the expression would be, e.g. /Root/Node1/Node2 I would split the expression by the slashes and navigate forward node by node and create one if it ...Show All
Visual Studio Team System deploy/schema compare scripts - Option for checking IF EXISTS
My scripts need to check for existence of tables, columns, etc. before creating or altering. My procs and functions need to check existence and drop if they do already exist then create. Is there any way to control script preferences to accomplish this Gert was, I believe, pointing out that the recommended model for how you work with Team Edition for Database Professionals is slightly different from the way you are using it. Your approach can work, if you put your scripts under the scripts folder, rather than treating them as database objects, but it's an alternate approach. The recommended approach is that your schema is represented as a set of objects that you work with as CREATE (or ALTER in some ...Show All
Visual Studio 2008 (Pre-release) Exception when swiching on the UserNameToken security
Hi Community, I have created a UserNameToken Service I get the following excetion. I have also included the config file snippet end of the post. I have created the token using makecert.exe utility. The another question is I used the sample UserNameToken and created this service. In the sample it wsHttpBinding, How do I change it to BasicHttpBinding Server Error in '/UserNameGetAddressService' Application. Thanks Todd, I resolved the problem of the private key as posted earlier. Now switching to wsHTTPBinding to BasicHTTPBinding gives me exception. Thanks, - Pankaj., ...Show All
Software Development for Windows Vista UISpy and IE6
I'm working on UIA specifically with web pages for AT purposes. I can access IE6 via UIA, and get the page contents. However if I try and view the same in UISpy, it shows no contents for the page, just a couple of nested document controls with nothing therein. Behaviour is identical with Firefox. If I use the control-mouse thing to try to select an element within the page, UISpy just reports that the hierarchy is broken. However my app detected no obvious problem iterating the entire document using treewalkers and/or FindAll. Help! Am I doing something silly with UISpy It would be v helpful if I could get it to work usefully, as there are some issues with the automation I still need to resolve. Stuart Am using XPSP2, VS2005, and the '6000 ...Show All
Visual Basic Windows Service using Web Service
I am having a heck of time debugging my Windows service that uses a web service. My Windows Service worked as expected if I was not calling the web service async methods, but the web service didn't do so well. My Windows service will work for a few minutes and then I get .NET Runtime 2.0 Error Reporting error. EventType clr20r3, P1 scanner.exe, P2 1.0.0.0, P3 44dea9cf, P4 system, P5 2.0.0.0, P6 4333ae87, P7 575, P8 1d, P9 n3ctrye2kn3c34sgl4zqyrbfte4m13nb, P10 NIL. I have tried attaching a debugger, but it failed because the process ended. I have placed try catch around everything that is dealing with the web service to try and get some kind of idea as to where the problem is. Should I only be using the async methods if I am expect ...Show All
Visual Studio Express Editions Help with tables and commands
I have created a sql database in vb2005ee this database allows me to add basic information about a person ( First and Last Name, Address etc…). The Database consist of three(3) tables one (1) lets me enter the persons info the second(2) lets me select the persons race, and the third (3) allows me to select the time of year (summer, winter, etc). I have linked all three(3) tables together so that when I create a user interface I can have all of the info show on one(1) form. I have used the data solutions detail mehod to drag and drop the contains of my person Info table into my form, so that most of my form objects would be created for me. Now I would like to add a table or excel like workspace to my form that will show m ...Show All
Software Development for Windows Vista State workflow bug
Can anyone else verify this bug https://connect.microsoft.com/wf/feedback/ViewFeedback.aspx FeedbackID=171215 It's very basic - a state workflow won't correctly handle HandleExternalEvent if it's in an EventDriven which is at 'workflow' level, rather than inside a specific state. It will handle HandleExternalEvents if they are inside a state & eventdriven though. I have an example file if anyone wishes to look. I think you means "whereas they expect CustomerHasPaidDebt .." I see what you mean - the interface and implementation event names have to match up. I had not noticed I'd changed it. Odd that the EDES does not throw a exception that could be handled.. how did you manage to spot that Many thanks e ...Show All
Visual C# How to check Windows start-up time?
Is any class, where I can get the system start-up time, or I have to use event logger Environment.TickCount Property The value of this property is derived from the system timer and is stored as a 32-bit signed integer. Consequently, if the system runs continuously, TickCount will increment from zero to Int32.MaxValue for approximately 24.9 days, then jump to Int32.MinValue , which is a negative number, then increment back to zero during the next 24.9 days. So, depending upon how accurate you need to be, you may prefer a call to GetTickCount64 . ...Show All
Internet Explorer Development RunOnceEx Broken w/IE7?
I was curious to find that our installer failed to update our BHO on systems with IE7. I trailed it down to the RunOnceEx keys (see kb 232509). The keys added by our installer were ignored. They work fine on systems without IE7. I moved the keys to RunOnce, and that solves the problem. I'd prefer to use the RunOnceEx, but I was mostly just wondering if this is a known problem, and whether it's by design. Thanks, - Henri Hi, Same probleme too... I suppose that Microsoft would release an update or a new release of ie7... i hope for it! ...Show All
Software Development for Windows Vista Hide the designer footer
Hello, In my custom designer I have only one View. I would like to hide the footer too. Overriding the Footer property of the custom designer I didn0t found the way. Any idea Thanks, Pierre ...Show All
Visual Studio 2008 (Pre-release) WPF control
Hi, 1)I need to develop a usercontrol in WPF and use in XBAP application. 2) I need to develop a custom control in WPF and use in XBAP application. Can anyone provide me Helloworld sample code for the above Thanks & Regards Vijaykishan please look at the wpf sdk .. also you could look for the same in any WPF book you can download code samples from charles petzolds book from http://www.microsoft.com/mspress/companion/0-7356-1957-3/ ...Show All
Visual Basic how to write an event on variable value change?
how to write an event on variable value change I have a class level variable declared and then it's value changed (it is changed from other class object) i need that it raise an event Is that possible and how it's done well that's good example about BW but still i need to figure out how to raise event on variable value update i Have found same question on google. Here is the link: http://director-online.com/forums/read.php 2,14108,16412 I need code sample of variable watcher in VB.NET ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SWM Model Component
Hi all! I just finished a simplified version of a swm loader component based on the classes in SpaceWars. I used X-Tatic's converter to transform the tiny.x model into swm http://astaroth.beatbuggy.net:8080/Downloads/x2swm_1_0_0_1.zip I sent the sources to www.xnaspot.com , hopefuly, they will put it online soon. P.S. the smaple also includes components for a grid, and for FPS (which can be set to be displayed in the titlebar, screen or both) Have Fun! Catalin Zima P.S. I also wait for XNAspot to post my sample of VertexTextureFetch in XNA ;) Well, I don't have it online... I sent them an email with the code... and wait for them to put it up. ...Show All
Visual Studio 2008 (Pre-release) What is a sandbox?
Hi all: I want to connect my Xbap page with SQL database using SQL data Adapter and DataSet I try to do this but there is an error this error is: Startup URI: D:\walaa Work\XEmployee\XEmployee\bin\Debug\XEmployee.xbap Application Identity: file:///D:/walaa%20Work/XEmployee/XEmployee/bin/Debug/XEmployee.xbap#XEmployee.application , Version=1.0.0.0, Culture=neutral, PublicKeyToken=6b995c520c9daad7, processorArchitecture=msil/XEmployee.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6b995c520c9daad7, processorArchitecture=msil, type=win32 System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e ...Show All
Visual C++ Installing Windows XP on Windows 95
I'm trying to install Windows XP on my other computer which has Windows 95. It won't download and I don't know why. I get a message that says it could not be loaded or is corrupt. Is there anything that I can do It's a Dell Dimmension XPS P100c Intel Pentium Prossesor, It has 32.0MB of Ram, the System Resource is 88% free, 32-bit for File System and Virtual Memory, the Disk compression is not installed and no PCMCIA sockets installed. Firstly you have asked in the complete wrong place. This is a section on the forum for people who program in a language called C++ Secondly it looks like your pc falls somewhat short of the minimum specification of windows xp: http://www.microsoft.com/win ...Show All
