Bruce's Q&A profile
Visual FoxPro hiding Logon information....
I have an online MySql Database that I will be connecting to in a distributed app. The user will Log in and all remote views will be filtered based on the userid. I have set up a user for my app that can access ALL the data. I can’t figure out how to hide the user name and password in the connection object in the DBC. If I use dbsetprop it actually updates the DBC Connection. Anyone with access to the dbc can access all the data! I want specify the User and password at runtime and keep it hidden in a compiled EXE. Can this be Done How I know I can do it with ADO but I prefer to use remote Views. ...Show All
Visual C# How to Clear TreeView nodes?
Hi. In my application, I run a BackgroundWorker to load content from the net. In BackgroundWorkers RunWorderCompleted event handler I want to populate a treeview based on the received content. But first I need to clear the whole treeview. When I try to clear the nodes using myTreeView.Nodes.Clear(), a TargetInvocationException is thrown. I never saw that before, so I think that background worker is to blame. Any suggestions how to clear the TreeView If one thread is trying to add nodes while another is trying to remove them, then bad things will happen, exactly the type you are seeing. Is this what's happen ...Show All
Visual C++ memory could not be wirtten when i click vc++ released exe
<santosh.s@discussions.microsoft.com> wrote in message news:f6801a8a-42e6-4749-9f37-75d4f8df43b2@discussions.microsoft.com > this is santosh vc++ s/w developer have a pblm with released > exe. when i click on exe so it giving msg error memory could not > "wirtten" > but debug exe is working fine for same project Build a release build with debug info included, debug it. To turn on debug info, go to Project Properties, make sure the Configuration drop-down in the top left corner shows Release. Then set the following ...Show All
Visual Studio Team System Error installing TFS final release
This error occurs during health check, "The SQL Server 2005 KB Update is not installed on this computer" We have SQL 2005 Standard installed....is there an update any ideas -Jim First, I highly recommend you go though the check list in the install guide. I normally skip these but in this case there are a large number of gotcha's that the install guide walks you though (this is one of them). You can download the latest version from of the guide http://go.microsoft.com/fwlink/ LinkId=40042 . (NOTE: make sure you go to the properties of the CHM after you download it and click the Unblo ...Show All
Visual Studio Express Editions Best way to repeat tasks on a regular time interval.
Using VB.NET 2005 I have a hardware device the constantly sending data to the PC serial port. I was wondering what the best way to poll the serial port for data would be. I was thinking of two different approaches. Any pros/cons or another suggested method would be appreciated. I'm kind of thinking that Option #2 is better programming practice. I'm just not sure where to start. 1) Put a timer on the form. Set the timer to trigger every 10 minutes. When triggered, the code inside the timer reads data from the serial port. This is an interupt of sorts 2) Have a seperate thread that runs in parallel with the main program look. Inside this ...Show All
Visual Studio Team System I get the following error while loading my rule in FxCop.
I've written several custom FxCop rules that I want to use with VS2005's Code Analysis engine, but I can't find any way to add-in my custom rules assembly. I know Beta 2 doesn't have all the documentation yet, but can someone tell me how to build a custom rules assembly for VS2005 and get it installed for use in a project Thanks! Now I'm not sure if this has changed in Beta 2 but in the CTP versions, you can change the rule assemblies by adding an MSBuild property called FxCopRuleAssemblies. Or if you want to change the rule assemblies for the entire system checkout the following file: C:\Program F ...Show All
Visual Studio Console App blows up when I try to publish it. (GenerateApplicationManifest path too long)
My console app was working perfectly in debug mode through the IDE, but when I went to publish it for deployment on the server, out of nowhere I got 2 messages and an error.I am using DAAB 2, and I have the common, data, data.configuration DLLs referenced. I have another app which is a VSTO app, which after much effort works fine. I compared my config files and they virtually identical, so why am I getting the messages on 1 and not the other. (Deployment is a real SOB). Anyway, I I got 2 messages and an error as follows. Any ideas would be extremely helpful. I have also posted the top of my app.config file. Message 1 Could not find ...Show All
.NET Development Just got curious about why NGEN must put assemblies in GAC...
I had expected that NGEN would generate a native assembly and I can pass it around. I am quite surprised that NGEN only put the result native image in GAC. Anyone can tell me a few reasons of this design This is a great question! There are two issues here: 1) Why don't we allow you to pass native images around 2) Why NGen images are stored in the GAC Shipping NGen images is a feature that we looked at. The difficulty here is that NGen images depend on the specific environment that they were compiled in (version of the runtime, version of dependencies, publisher policy, security state, etc.). This makes NGen images not ...Show All
.NET Development New Cryptographic features of .Net 2.0
I'm looking for code about the new X509Certitficate2 class, and how to manage digital signatures to be compatible with CAPICOM thx rido For the beta release of the documentation, X509Certificate2 was called X509CertificateEX. You can find the Beta docs here: http://msdn2.microsoft.com/library/ms148409(en-us,vs.80).aspx . Stephen ...Show All
Visual Studio 2008 (Pre-release) dragging control will immediately crash visual studio
Problem repro: create a new windows application fx project, create button on the grid, drag it to another location. After about 0.5 seconds visual studio throws an error and asks me if I want to debug. If i choose yes, I can get to this call stack: > ntdll.dll!7c901230() [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] milcore.dll!53216a95() milcore.dll!5316ba53() milcore.dll!530d9318() milcore.dll!530d5b1b() milcore.dll!530d5b38() milcore.dll!530d93c2() milcore.dll!530d9204() milcore.dll!530d9464() milcore.dll!530d94b3() milcore.dll!530d57be() milcore.dll!530d57c8() milcore.dl ...Show All
SQL Server Dynamic Scripts
I've found that SSIS does not work well with running small dynamic scripts ... For example, I have scripts that need be created via dynamic SQL. I want the dynamic SQL to be created using variables in SSIS. The ways around this are to create small temporary stored procedures that I can create in the SSIS package at run time that have dynamic SQL in it - and execute it with the variables as my parameters. Does anybody else do this, or have a better way of doing it I have just been creating stored procs and passing the parameters into them. This has been the easiest solution for me. ...Show All
Visual Studio Team System Fxcop Custom Rule to check for Custom Controls
Hi, In my project we are using custom controls instead of normal ASP.NET controls. We have build an architecture on .NET and are using its controls. Example of custom control used in prj: xyz. ABC.WEB.CONTROLS.Label Now I need to write a custom rule to check for naming conventions like label name should start with lbl. Can anyone please help me out with code I hope the poblem is clear ..... in case of any further clarifications needed please let me know The FAQ on custom rules development has some useful pointers to sample code. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=66507&SiteID=1 ...Show All
Windows Live Developer Forums I can send files but I can't receive them. Whats wrong please?
I have my firewall disabled and still cannot receive files from my friend. But I can send him. Funny enough, I received files before 3 times. What is going on Please leave a suggestion. Kes, If you are running MSN Messenger 7.0 or later, go to Tools/Options/Connection and see if any problems are reported. if they are, you can run the troubleshooter to get info on what you need to do to fix the problem. -Scott ...Show All
Visual Studio Unable to debug System.Net.DigestClient throws an exception
I converted a VS2003 application to a VS2005 application. I have no errors and no warnings when I compile. When I attempt to run I get the error: Unable to start debugging on the web server. The type initializer for 'System.Net.DigestClinet' threw an exception. Any thoughts on how to fix this I am assuming this is an IIS web application. Is this correct Do you have the same problem for all web applications Do you have the same problem on all computers ...Show All
.NET Development Multiple Attributes
Is this a bug in .NET or (more likely) a bug in my code I have an element as follows: <Checkbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Location="1,55" MinimumSize="22,22" Name="ShowPW_Box" PackSize="a" PackSizeProp="0002/0001,xxxx/xxxx" ScrollExtent="168,22" Size="168,22" Style="/CommonElements.Checkbox.data.style" OnPress="Parent.Parent.WindowPage.Password.Password=(!Parent.Parent.WindowPage.Password.Password)" Activated="false" Checked="false">Show Password</Checkbox> My code is: xpath = "//Checkbox[@Name='ShowPW_Box']/@Activated|@Checked" ; XmlNodeList show_pw = element.SelectNodes(xpath); show_pw.Count is r ...Show All
