JHagan's Q&A profile
.NET Development HttpWebRequest fails on some computers (weird...)
Hi all, I got a strange problem with HttpWebRequest code, failing on some computers, but i can't reproduce it on either of my 3 different computers here. Following is the code snippet causing the error (on some machine configurations): HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http: //someurl.tld/somefile.txt"); /* --> optional block */ request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10; request.Proxy = WebProxy.GetDefaultProxy(); request.AllowAutoRedirect = true; request.MaximumAutomaticRedirections = 10; request.Timeout = (int) new TimeSpan(0, 0, 60).TotalMilliseconds; request.UserAgent = "Mozilla/3.0 (compatible; MyBrowser/1.0)"; /* <-- optional block end */ WebResponse response = re ...Show All
Visual Studio Express Editions Best Data Source
I have been learing a lot over the last couple of months, although I ran into a major problem with my current project that I have been working on, which happens to be my First project that I want to do, and is not a tutorial. The problem I have is I need to use some type of data source, other than SQL, or Access, to store about 1000 rows of data with about 30 columns of information. I would like it if the end user doesn't have to install any other program (SQL, Access, ect.) to be able to use my program. I thought that I could use a CSV or delimited text file of some sort, to store the data, but I can't seem to use the data once I get it into the application. I have gotten the data in to a DataTable, a DataGrid, and a DataGridView, wi ...Show All
Visual Studio 2008 (Pre-release) vnext with vb express
can vb express develop a progect of ADO next I can install vnext and generate the csdl,ssdl, msl file from database. However, I can't use vnext window application to develop the program. i find follow problem like I can't find the app.config in the model object project that should store the connection string. also, I can't use the syntax like Dim categories = From c In _db.Categories _ Select c _ Order By c.CategoryName is vs studio must use Updated: The August CTP of ADO.Net is supported on VB Express, can you be more specific about the problem you're facing If you open the samples solution in the directory like "\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Sa ...Show All
.NET Development Managed Code Executable hangs when invoked from a WebService
Hello, Am having this unique issue which is inconsistent and i am not getting anywhere on it. I am simply calling a Async Webservice method which in turn invoke a EXE Doing this by using Diagnostics namespace in the foll manner Dim _lScheduleInvokeProcess As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo(_strExePath, ArgSet) With _lScheduleInvokeProcess .CreateNoWindow = False .Arguments = ArgSet .WindowStyle = ProcessWindowStyle.Normal .RedirectStandardOutput = True .UseShellExecute = False .FileName = """C:\proj\Bin\MY.exe""" End With Dim _lprocess As System.Diagnostics.Process = New System.Diagnostic ...Show All
SQL Server SET IDENTITY_INSERT Question
I want to use the SET IDENTITY_INSERT ON command so that I can insert a bunch of records and establish the links myself based on the ids i used. I have a table with an identity column which is a FK in another table. I need to insert into table one, then carry that id to table 2 as a fk. There is no unique value for me to tie to so I wanted to ReSeed the identity column to the number above what I am going to insert and then turn off identity insert so I can insert between the present spot and where I reseeded to. This will allow me to know the id's and assign them myslef. My question is two fold. 1. When I set Identity_Insert On does it only affect my batch, or the connection, or the whole server Essentially, when ON can other peopl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox Live Arcade
Do any of you reckon that it's possible to make a game using the XNA express framework, and then get it published (by MS or otherwise). I think, looking at the standard of games on Xbox Live Arcade, that I can make a much better game than anything there. I'm guessing the XNA Professional will be reasonably priced ... $100 give or take. I read something about having to subscribe to some annual "service" for roughly the same amount. Not sure if that gets you access to XNA Professional, or just the rights to even think about publishing. Or both ;) The tough part will be Cert. Full TRCs I imagine, which are non-trivial (or is it TCRs can't recall which belongs to Msft and which to ... other .. ...Show All
Visual Basic How to use 2D Array ?
Hi, every one.. I need One help form you. i want to know how to use 2D array in VB coding. whose lenght is unknown that means it 's vary from application to another.for one cretaria it si 20 for some other scenario it is 15. so how to declare and initialze the 2D array for the same case. Thanks One of the nice new features of .NET is the list(Of T)...It has all of the benefits of an array and more...for one you don't have to worry about bounds or the index .... Dim MyList As New List ( Of Integer ) Dim Index As Integer = 0 Dim x As Integer = 0 For Index = 0 To 10 MyList . Add ( x ) x = + 2 Next For Index = 0 To 10 Debug . Print ( CStr ( MyLis ...Show All
Software Development for Windows Vista CardSpace and Single Sign On
Hello, When I have authenticated myself once to get a token for using a specific card, I don't want to be asked for authenticate again with the same card, for another RP, during the session. In fact, I want Single Sign On. Is it possible Just to double-check my assumptions, let me ask - does anybody know of anybody in the world who does not think that the future of identity on the internet will be, you know, 'card-centric' one way or another - for SSO purposes, as well as sharing/controlling profile information If there is such a person, who is it and what is their reasoning If there is no reason to expect that things will not be card-centric - other than the marketplace has not adjusted to the technology yet - then it ...Show All
Visual Studio 2008 (Pre-release) Data Binding Flow
Can anyone provide references discussing Data Binding Flow I would like to confirm if the following is accurate...data binding (and value conversion for that matter) in XAML occurs only if the page is rendered I have a requirement in which I need to manipulate GUI controls behind the scenes. I can instantiate the page and gain access to the controls to set values but it appears that data binding is not in place as my underlying data is not updating accordingly. Thanks Can anyone confirm if the following is accurate Bindings set via XAML will only become active when the page is Loaded. If we want the bindings to be active w/o loading the page we have to set the bindings (via SetBin ...Show All
Visual Studio Adding commands to the context menu in the editor
Hi. I have developed a language service for a custom language using the MPF, and now im trying to add som extra choices to the context menu in the editor-window. I know i can make my own context menus by using a custom editor instead of the core editor, but if im not mistaken, then I would lose all support for syntax coloring, squigles, outlining, highlighting etc. which is utilized in my language service (please correct me if im wrong) Is there some way of accessing the core editors context menu, and add commands to it It would be nice to be able to remove commands aswell. Or is there some way of extending the core editor and replace its context menu Any help on the subject would be appreciated Frank. ...Show All
Visual Studio Source Control menu items are not available in VS2005
I have installed Visual SourceSafe 2005 on a Windows 2003 server, and have Visual Studio 2005 Professional installed on a variety of Windows XP Pro workstations. I want my team to use Visual SourceSafe via Visual Studio 2005 within our LAN. None of our VS2005 installations show Source Control menu items nor the plug-in under Tools > Options. I have a contractor that came onboard and had a trial version of Visual Studio 2005 installed. He has the Source Control menu item and the plug-in, and was able to connect to SourceSafe via the LAN. Now I'm afraid to have him install VS from our disks for fear of losing the SourceSafe connectivity. I cannot find a solution after reading Known Issues and ...Show All
Visual Basic VB computing wrong value during execution
I am receiving the wrong result when I perform the following computation using VB.NET 2005. MM = CDbl (LoCursr - 1) / CDbl (HiCursr) LoCursr and HiCursr are both dimensioned as Integers and have values of 85 and 87 and are passed into this subroutine as ByRef values. MM is a local variable declared as a double. If I execute this statement in the immediate window, I get the correct result of 0.96551724137931039 However, when this statement executes normally, I receive a result of 0.96551722288131714 which I also get if I execute Cdbl(Csng(84/87)) in the immediate Window. I've tried storing the LowCursr and HiCursor values in Doubles prior to doing the computation, but that did not correct the problem. Is there a se ...Show All
Windows Forms DataView Sorting
Hi: In this code: DataView dv = new DataView(this. myTable ); dv.Sort = "Name"; dv.RowFilter = ""; dv.Sort = "Time"; Does anyone know where can I find the code for this method: dv.Sort I would like to overwrite it with my custom sorting. Thanks very much in advance. Maybe this will help. ...Show All
Visual Studio Express Editions Debugging Horribly Slow
I'm running a P4 3.06Ghz with 1gb ram. I've never had a problem with this computer being slow. I just installed VB 2005 exp and when I converted my vb6 prog to it and started to debug I get a horrible delay of 8 seconds or so each time i use f8 to move to the next line. This ofcourse happened instantly in Vb6. My program is rather large. I'd say around 150pg of code spread over aprox 20 forms and a handful of modules. Is this just too much for the Express edition I'm downloading the trial of the professional just to try but I can't imagine there is that much difference in the editions. I've tried disabling my antivirus and other program that might be taxing the system. I have several hundred megs of ram free and the cpu spikes he ...Show All
Gadgets Looking for a App
Hi Guys / Girls I looking for a app that supports creating cab files and supports sub folders :) any ideas Try Creating a CAB file . See the CAB FAQ on how to keep the structure, point 12 mentions it. ...Show All
