Ido Ran's Q&A profile
Visual C# VS 2005: "Key not valid for use in specified state"
Hi all- I'm running VS 2005 final release version. I have a solution with two projects in it; an ASP.NET website in C# and a VB project which is my data access layer. Yesterday, this code was working fine. I can compile and run the solution, and all the code works. But when I try to access or add a new datasource through the VS 2005 Data Sources Explorer, I get a popup which says: "An unexpected error has occurred. Error message: key not valid for use in specified state." This message pops up after I select database as the source of my new datasource. The wizard does NOT fail if I use a Web Service as my new datasource. Any ideas on what is happening, and how to clear up the problem ...Show All
.NET Development System.Net.WebException: The operation has timed-out.
I have a very simple web service built with Java and deploy on Websphere server. The WS just receive a string array and return an integer value. I have another .Net client which has to call this WS, the client is deployed on a windows 2003 based Citrix MPS server, and all users has to logon to this server in order to use the client. The MPS server and websphere server is on the same network, there is no network problem between them. What I have spent two months to solve is that some users can call the WS through the .Net client perfectly, but some of users always fail to do that with this exception: System.Net.WebException: The operation has timed-out. at System.Net.HttpWebRequest.GetRequestStream() ...Show All
Visual Studio Team System Wiki capability?
We've been using an internal wiki for an ad-hoc collaboration system, and we really like the ease with which we're able to add content, and expand the site. Is there a "wiki" like capability to the VSTS I've looked over the "project portal" topics, and it seems to be strongly bound to the project, but I'm not seeing a location for general multiproject and non project related materials. Any feedback on this topic would be appreciated! Thanks Martin, I could certainly have phrased my question better! Now that I re-visited it. This is actually the kind of information that I'm looking for. We too have started down the wiki path for our product group here. (only a few months into it). We find tha ...Show All
Windows Forms cannot find table 0
Hi all, I had the following piece of code. System.Web.UI.WebControls. DataGrid EOWDataGrid = new System.Web.UI.WebControls. DataGrid (); conn = new NpgsqlConnection ( "Server=" + PGIPAddress + ";Port=" + PGPort + ";User Id=" + PGUserName + ";Password=" + PGPassword + ";Database=" + PGDatabase + ";" ); this .Controls.Add(EOWDataGrid); NpgsqlDataAdapter pgDataAdapter = new NpgsqlDataAdapter ( "select \"wid\",\"wstart\", \"EOW\" from \"lwinfo\" where \"wstart\" >='" + tsFromSecs + "' and \"wstart\" <='" + tsToSecs + "'" , conn); conn.Open(); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT files(xgs,xsb,xwb) don't deploy during Publish; getting FileNotFound
My problem: My game project in XNA uses 2 sounds. I went thru the XACT tutorial(for my uses I found it quite easy to add my .wav files used via XACT), and I now have all code in place, and functioning. When I Start Debugging in XNA, my game runs correctly, and I get the correct audio plays when the proper events cue them up. HOWEVER, once I publish the same project, and install it from the Setup.exe, the installed game crashes. I get the error: system.io.filenotfoundexception. What I have checked already: 1.All 3 XACT files are in my main game directory. 2. All 3 are set to 'always copy' to output directory. 3. All references in the Sound.cs class I created point to the correct XACT files(the build would not run if it did ...Show All
SQL Server sqljdbc DriverManager.getConnection Hangs after mirror failover.
When performing a failover the DriverManager.getConnection method never returns from it's call. I used a modified version of the test program included in the sqljdbc help file (below). If the principle server is server2 and a failover is performed, the program works just fine. If the priciple server is server1 and a failover is performed, the hang occurs. The sql servers are not on a domain, are in the same workgroup, have certificates setup between them. Sqljdbc version used is 1.1.1501.101. I rolled back to version 1.1.1320.0 and the DriverManager.getConnection exceptioned. Not sure if this is a setup issue or a common problem. Anyone have any suggestions or seeing similar issues Thanks - tc Version 1.1.1501.101 - Syst ...Show All
Visual Studio Express Editions SOMEBODY SAVE ME
<WebMethod()> _ Public Function HelloWorld() As String Return "Hello World" End Function .this web service will return the word hello world .now what i wanna do is to return information from my database .how to i go about it cos i donnoe what i should declare my database by...should it be string , int or whatever it is i tried everythinh and there always an error .btw my database is named as PanHotel.mdf Hi wiscon, i suggest you read this book: " Introducing Microsoft Visual Basic 2005 for Developers " ref: http://msdn.microsoft.com/vbasic/learning/introtovb2005/ it is very helpful, and it will guide you to start up ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Blender
Can blender be used with XNA GSE Just wondering b4 i go and get my new comp this week because my desktop crashed... I am quite sure in blender you have to apply transformations and scaling, there is an option somewhere to do this. ...Show All
Visual Studio 2008 (Pre-release) TCP Error Code 10060 on client when service is self-hosted on a remote PC
I'm getting an error when a client application calls a self-hosted console service running on a remote PC and using BasicHttpBinding. Thinking the problem was in my code, I backtracked to using a simple SDK example, the Basic\Service\Hosting\SelfHost example, but use basicHttpBinding instead of wsHttpBinding. The sample works fine when both client and service are on the same PC, but fails with the error below otherwise: System.ServiceModel.EndpointNotFoundException: Could not connect to http://10.0.0.44:8000/servicemodelsamples/service . TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to ...Show All
SQL Server Pie chart image distortion
I have created an aspx page with a report in Visual Web Developer 2005 Express using the report viewer control add-in. I have also created a report in SQL Server 2005 Reporting Services. In both when viewing the report in the web page the pie chart included in each report is distorted - it's still readable but it's sloppy looking. It is obvious to me that the pie chart is an image but I have not found a way to eliminate the distortion through any of the properties. Any clues Thanks in advance. The only thing I could find to do was to change the resolution of my laptop to a custom setting. I think the distortion occurred because my laptop has one of those new widescreens. ...Show All
SQL Server Transactional Replication: Dropping a replicated table.
For SQL 2005 transactional replication I have 1400 articles (tables, views, functions, sp) that are all replicated. Will SQL 2005 allow me to drop a table from from the publication and drop it from the publication database that is referenced by exising views or sps that are replicated or does it somehow check that Linda We will allow you to drop the table although the SQL2005 snapshot agent will complain about it in the history messages. Note that dropping a table article from a publication will not cause the table to be dropped at the subscriber. -Raymond ...Show All
Smart Device Development How can I convert the release to a .exe application ?
hi, recently I am learning to develop some program for smartphone. I just wondering how can I convert the release to a .exe application Also, if I install the program on my smartphone, is the icon going to be appear on the start screen (I havent set up a icon yet) if not what can I do about it Is there any web that teaches that Thank you for helping Dennis Once you returned to the home page you can restart your application at any time by clicking on shortcut to it in a start menu like you do with other applications. If you don't have a shortcut then create it with ActiveSync. If you planning to give that application to others make sure to include shortcut into the application’s CAB file. ...Show All
Windows Forms Windows forms applet getting object param
Hello, Does anyone know how to access an applet objects param tags I can't find any sample code for windows forms applets. (Language used C#) For example: <object id=anID classid="http:MyForm.dll#MyClass"> <param name="myParam" value="100"> </object> In C# (how do I retrieve the param): Thanks! I figured it out, after struggling for a long time. For param names you are limited to member variable belonging to the Control class. (Example: Text, Name). Then in your C# code you simply use Control.Text or any other member variable you may have used. I suggest using only one param (Text) and having all your params be comma delimited ...Show All
.NET Development Bumping it up. Still looking for an answer to this.
I have a peculiar problem. I have an application that launches a bunch of other AppDomains. I then call the newly created Appdomain's CreateInstanceAndUnwrap method and I get back an object that adheres to an interface I have defined. That interface has an event on it, let's call it ListenerEvent. I then do NewlyCreatedObjectInOtherAppDomain.ListenerEvent += new ListenerEventHandler (MethodInThisClassAndThisAppDomain); Then I tell this other Object to start processing which will sporadically call the event. If 5 minutes go by without a callback and then the object tries to callback, an exception is thrown that looks like this: A first chance exception of type 'System.Runtime.Remoting.RemotingException' occurred ...Show All
Visual Basic Startup Complete Event
Hi, I have an application that has an exit button on the main form, if it is pressed before the form has completed loading, whilst the splashscreen is still visible, the application will exit and leave an box onscreen saying "..has encountered a problem and needs to close." the debug button says that a system object is disposed so I guess that something post splashscreen is accessing the main form which has gone at this point. I have tried disabling the exit button until form load completes but that is not the event as the splashscreen is still active so some other initialisation is taking place that needs to complete before the application can exit tidily. What is it Try using the form's "shown" event to enable ...Show All
