WolfgangEngel's Q&A profile
.NET Development WebException: The underlying connection was closed
Hi After upgrading our win client app to run on version 2.0 of the .net framework (prev. v1.1) on of our customers reports the following error when calling a web service on our server: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. The customer is using a proxy-server, but it worked fine before the upgrade, and other customers who are behind proxy-servers has no problems. The error does not occur when the customer accesses the web service using Internet Explorer. The customer is behind a firewall. /Daniel This is not an answer, but similar problem. Having the same problem using .net ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Loop? WTF?
Maybe you mean XNA GSE 1.0 Beta2, which we played with in November Microsoft removed Beta2 from their download servers, because it was just wasting space. Also, it would be confusing to still have it pop up when you search for XNA. As far as I can tell, there is no difference between Beta2 and the final version. If you use the final version, and have problems compiling something which was written with Beta2, then I'm sure someone at Microsoft would like to know. ...Show All
SQL Server UDF?
I have a table of zip code ranges that map to regions: zipfrom zipto region I also have a list of companies and their zip codes: company zipcode What I would like to do is find the related region in the first table based on the company zip code. Do I need a function to do this or can it be done using T-SQL An example would be helpful. Thanks. You can use a join: select company, region from company join region on company.zipcode between region.zipfrom and zipto It will be helpful if the regions don't overlap, or you would get duplicates returned. I would also consider producing another table, a zip code table that has one zip code and relates to a region table, the ...Show All
SQL Server Log shipping
Can some one help in understanding Log Shipping. My production database is over 50 GB and we want to implement Log shipping to ensure a standy by server. I know how to implement the Log shippinng and what it does but I am not sure how to perform Log shipping with daily FULL database backup on production server. Consider this scenrio. 1. 1:30 AM Monday Full database backup on production server 2. At 1 hour interval transaction backup on production server and applied on Standby server. 3.1:30 AM Tuesday Full database backup on production server..... Here I am getting confused. DOo I have to apply this full back up again on standy servers, because if I don't then my LSN for next transaction log will be different. So how can i take a full ...Show All
Visual C# NetworkStream doesn't support seeking
I want to play sound from network stream. For playing sound i use directsound, but when i try to create SecondaryBuffer: try { ApplicationBuffer = new SecondaryBuffer ( this .netStream, ApplicationDevice); } catch ( Exception ex) { MessageBox .Show( ex.ToString()); } i'm getting error that netStream doesn't support seek operation. I know that property "Seek" of NetworkStream is ReadOnly... how can i work around this problem You can read a block from the NetworkStream and fill a buffer (byte array) with it, then you can use a MemoryStream to Stream a specific buffer piece to the SecundaryBuffer: byte [] networkBuffer = new byte [ 8192 ]; int bytesReaded = networkStream.Read(net ...Show All
.NET Development Not able to use GetDataTableSchema
hi, .Net 2.0 has added a new method to the DataTable class, GetDataTableSchema ( ). Not able to use it though. Even msdn docs dont provide an example. I will really appreciate if you can provide me with any simple example. Thank You. hi DMan1, thanks first of all !! syntax wise this method is OK. even i did this. but how to manipulate the returned WSDL from the returnValue varaible (which u have used). I m also not very sure wat goes as input to the method. Wat i did was took an xsd file and added that to a XmlSchemeSet object, passed the object to GetDataTableSchema. ...Show All
Microsoft ISV Community Center Forums Validation with List drop down?
Hi I want to add some simple validation to my Excel sheet but can not for the life of me remember how to do it! Basically i have a drop down list as in the image below and want so that when 'No' is selected, the user is forced to enter the reason in the next cell http://i102.photobucket.com/albums/m82/sc0ttb_2006/excel_list.jpg I can remember doing this before and used some VBA code but can not remember how i did it :( Please put me out of my misery! Thanks... Guys why don't you just use an input box instead of a msgbox Range("B" & Target.Row).Value = InputBox(Prompt, Titlebar) ...Show All
Visual Studio 2008 (Pre-release) CustomBinding<Security,binaryEncoding,tcpTransport> ERROR ?
Hi I have service that is configured using custom binding with mutual certificate security binaryEncoding and tcpTransport as shown in configuration < binding name = " TrackingBinding " > < security authenticationMode = " MutualCertificate " requireDerivedKeys = " false " includeTimestamp = " true " messageProtectionOrder = " SignBeforeEncrypt " requireSignatureConfirmation = " false " > </ security > <!-- <security authenticationMode="MutualCertificateDuplex" requireSignatureConfirmation="false" messageProtectionOrder="SignBeforeEncrypt"></security> --> <!-- <textMessageEn ...Show All
SQL Server SSIS Connection Manager Broken
Hi to all, I'm having serious problem with SSIS on my development machine. each time I try to add a new Connection manager i got this error : TITLE: Microsoft Visual Studio ------------------------------ The new connection manager could not be created. ------------------------------ ADDITIONAL INFORMATION: The connection manager 'OLEDB' is not properly installed on this computer. (Microsoft.DataTransformationServices.Design) This happen for any type of Connection Manager, ADO.NET, FILE,SMTP. I've already tried to uninstall SSIS , but nothing change. I've any chance to get this problem solved Thanks in advance Hi, thaks for your reply. I've already read that post and tried al ...Show All
.NET Development DataSet.ReadXml and Empty Datetime fields
Hi all, i'm trying to read a XML datafile (create with a VFP.XMLAdapter) into a DataSet. At the point of reading DateTime fields the reader collapse caused by the empty DateTime field. When i fill those fields there are no problems, but i want empty data!!! How can i manage to read the data into the dataset without getting errors and with the empty datetime fields I'm using VB.net 1.1 (Compact Framework) Dim reader As XmlTextReader = New XmlTextReader( New StringReader(xmlData)) Try Me .pr_DataSet.ReadXml(reader) Catch ex As Exception Finally reader.Close() End Try it looks it is required, it isn't but the ...Show All
.NET Development Secure Session State Transfer Between ASP.NET and ASP Classic
Has anybody had any luck with this I have been trying to work with: http://www.iansuttle.com/articles/sessiontransfer.aspx but the aspx page is giving me an error: StartIndex cannot be less than zero. Parameter name: startIndex xml = receive.Substring(receive.IndexOf("< xml"), receive.Length - receive.IndexOf("< xml")); frustrating!! ...Show All
Windows Forms Searching for specific text data in the datagridview control
I have been tearing my hair out looking for a way to search all the rows in a selected column of a databound datagridview control for specific text (like a combo box lookup) without success. I am beginning to think that it is not supported and I will have to buy something like vsflexgrid.net. Is there a way to do this without buying a third party control Thanks that looks like it will work. I am a little worried about speed and was hoping then the datagridview control would have an autosearch feature that I just didn't know how to turn on. I couls have as many as 150000 item in a lookup box using a datagridview.... ...Show All
Smart Device Development my SDK not avialable in VS2005 target device
i designed my OS using platform builder and made a SDK for that (by -new SDK,build SDK) than again i installesd that SDK(*.msi file) to my machine. in my vusual studio..this SDK not semms in tools option or in target device.. from where i shoul add this in VS2005 so that it can be seem in my target device for deploying thanks vishal. If you're NETCF C#/VB user (and I would assume that’s the case since you’ve posted to NETCF forum) this SDK is neither required nor used, it's for native C++ projects. For C#/VB simply use Windows CE 5 project type and deploy to CE 5 device. ...Show All
Visual C# How to read data piece-by-piece from a text file?
Hi, Here is the sample data in my text file: 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00010x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00010x00020x00030x00040x00050x00060x00070x00080x0009 0x00090x00010x00020x00030x00040x00050x00060x00070x0008 0x00090x00010x00020x00030x00040x00050x00060x00070x0008 0x00090x00010x00020x00030x00040x00050x00060x00070x0008 0x00090x00010x00020x00030x00040x00050x00060x00070x0008 0x00090x00010x00020x00030x00040 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen Transitions
Ok I tried to do this the way it is done in the Spacewars game, but it dosen't work. So I was wondering is there another way to do screen transitions (Go from the title screen to the first level of your game or to any other screens in your gme). Have a look at the fade in fade out tutorial and should help.. http://www.xnadevelopment.com/tutorials/fadeinfadeout/FadeInFadeOut.shtml ...Show All
