Amos Soma's Q&A profile
.NET Development HttpWebRequest Post problem
I have a "The underlying connection was closed: The connection was closed unexpectedly" error when trying to POST using HttpWebRequest. There's a GET prior to this call that works fine. I have done quite a bit of web research and all of the following have been tried: request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10; System.Net. ServicePointManager .Expect100Continue = false ; request.PreAuthenticate = true ; Install WindowsServer2003-KB898708-x86-enu.exe on IIS Server. Here's the part of the Trace with the HTTP POST, maybe something here will help: System.Net Verbose: 0 : [3628] WebRequest::Create( http://w2k3pdwads01/access/oblix/apps/webgate/bin/webga ...Show All
Visual C++ Change in behavior of properties from VC7.1 to VC8
In VC7.1 in the property pages for a project, if I entered a relative path for an include file on the "Additional Include Directories", then the IDE showed valid paths relative to the project file. In VC8, relative paths are all relative to some path in the install directory NOT my project. How can I get the VC7.1 behavior This new behavior is not intuitive. I never place my files relative to the install directory. Ah - I answered without checking first. Bad. Entering $(ProjectDir)\ does not bring up any autocompletion. Entering $(ProjectDir)\..\ still brings up the wrong tree relative to the install directory. In 7.1 I could enter ..\ and it would provide auto completion directories relat ...Show All
Visual Studio Express Editions problem with details view from database
Hi all, I have a problem. I have got 3 tables in my database . When I am using 2 datagridview tables to view data from table with primary and table with foreing key, everything is fine (there is a relation beetwin tables) But when I am using textbox and binding method (or drop table from data surces window using Details view to the form) there is no update data in foreign tables. I am using Visual Studio C# Express and Sql 2005 Express Edition. Does anyone know how I can reslove this A relation already exists for my child columns. I have done it on sqlserver side and when I am checking everything is working fine. On the form, when I am using datagridview to view data - its working fine (delete, insert, update et ...Show All
SQL Server Window Title in RS 2005
Hi, am calling MSSRS Reports from an asp.net application. the Reports are opened in a new browser window, In MSSSRS 2000, the new windows opened have the window Title equal to the report name. but in MSSSRS 2005 the window title justs shows "Report Viewer" as the window title for all the report.s Can anyone gimme a quick solution, so that the report name appears in the window title when i call the reports in MSSSRS 2005. Quick solution will be appreciated. Thanks. Hi thanks Kaisa, the solution works perfectly, but then i will have to change the Report.aspx file on the client(customer) side, i would appreciate if there is any other solution that could be sent with the report (rdl) file ...Show All
Visual Studio Express Editions Printing using VB 2005
Please, I need a help in printing axmschart control. I know how to print something like richtextbox. but I couldn't figure out how to print the chart resulting from an axmschart control. I'm using VB 2005 Express Edition. Thank You in advance. Thank You Tall Dude for your reply. I've tried copying the chart to a clipboard and then graping the clipboard to a bitmap to print. but it doesn't work too. I'm going to work in creating a new control with axmschart and implement the print function in it. I hope that will work!!!! ...Show All
Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. We’ve recently discovered an issue where the Navigation Bar can cause this sort of slow-down.& ...Show All
Smart Device Development Messages Sent to Foreground Window when Device Wakes Up
Can anyone tell me what messages get sent to a foreground window when a device wakes up I have an app that needs to detect when it becomes active on wakeup when using CeRunAppAtTime(). I am able to detect: 1. When the app has been shut down and forced to start up again. OnActivate() works in this case. 2. When the app is in the background and is brought to the foreground when the device wakes up with CeRunAppAtTime(). OnActivate() also works here. However, if the app is in the foreground already when the device wakes up, OnActivate() does NOT work. I don't know what message to use to detect that it is running again. Is there a WM_PAINT message that I can detect Thanks. Scott Anthony San Francisco It a ...Show All
SQL Server ODBC Data Source - Database not displayed
I'm rather new to SQL Server 2005 and having some difficulty accessing a newly created database through access. I can create the database and tables fine in SQL Server Management Studio, but when I try to add a ODBC data source, the only databases that appear in the 'default database' list are the system databases (i.e. master, model, msdb, tempdb). What do I need to do to get my database to appear in the list ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA in Internet Explorer?
I was surprised to find out that XNA doesn't work in Internet Explorer as a WinForm Control. I know I must be smoking crack, but somewhere a long the line I got the impression that XNA would enable a 3D environment in Internet Explorer. If we can put Ink on the Web, http://www.code-magazine.com/Article.aspx quickid=0512062 , then I think we should be able to put a 3D environment on the web as well Anyone know of a way to get XNA or Direct X working as an element of Internet Explorer Thanks, Johnny I dont get this. There already exists other 3rd party 3D plugins that use DirectX (shockwave for example) - so how come this works - or does this plugin also pose a security risk Windows Presentation F ...Show All
Visual Studio Is there a Multivalue property for (Select All)
The article "Using Parameters in Expressions" in SQL Server 2005 Books Online ( http://msdn2.microsoft.com/en-us/library/aa337293.aspx ) discusses various properties of Multivalue Parameters, for instance: =Parameters!<MultivalueParameterName>.IsMultiValue What I don't see is a property that exposes the True/False value of the (Select All) option. Obviously, the reportViewer is aware of this value, but it does not appear exposed in the API. We are very interested in evaluating if the user has selected the (Select All) option. MSFT...Might this be one of the features in the SP1 update, but not yet documented in Books online Thanks - Mike Hi Robert, I think you have misun ...Show All
Visual C# Are there really no methods that converts "æ" to "%E6" (URL)
I need a string to be converted to "URL encoding" so that the webserver correctly handles the request. When sending "aoa" - the server expects: "%E6%F8%E5". I don't know what the encoding is called, but this is what i want. In PHP, urlencode() will produce this encoding. In C# the nearest i get is: %C3%A6%C3%B8%C3%A5 using the HttpUtility.UrlEncode(). This will not work for me. Does anyone know how i can get C# convert a string to me to the format mentioned above Spaces should also be converted to "+" - not %20. Of course, i could create such method myself, but it's a lot of work since this applies to all special characters. And i find it weird that such method does not exist already & ...Show All
Visual Studio Team System FxCop and private methods
Hi All, When I run FxCop , it seems to only give me warning for my public methods and ignores my private methods. For example if I create the following methods public void wrong_case() { Console.WriteLine("Hello World"); wrong_case2(); } private void wrong_case2() { Console.WriteLine("Hello World"); }. I get the following warning . Warning 5 CA1709 : Microsoft.Naming : Correct the casing of member name 'wrong_case'. Warning 6CA1707 : Microsoft.Naming : Remove all underscores from member 'wrong_case'. As you can see , only warning for the public method are created. Any ideas Thanks Jimmy Jimmy, Yes you are right, unfortunately we haven't e ...Show All
Microsoft ISV Community Center Forums Summing up hours on form based on parameter query
Hi there - im finalising my new activity system but i have one issue. on an activity form i have certain fields for information purposes that are non editable - they are 'hours worked with client' , 'hours worked this month' and 'hours worked for the day'. The first 2 fields are populated automatically by opening recordsets on form load or companyname exit and summing up the hours based on the relevant query where the criteria ensures that the query is already populated. However for the 'hours worked for the day' field the query is a parameter query (qrytodayhours) where activitydate = Forms![frmactivity]![activitydate] and i was then hoping to enter the following code to sum up the hours using a recordset on the on exit of the acti ...Show All
Visual Studio Express Editions SortedList Strange Behaviour
Or maybe, just a strange coder The code is below. I have put two mark in where you should break. Also a Stop before where the problem appears. This code does run. If you iterate thru the breaks, you can see that the Tmp variable has the correct value at each iteration. The key is also correct. and the SortedList (Temp1, Temp2) show correct values at each break. But ... When I attempt to iterate thru the SortLists using For Each, every value returned is THE LAST VALUE inserted into the SortedList. This might be the last value entered in Temp1 or Temp2 (depending on which was the last one added). That is: both SortedLists seem to be pointing their 'value' to the same place in memory ( ) The keys are returned ok. It is just the ...Show All
Visual Studio Express Editions What can web express do?
Hello All, I have been mainly trying to learn VB .NET however I have thought of a new task that would help me in my day to day activities and wondered if ASP .NET web express edition could do it Basically want to make a web page for automating the task of archiving old files on my PC to a specific directory I want the program to ZIP and rename my files then move them to a folder I specify and thats it basically, Can it be done using web express if so where do i start with it because i have never used this version before! help! :) Thanks, Gaz Visual Web Developer Express is the free version of Visual Studio used for developing ASP.NET web pages. VB.NET is simply a language used by the product t ...Show All
