Gargamel's Q&A profile
Visual C# upper case
What is wrong with this statment. I am trying to do upper case letter = string .ToUpper(letter); I am guessing that letter is defined as a char in which case you need to use char.ToUpper(letter). In the future when something isn't working and you're seeking help it's always helpful to provide the exact error message you are gettingg and when you are getting it, e.g. at runtime or compile time. It helps you get help faster. Thanks. Hope this helps. ...Show All
Visual Studio 2008 (Pre-release) Events - How to get hold of 'em
Hi all I am currently developing a quite large set of WCF services. Each service has to be used by multiple customers, so I have to identify the customer somehow. I figured out to get the "customerid" from my client by adding a behaviour. A the server side of the service I want to put this "customerid" into some sort of context that lives from the point where my service method starts until my service method ends. Can I hook into the WCF framework (hosted on IIS) somehow to 1) Get hold of a context (is such one exists) or 2) Get notified of a service method being called. I am thinking in terms of Channel events, IxxxxBehav ...Show All
.NET Development SSLStream with TLS_RSA_WITH_NULL_SHA cipher.
Hi, I need to do mutual TLS authentication with a server that is configured with the NULL-SHA cipher. When I use the SSLStream class, i do not see the NULL cipher in the shared list during negociation. If i use sChannel, i get the same result, unless i specify "dwMinimumCipherStrength = -1". Is there a way to initialize the client SSLStream to share the NULL cipher Thanks, A developer on our team (Larry), pointed out the following to me: dwMinimunCipherStrength and dwMaximumCipherStrength are members of the SCHANNEL_CRED struct passed to the call to AcquireCredentialsHandle in schannel. ...Show All
Visual Studio Team System Build Automation: Public and Private Project Components
Scenario * Our website is currently hosted externally. * We host (internally) a portal that our members can log into to access a number of business related services. * Other organizations with similar business interests have bought into our portal; their version of the portal has the same feature set but a different feel (their own logo, colors, etc.). To accomplish this we simply have replicated the portal and modified images, text, etc. where required. * Along with migrating to Visual Studio 2005, Team Foundation Server, etc. we will be bringing our website in-house and integrating it with our portal. For obvious reasons, we ...Show All
Visual Studio Extending Class Designer
Hello, I also want to extend class designer with my own class template that have more properties and attributes. I tried with the PowerToys, but there is no help how to create new class template and add it into Toolbox. Thanks, This feature isn't supported in the Class Designer today but we'll keep it in mind for future versions. Thanks for the suggestion! ...Show All
.NET Development Access to path xxx denied when uploading a file using c#
Hi I have a file upload app written in c#. The app runs on IIS on a Windows 2003 Server OS. I want the app to upload the file onto the server (The app and the server are on the same machine). This code has been working fine for a long time running on Windows Server 2000, and Windows XP Professional. Now when I moved onto Windows Server 2003, it stopped working. I have given ASPNET account full access to the folder on the server, and it still gives this error. Is this a bug in 2003, and can anybody assist me Thanks Shane Most probably this is a permissions issue. Please n ...Show All
Visual Basic VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler.
VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler. I have a fairly large project that I migrated from VB6 to VS2005. This is the RTM version of VS2005. There are many issues that I need to fix up in the code, but every time I change one line of code, my system runs 100% CPU for 30 seconds. This is not even close to usable. You might think I have a slow machine, but I am running this in a P4 3.5 GHZ with 1GB of RAM, and a SATA 150 hard drive. I will be forced to abandon use of VS 2005 for this project unless I can find a work around for this issue. Please help! ...Show All
Windows Forms Terrarium Help.
Hi, I need help. I am a newbe to terrarium and it looks interesting. But All what I can read on the internet concerning Terrarium looks a long time ago. No recent post I mean, or at the farm... or I look at the wrong place. (Where is everybody ) I see 10 peers, All LED's are green, but I never receive a creature from other peers. I can't introduce my own creature, I get a message "Terrarium is experience some server problems. Please try again later.". I connect to http://www.terrariumgame.net/Terrarium, it is the only server I know. Are their other servers ...Show All
Visual Studio PLK failure
Hi, I have 2 computers, one with W2000+sp4 - En, the other with XP+SP2- DE. I can not load packages with PLK. I mean, my package (for wich I have a PLK) or packages from Samples (Package solution, or fpckg example) does not load at all. I'm using : Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional In debug mode ( /noVSIP /log) I have the output : <entry> <record>71</record> <time>2006/01/18 05:11:08.736</time> <type>Warning</type> <source>Microsoft Visual Studio Appid Stu ...Show All
Visual C# Mixing inherited classes and interfaces
Hello, a former c++ dev in my team is a bit worried by the following code which implies inheriting interfaces, and having inheriting implementations as well. public interface IMyInterface { /* */ } public interface IMyChildInterface : IMyInterface { /* */ } public class MyImpl : IMyInterface { /* */ } public class MyChildImpl : MyImpl, IMyChildInterface { /* */ } Does anyone see any potential issue with manipulating the objects through the interfaces here regards Thibaut That's fine. MyChildImpl won't be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Early Out
Hi. I tried at the "regular" DirectX forums but since there was no answers or even faint ideas I am gonna post my question here. I have a fairly simple shader which loops over a numer of calculations. With ps_3_0 can we exit an loop and the fragment program early on if a certain condition is obtained for( ... ){ if( b > constant ) return Output; } } return Output; The compiler tells me that it doesnt support asymetric returns. For reference I will post a little more of the shader which causes the compiler to complain: for ( int i=0; (i<iStepsViewRay); i++){   ...Show All
Windows Forms Setup Project Startup Registry Key
How do you get the value for the project output so that you have the full path for placing startup shortcuts under HKLM/Software/Microsoft/Windows/CurrentVersion/Run I want to add a shortcut to an my application in the registry so that it will startup for each user, but will not have an icon in the statup folder. I can't seem to figure out what value to put into the Value of the reg key since I do not know that path ahead of time. any help is appreciated. Thanks... I have created an MSI within Visual Studio. This allows me to create a registry entry, but does not allow me to put a variable in ...Show All
Visual Studio Team System Want to rename an existing WorkItem
I've created a new work item in a project using the witimport.exe utilitie. I now want to change the name of the work item and have been unable to find and documentation or tools to do this. --JonPL Understand, can't have everything all at once. I have played around with the backend and was able to eaisly rename it and have it work fine on one TFS server but have some issues with another server. The server I was having issue with seemed to be a caching issue. Not sure how to clear the cache. Thanks for the response. -- JonPL ...Show All
SQL Server How to pass .net application's parameter to a TRIGGER?
How can i pass my .net application's Userid to the trigger I have a audit trail trigger on myTable. I dont know how to pass the userid (not the sql server user) to the trigger when a user delete a record from the application(.NET Application). The trigger saves the modifications on the table including the userid of one who does the changes. There is no way to send a value to a trigger directly other than in the inserted table by adding a column to the table. This is proably your best way to do it anyhow, to add the userid to the table of the person who last updated the row, then you will have it for the delete. There i ...Show All
Visual Basic Convert Printer Setup Dialog in VB6 to VB.NET 2005
Hi all, I have codes below in VB6. The code show the Print Setup Dialog. Private Sub mnuPrintSetup_Click() On Error Resume Next cdlDialog.flags = cdlPDReturnDefault ' cdlDialog is CommonDialog cdlDialog.flags = cdlPDPrintSetup cdlDialog.ShowPrinter End Sub anyone can help me convert this code to VB.NET 2005 thanks Take a look at the printsettings class http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemDrawingPrintingPrinterSettingsClassTopic.asp ...Show All
