SteveLe's Q&A profile
.NET Development exception in socket .ctor()
Hello, Sometimes, just sometimes, my socket code throws an exception with following message: "Socket operation on nonsocket" ...or something like that, I work on the polish language pack, so this is just a translation. Wierd thing is that this exception is thrown in the socket's constructor! A bit of code: using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp)) { // the exception is thrown in constructor! s.WhateverFunc1(); s.WhateverFunc2(); } What may cause such behaviour Some, perhaps helpful, information: - application runs on WinXPSP2 NET1.1SP1 Intel4HT (pseudo ...Show All
Visual Studio Team System TF GET docs confusing
The itemspec description says: Itemspec File or folder to retrieve. If no itemspec is provided, Team Foundation performs a recursive get of the current workspace. But then in an example later it says this: C:\projects> tf get /recursive Retrieves the latest versions of all uncloaked items from the server folder and all of its subfolders to the C:\projects directory, creates working folders where necessary. Which is it The whole current workspace OR everything at and below the current directory in the current workspace I found out a coupl ...Show All
Visual Basic Login in a php site
Hi, I've done a project, and never cant to login in a website and download a file... this would be the first part of the project and it the last i must do In VB6 I used to use a webbrowser control, but it never liked me and I want to use another thing in .NET, as a WebClient, with the webclient I know how to download the file but this file its in a php site and i must be logged to access. I tried to put the credentials: WebClient.Credentials = New System.Net.NetworkCredential("user", "pass") I've tried to connect directly in the url: user : password @ site site.php user="user"&password="pass" A ...Show All
Windows Forms I need documentation on how to create a patch
We have just recently released and we know we will have to patch the product. So can anybody point me to some good documentation on how to create a patch. For the original product we used visual studio 2005 to create our install. I would also like to know how the patch interacts with the original install when it comes time to upgrade or uninstall the product. I believe the recommended way to update VS 2005 setups is the RemovePreviousVersions project property. The potential issue with generating patches is that the internals of the MSI files involved must be consistent in their treatment of the embedded cab ...Show All
Windows Forms System.Windows.Forms.AxHost.InvalidActiveXStateException was unhandled
I'm getting a AxHost.InvalidActiveXStateException can someone look at this code and see whats up... public partial class Form1 : Form { private object obj = null ; private AxSHDocVw. AxWebBrowser AxWebBrowser2; public Form1() { InitializeComponent(); } private void linkLabel1_LinkClicked( object sender, LinkLabelLinkClickedEventArgs e) { AxWebBrowser2.Navigate( "http://www.newegg.com" , ref obj, ref obj, ref obj, ref obj); } If you are using .Net 2.0, there's a new webbrowser control in your toolbox that you should be using i ...Show All
Visual Studio Team System Problems when change the default port of "8080". how to config ?
Hi. in my ex-post : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=254699&SiteID=1&mode=1 I learn how to config with TFSReg. but now, when I really need to open my TFS to internet. I have some new issues. I now need to open the TFS Server with a non standard port (non 8080). I would like it to be "9000" for example. so I go to the IIS and change the web to use 9000 port instand of 8080. later I use the Team Explorer to open the team server. the reporting and WSS functions going fine, but not the Work Item and Source control. in the TFSReg post and sample. I only find a way to confi ...Show All
Windows Forms Animal Farm?
Has the Animal Farm been copied over from gotdotnet yet If not is it going to be copied over If already copied where is it TIA Bugs Hi, still looking into this. I need to coordinate with Justin to see where this stands. I will try to at least get a zip of animals posted by mid-next week. With the functioning animal&nbs ...Show All
Windows Forms Create 2D line charts in C#
Hi, I would like to create a user interface in C# that displays 2D line chart. The chart will be updated in real-time as data is being collected, kinda like a stock market application. Is there a tool/library/controls in Visual C# that I could use I thought there was something in Visual C++ that one could use to plot a 2D charts by just passing data points and some parameters Perhaps not in C# Do I have draw the axes, the scales, and each data points from scratch Any pointers and suggestions are greatly appreciated. Regards, Jess Currently .NET does not have bui ...Show All
SQL Server Ignore Null in a Column that otherwise needs a Unique Value
In Access, when you specify a unique key for a column, you can also specify IGNORE NULL, in which case there can be more than one record with NULL, but if the field is not NULL, then only one record can exist. How do I do the same thing in SQL Server. I have a table with a column that identifies a Previous Entry. If the column is Null, then there is no previous entry - this may occur often. If the column is not null, then there is a Previous Entry. A Previous Entry can be used only once. Much appreciate any guidance received. Thanks, Flavelle Steve: Now that I understand your solution (forgive the newbie), i ...Show All
Windows Forms AppUpdater without directory browsing enabled
Just started using the AppUpdater, and it's very cool. But I'd like to use it with a webhost running linux. I haven't been able to get it working properly. The AppUpdater successfully downloads the manifest off the server, but then doesn't ever download any of the files. I believe that the problem is that "directory browsing" is not enabled. Can the&nb ...Show All
SQL Server Transaction replication: Distribution agent owner
Hello! I seem to have a permission issue when i setup a pull transaction replication on SQL Server 2005 which i was hoping someone could explain. The distribution agent gets created but when it tries to run it fails with: The job failed. The owner (NATION\PK0159_a) of job EPPINF002\YUKON1-Publisher-Person-EPPINF004\YUKON1-Subscription-852824CC-803A-4C6B-B44B-748B6E25BFFC does not have server access However, when i change the owner of the distrbution agent job on the subscriber server to sa and manually execute the job, the distribution agent executes successfully. NATION\PK0159_a is what i am authenticated when i am ...Show All
Visual Studio Team System Build Failed In December CTP
I moved a project from a server with TFS beta3 refresh installed to another with December CTP. When I build it, a referenced file can not be found. structure of my solution is like: Solution |_______Project MapiLib (C++ dll) |_______Project My.Blog (vb.net library) |_______Project CommunityAddin (C# library) MapiLib and My.Blog projects are refered by CommunityAddin. When I build it locally and in a server with beta3 refresh, it is all right. It could not find the MapiLib's output during team build on server with December CTP. ...Show All
SQL Server Hierarchical table Functions Vs Hierarchical CTE
Recently I was in need of a hierarchical tree data. I learned about CTE and how they can be used to build hierarchical data with simple syntax. I used CTE and was through with the task. Later during free time, I tried to compare CTE approach with the traditional SQL 2K Table Function approach. It was surprising to see the query costs when I ran both the modes at one go... Query Cost (relative to batch) : 0.49% Query Text : Select * From fn_GetTree(8); Query Cost (relative to batch) : 99.51% Query Text : with treedata (id, parentid, status, prevStatus, lvl) as (select ...) What does that indicate Does it mean that the Table Function ...Show All
Visual Studio 2008 (Pre-release) "late binding" communication and more questions
I have several more basic questions concerning indigo: 1. Does the WCF provide a way to communicate to a slick way to communicate to a web service which is discovered during runtime. As an example: somebody provides a WSDL and an operation he wants to call from this service as well as a XML message he sends to the service and a XSL that he wants to apply to the response message. Currently I do something like that with a manual HttpWebRequest. Is something like that possible with WCF in a better way or is the contract/a known interface a requirement for WCF communications 2. Is WCF supported on the Compact Framework or will it be 3. ...Show All
Smart Device Development wireless application
Hi, I plan to develop a application on pocket PC. If i want to use wireless connection to communication with the SQL SERVER, what should i do Can the PDA directly connect to the SQL SERVER, or throught another application Which .net classes will help me to do so I'm distressed, and would appreciate your help so much. I'm trying to develop a C#.net app on Pocket PC 2003, CF2, that needs to communicate with SQL Server over wLan. I have a reference set up for SQL Client on the hand-held. I can browse the web from the hand-held, and can connect over wLan from a laptop running WinXP ...Show All
