Toni Greco's Q&A profile
Visual Studio Team System Load test response time identical with or w/o gzip compression
We have two web servers: one is configured with gzip compression while the other one is not. I'd expect that when we run the load test against the web server w/gzip compression, the response time would be faster. But our testing shows both servers have similar response time. Any idea why I ran the webtest, reviewed the request headers from the results, and I could see "Accept-Encoding : gzip". What else should I check ...Show All
Microsoft ISV Community Center Forums ado recordset problem
i am using the following code and am getting the structure of customers structure returned to my application recordset rs - but there are no records being produced >>> what am i missing (the access table set is not empty) cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\lee\Northwind.mdb;Persist Security Info=False" cn.Open rs.Open "select * from customers", cn Hi, The following works for me in Excel. Include a reference to the ADO library if using early binding. Sub xx() Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New Connection cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\lee\Northwind.mdb;Per ...Show All
Visual Basic Using Tab or Right Arrow Key as AcceptButton?
Hello, I found a way to set the form property AcceptButton for the Enter Key, but how can I set the AcceptButton as a Tab key or as a Right Arrow key Thanks in advance. Private Sub Form1_Load ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Load Me . KeyPreview = True End Sub Private Sub Form1_KeyUp ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyEventArgs ) Handles Me . KeyUp If e . KeyCode = Keys . Tab Then Button1 . PerformClick () End If End Sub right arrow key would be e.keycode = keys.right ...Show All
SQL Server EnumAvailableSqlServers() fails to detect LOCAL installed instance when disconnected from network
I am using EnumAvailableSqlServer to build the standard select Sql Server dialog with controls to select the server, instance and database. This all works fine - other than the well reported problem of detected multiple instances - however I have noticed that when disconnected from the network the call fails to even detect the locally installed sql servers. What is the recommended method of determine whether an instance of sql server is installed locally. I can call Server->Databases, but this leads to a timeout / excpetion if no instances are detected which is slow. Is there a recommended registry key I can check that won't change between versions or another API I can try. hx, Nick Checking regi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Game Services
Hi, i have been reading a lot of documentation about XNA and i found something related to the Game Services but really i don't undertastand how i can use it somebody have any example please Google is your friend. Clicky1 Clicky2 Mitch's post is relatively old but the idea should be the same. I'm not sure how old the first link is. ...Show All
Commerce Server Unrecognized configuration section membership
After my update from CS 2002 to CS 2007 i need to redevelope the hole User Logging System. Before in the old version the Microsoft.Solutions.Framework was used for the authentification but now I'd like to use the standard ASP.Net logging. As I read, I need to add The UpmProvider to my web.config but the result ist that i get the following Error: Error 101 ASP.NET runtime error: Unrecognized configuration section membership. What do I have to do now Does anyone have something like a complete example how to implement this Loggin System which would probably help me Regards The UpmMembershipProvider bases some of its configuration off of your UserObject profile. This error message is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Storing non 2^x sized .DDS for use with ID3DXSprite
From what I've seen, when using D3DXCreateTexture with sprites that aren't properly sized (2^x) everything is automatically taken care of. When displaying them as sprites with ID3DXSprite they are shown in proper size. But this takes some time to load if you have a lot of sprites. Especially if you want to generate mipmaps and apply texture compression on top of it. Obviously it's a lot faster to load .DDS data, if you've already applied the texture compression and pregenerated the mipmaps. This sounds like a nice alternative, but this format doesn't seem to support sprites of arbitrary sizes (when using compression) I'm thinking that maybe you can get around this by stretching the sprites, and then specifying another height/width manuall ...Show All
Visual Basic Is it possible to instruct a module to return to a point of the code?
Hello all. I would like to enquire whether it is possible to code my module to return to an earlier point of my code instead of using loops. For example, after my module catches an exception, can I use some commands to return to a specific point of my code Thanks in advance. Hi, As Spotty was saying you could TRY something say 5 times then EXIT the program using EXIT FOR or EXIT SUB E.g. Dim index As Integer=0 Try StartHere: 'some code that would be TRied 5 times Catch ex as exception If Index>5 THEN ' You could put a MsgBox in here to say the code has been TRied 5 times ' before the EXIT SUB command. E ...Show All
.NET Development .Net 2005 app fails if built on XP Home machine
I have been developing an application that utilizes .Net remoting as well as some unmanaged code. It is written in C# and uses Windows Forms (no ASP, SQL, etc). I have been building it on an XP Home machine and testing it on multiple XP Pro machines. After a recent enhancement, if the app is built on XP Home and run on XP Home, it locks up the OS requiring a reboot. If that same build is run on an XP Pro system, it silently fails (hangs) but doesn't crash the system. If I build the app on an XP Pro system, I don't have this problem. In attempting to debug this I tracked the code into a thread Start method. Executing the Thread Start crashes the Home system. I admit I am making an assumption about Home vs. Pro but, other than one bein ...Show All
Visual Studio Team System TFS VPCs
I am unable to find the current VPCs for TFS on the MSDN subscriber downloads. Is this no longer available as a VPC The Orcas VPC is out there, but when I downloaded it, it didn't seem to have TFS on it. (Just the client Visual Studio stuff.) Am I wrong on this Jason, The Orcas Team Suite and the Orcas TFS are two seperate vpc images that you can download. if you wnt to do a single Orcas box, you can download the self-installing versions of each and do an actual install on a single VPC. This is the approach I am taking. -paul ...Show All
SQL Server Store Webservice Task Output to File
Hi I have designed a package that reads in rows from an Excel file into a recordset then loops through the recordset sending two parameters to a webservice task. This works fine however I now need to output the results of the webservice task to a file or recordset - I have tried outputting to a file however it only stores the last result as the file is overwritten each time - I am new to SSIS and am sure there must be a really simple way to do this but cannot find an help on how to do it ! Thanks in advance K On the webservice task, there is indeed no option but to overwrite the file specified by the file connection. However, appending to a file will not be that difficult, it just a two step ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Present.DoNotWait
I thought I would post this code in case it might be useful to someone. This is a modification of the Draw function from the "Your First XNA Game" section of the XNA documentation. An earlier thread about input polling with a low frame rate got me thinking about using the Present.DoNotWait flag to allow more Update calls to happen while the device is still drawing. This way you don't have to create a separate thread to get more resolution on the input polling. On my machine, the Update function was called about 11000 times per second with 85 frames drawn per second. This is with vsync and fullscreen on (this doesn't work in windowed mode). Also, if anyone can think of a problem with this scheme, I'd love to hear about it. ...Show All
SQL Server Truncate Table
I have a database of 25 GB. I truncated a table which holds around 5 GB of data. Even after truncation, I see my database size as 25 GB... Should I run a shrink database after the truncation Thanks Santhosh Yes. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio 2008 (Pre-release) Progress Bar Embedded in ListView
I have a progres bar embeded in a listview. I am trying to get the progress bars to dynamically resize themselvs when I resize the column that reside in. I cannot seem to get it to work however. Any suggestions would be welcome. A trivial Xaml example follows: < Window x:Class = " WindowsApplication2.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " WindowsApplication2 " Height = " 300 " Width = " 320 " Loaded = " loaded " SizeToContent = " WidthAndHeight " Name = " Window11 " > < StackPanel Ho ...Show All
Windows Live Developer Forums JS Alert box with clickable links
In the Interactive SDK there are many examples that show a yellow alert box containing clickable links. How is this done I need to pop up a box of clickable links in my custom disambiguity function and I can't work out how this is done. any help would be appreciated. thanks heaps for this Derek... it appeared that they were using something other than a standard alert box and I couldn't figure out what it was. I will play with this over the weekend and hopefully I can work it out as the code I have written needs this type of alert box to work the way I want it to. ...Show All
