TjMulder's Q&A profile
Visual Studio Team System TeamFoundationServer.EnsureAuthenticated() appears to hang in ASP.NET app
I have the following code in the code-behind C# file of an ASP.NET application: TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(m_strTeamSystemServer, new UICredentialsProvider(); tfs.EnsureAuthenticated(); Works fine when in my development environment inside the Visual Studio solution. Well, the connection to tfs works anyway. I don't get prompted for credentials. The problem is when I copy the website to my deployment environment. When tfs.EnsureAuthenticated(); is called, the site just "hangs". It sits there in a loading state (this code is called in my Page_Load) forever, or at least until I got tired of waiting (5 minutes or so). Any ideas what could be the problem here Why don't I get a crede ...Show All
Smart Device Development Installation of NetCFv2.wce5.amr4i.cab was unsuccessful
I am using palm treo 750. My client has the same. I could drop cab file and install successfully, but when my client tried the same on an cab file he is getting error, for cf 2 example: Installation of NetCFv2.wce5.amr4i.cab was unsuccessful Any thing blocking the cab install I don't see the same issue on my palm, may be i used to deploy from VS 2005 directly in the begining and then to try with cabs i uninstalled everything from device add/remove programs and tested by installing through only cab file which never gave me such error. Appreciate if you comment or suggest anything on this matter. Thanks. one of the mvp suggested to get .netcf2 sp1 in some other post when some one complained ...Show All
Visual C# RSACryptoServiceProvider
me not quite understand with how RSA work, and me use RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024); to generate the keypair and encrypt/decrypt a short message. just wondering why each time me generate a new keypair, but it throw a same "exponent" for me which are "AQAB" how to make it generate differ exponent each time Here are the articles that will cover you question: Public Key RSA Encryption in C# .NET Public Key Cryptography Technology Sample Cryptography Overview ...Show All
Visual Studio Export Crystal Reports' report to Excel ONLY DATA format
Hi, When exporting directly from Crystal Reports, there is an option to export to Excel without header, footer, ect... (data only export). How do I do that via VB.NET I am using ReportDocument to open my report. Thanks ...Show All
Windows Forms Handling different iexplore processes
Hi, Suppose I have 3 iexplore process running. (a,b and c) I want that my code should identify the ‘b’ iexplore process and open one url there. (but not in other two iexplore process) At present I can identify the process but couldnot run the url there so that the page opens in that process window only. Any help I am using the following code int i=0,iflag=0,pid=-1; // iflag=0 means no B window is open Process[] p; p=Process.GetProcesses(); for (i=0;i<=p.Length-1 ;i++) { string s=p .ProcessName; if (p .ProcessName =="iexplore") { ...Show All
Software Development for Windows Vista Synchronized "raise event" for a state worfklow
I have a state activity with a self implemented generic event service to raise a event for a custom IEventActivity within the state activity. On state initialization there is an activity which sets the possible responsibles for the state. After that a GenericEventService.RaiseEvent should be possible for the evaluated responsibles. That means the RaiseEvent method has to wait till the state initialization has completed and the IEventActivity.Subscribe method is called to enqueue the item. I have used the WorkflowIdle-event to perform the synchronisation, but this event is not called everytime( ) I assumed that the following events are raised on loading an instance: 1) loaded 2) idled (but it's only called if an execution is already q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Keys enum, Unicode
It seems that the keys enum doesnt correspond entirely to unicode, for instance OemTilde casts to 0x00C0 where as the unicode tilde is 0x007E What is the Keys enum based on I was guessing US keyboard layout, in fact, im finding it very confusing! heres another one, my hash key corresponds to Keys.End (int)'#' 0x00000023 (Keys)0x00000023 End and another for / (int)'/' 0x0000002f (Keys)0x0000002f Help I am trying to write an ingame Console, and its not as easy as just converting Keys to an integer or character I've got the same problem, unfortunatly I've met with limited sucess and I'm still hoping someone out there has a better solution than just plain hardc ...Show All
Visual Basic Shutting off a remote machine
Hi guys, I came across some code that suggested that in order to shut down a remote system, the following code can be used "shutdown -s -f -m \\Systemname " But when I tried it, it showed that the network path was not found. How do I find the network path The remote system I used is on my home network. Just Mshome. No particular network as such. So, where is the error How can I find the system path and identify the remote system that I want Thanks a lot. This is how I usually find info like that. Recommended. ...Show All
SQL Server sp_helprotect error if no matching rows
Why does sp_helprotect throw an error if there are no special security permissions for a specified @username Why not simply return a blank resultset This makes the procedure a hassle to use when trying to capture results into a table as part of another stored procedure (use it for auditing). [Edited]The same problem occurs when I execute xp_logininfo to get the list of members for a group that has no members. Instead of just passing back some sort of status, the procedure blows up and keeps me from scripting the procedure. Am I just missing something Brandon This is good to know. We are only just starting to use SQL 2005. In fact, I accidentally posted my question here instead ...Show All
Visual Studio Wrong Icon Pixel
I am working for a software company and we use Microsoft Visual Studio to edit all of our dialogs. In our dialogs, we have icons that are displayed as 16x16 pixels in the actual software, but in Microsoft Visual Studio, they are displayed as 32x32. The difference in pixels is a big annoyance as it is very difficult to position the icons when editing under Visual Studio b/c the actual size of the icon will be much different when it is launched in the software. The work around that we came up with is to create a new image type as 32x32 (the original icon is listed as 16x16 in Visual Studio). We then copy the original icon and paste it into the new 32x32 image type. There are a few limitations in this work around and we have thousands of icon ...Show All
Visual Studio Tools for Office What "Origin" of Range.EntireRows.Insert method means?
Hi all, I just wanna insert a data table into a range of Excel, and I using the code: //////////////////////////////////Code Snippet////////////////////////////////// for (int i = 0; i < dataTable.Columns.Count; i++) { for (int j = 0; j < dataTable.Rows.Count; j++) { insertRange.EntireRow.Insert(Excel.XlInsertShiftDirection.xlShiftDown, dataTable.Rows [j]); } } /////////////////////////////////////////////////////////////////////////////////////////// And the compiler always throws a COMException and errorcode is "0x800a03ec". I think the mistake is "dataTable.Rows [j]", but I don't know what means "o ...Show All
Visual Basic Cascading distinct comboboxes
Hi Guys. I am definately on the curve here. I know how to do this in access VBA but I am finding everything in VB .net much more complicated. I would like to have a combo box populated with distinct values from a country column in an mdb database, then i would like the next combo box populated with distinct values of cities within that country and so on. Can someone point me in the right direciton with a possible code example thanks check this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=785679&SiteID=1 even though its in C#, easily translatable to VB.NET http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=862343&SiteID=1 should be more towards your need, pretty much C# to V ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need help
Where can i find some good tutorials and manual for XNA Game Studio It can be in .pfd. Search this forum for tutorials, most people have commented on quiet a few. I keep a list of tutorials and blog about them regually during my learning experience with Game Development and XNA, have a look. of the best so far (appologies for anyone I miss off my favorites, only got a few mins) www.xnaresources.com www.learnxna.com www.xnadevelopment.com Also worth a mention is the Game Programming Wiki http://gpwiki.org Happy learning Rgds Darkside ...Show All
SQL Server Touble with text being truncated
I am trying to send a large string to my table where I have typed the field as "text". The data is truncated ( I am only sending about 5kb and it is being truncated to about 4kb). I am using SQL 2000. My web page is classic.asp and I am sending a parameterized query to my stored procedure. This is the relevelant code for the parameter I'm sending: objCmd.Parameters.Append = objCmd.CreateParameter("@PostBody",adLongVarChar,adParamInput,20000,PostBody) This is the typing in my stored proc: @PostBody text, I can either INSERT or UPDATE using Query Analyzer and the data is NOT truncated. Wondering if it was my parameterized query that was causing me trouble, I rewrote the code to send the SQL upfront (skipping the stored ...Show All
Visual FoxPro password on my table
can i put password on my table >> can i put password on my table Not directly, but if you are using VFP 7.0 or later you can enable DBC Events (see the Help File for details) and you can then use the DBC_BeforeOpenTables event. There are examples in Solution.APP that ships with all versions of VFP too that show how you can use this. However this will not someone opening the table with an application that by-passes VFP altogether (like a free downloadable DBF Editor/Viewer that anyone can get from the internet hackers). If you are still using VFP 6.0 there is no built-in security mechanism (those were just safer days I guess). What exactly is the issue you are trying to solve here ...Show All
