selinux.es's Q&A profile
Smart Device Development HttpWebResponse close() hangs
There have been a few threads on this, but I can't find a resolution or workaround. The HttpWebResponse hangs on the third connection if you don't close it, or hangs on the first connection when you try to close it. public void Test() { HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse) request.GetResponse() ; Console.WriteLine("Trying to close stream"); response.Close(); Console.WriteLine("Stream Closed"); } if you comment out the Close(); you can get up to two connections. Anyone seen a workaround for this Thanks I think I found the answer. I saw this here: http://dotnetslackers.com/community/ ...Show All
Windows Forms disabled text color
I have a Panel that contains Labels, TextBoxes, and DateTimePickers. I would like to "Enabled = false" this Panel without changing the text color of its components to a lighter color. What is the best way to do this Thanks. Forgot a line of code, this is used to Grey background when disabled. protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); SolidBrush drawBrush = new SolidBrush( ForeColor ); //Use the ForeColor property // Draw string to screen. e.Graphics.DrawString( Text, Font, drawBrush, 0f, 0f ); //Use the Font property BackColor = Enabled Color .FromKnownColor( KnownColor .Window): Color .FromKnownColor( KnownColor .Control); } ...Show All
Visual Basic UDDI registration HELp Developers !
What shall I do to get registered to Microsoft Test UDDI Registry HELP Absolute HELP ! Cris JO91, I hope that this knowledge base article titled How to publish an XML Web service to an internal UDDI server by using Visual C# .NET 2003 will help you with your problem. http://support.microsoft.com/kb/833380/en-us ...Show All
SQL Server Error when trying to start Management Studio
Hello Guys, I am getting the following error when I try to start SQL 2005 Management Studio to manage my SQL Server : Cannot load the DLL xpstar.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.). Any ideas Thanks, Hello, Do you have a good idea instead of reinstall MS-SQL I've a lot of data in DB and always serve to customer. Can't reinstall as your suggess. Regards, XNOIE. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. New Tutorial - Off Screen Color Keyed Map
I have uploaded my latest XNA/GSE tutorial, this time in response to a forum post asking how to determine what color pixel is under the mouse cursor. The intent was to determine what country the player's mouse was over on a strategy-type game map. This tutorial explains how to use an off-screen color-coded map to make this process simple. The same technique can be used if you overlay a game interface onto your 2D/3D game by making a color-coded image of the interface to determine what controls the user is interacting with. Check out the Full Tutorial for details. ...Show All
Visual Studio Team System Vsts COnnection Problem
When i try to connect to TFS server it is not connecting instead i am getting "Client found response content type of 'text/html; charset = utf-8 ' , but expected 'text/xml'. The request failed with the error message:- The client found response content type message is normally from the TFS webservices blowing up when the client tries to access them. Try bringing up one of the webservices in an IE browser and see what it says, since it might give you a more descriptive error message. If this still doesn't help you, check out the event viewer-> application on the application tier server to see what has been logged. ...Show All
Visual Studio idb (VC++ Minimum Rebuild Dependency File) files
Hi, I've been working on Stub Cl.exe & Link.exe for VS2005 so I can use Visual Studio to Manage/Compile Applications that need to be compiled by 3rd Party Compilers & Linkers. However the problem I have is that in doing this the IDB file isn't created so Visual Studio doesn't know which file have been built and which need to be recompiled when doing a minimal rebuild. Does anyone know how I would go about modifing my stub app to create an IDB file to get arround this (I know the IDB file is a composite file with the same basic structure as a Program Database File, but I don't know what needs to go in each stream ,for VS build system). Any help would be apprecitated. We do not support this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ContentPipeline logging/debugging
XNA Brains; I created some code that converts a BSP file into an XNA-renderable map file. It was on the xbox360homebrew.com site. I had everything working in the code, and then I decided to port it over to the ContentPipeline. (I'm liking the pipeline more and more now). Long story short, I've run into a few nasty bugs introduced while trying to improve my code. I've found debugging to be a real pain because the only way I can simulate the entire Content Pipeline experience is to let GSE/XNA do the building of some actual content. I can eventually solve my bugs, but my real questions are: 1. What is the best way to debug custom Content Pipeline importers/processers/writers I am already using the three-project setup (One assembly o ...Show All
Software Development for Windows Vista Rulesets that define/build ASP.NET GUI
I have been playing around with Workflow for a few days now and really like what it provides so far. Right now I am trying to find out if I can build a ruleset that will add buttons, checkboxes, etc to my web page. I have seen the example with the RulesDrivenUI, but they are just enabling and disabling fields. Is it possible to add new controls to the webform through rulesets Thanks, Hi, You can always work around this by using Activator.CreateInstance or by calling your own helper methods to create pieces of UI. Thanks! ...Show All
.NET Development ignoring namespaces in xslt
Hi all, I have an xml file that I am trying to run through XSLT, but the namespace on some of my source objects are causing the xslt to not find the node. Can't I tell xslt to ignore the namespace xml file snippet: <Shipping xmlns="http://soa.channeladvisor.com/webservices/"> <NameTitle>Mr.</NameTitle> <FirstName>John</FirstName> <LastName>Doe</LastName> </Shipping> xslt snippet: <xsl:value-of select="ShippingInfo/NameTitle" /> If I delete the namespace from the Shipping node, my xslt works fine. But of course I don't have control over the xml to remove the namespace in production. Thanks! Thanks Martin, Had seen examples but nev ...Show All
Visual C# How to create a macro language
Hi I would like my application to have a macro language that among other things can execute small scripts at runtime to test certain conditions and set object attributes in my application. Any suggestions on how to achieve this Can C# be executed runtime or should I rely on the VB Script engine Any suggestions on how to approach this Rgds Bertrand There are basically two ways you can do this. Either you can create, compile, and run .NET code at runtime, or you can use an interpreted language. If you do the former, you'll have to package your runtime code into a static method or the like, compile it, load the resulting DLL into your application domain, and then use reflection to call t ...Show All
Visual Studio Team System Suggested Values
Hello, I'm trying to create a field "reported by" which shows a dropdown list of valid users, but also allows for free data entry. In other words I want to give the capability to choose from a predefined list of names, or enter a new one manually. Filling the "suggested values" list doesn't seem to show any drop down. Any idea on how this should be done Thanks - Simone Hi Simone, If you use suggested values you need to provide a list of values (maybe including a few groups of users) using the <LISTITEM> element, in order to get the drop down list. It should be identical to an <ALLOWEDVALUES> list except that it allows you to also input any string you like as well as showing the drop down ...Show All
Visual Studio 2008 (Pre-release) Error in svcutil
Hi all, I successfully created a simple service hosted in the managed application (console application) or can be called a self-hosted service. Now w hen i create the proxy for service using svcutil its says " Error: An unexpected error has occurred in the tool. Error: Method not found: 'System.Collections.Generic.Dictionary`2<System.String, System.ServiceModel.Channels.Binding> System.ServiceModel.Configuration.Metadata Element.LoadMetadataExchangeBindings()'. " And SDK is not installing in my machine. it shows "Debugger error" while installing. So, i just copied the files under Microsoft SDKs in c:\program files and pasted in my system's c:\program files. I came to know that there is programm ...Show All
Visual Basic how can i print all chart within single click on cmd button??
i am using ms access trying create a form thats 6 buttons for display each chart and one button to print them all in one go how can i do this been trying editing on visual basic editor for ms access any help thanks These forums are for VB.NET questions. If you using the Visual Basic in Access then you are using VisuaL Basic for Applications which is a very different product from VB.NET and there are some other locations where youy will probably get a quicker and better response to your VBA questions. Y ou may find more assistance in following which specifically deals with VBA development. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=74&SiteID=1 Or if you are using VBA from within on of th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Changes from Beta 2 to Release 1?
Just wondering where we can see a list of the changes that were made between these two releases Everything I've tested so far just needs a recompile, the Beta 2 solutions load fine, so that's good news. It would be good to have a list of new functionality if any. Bill ...Show All
