Answer Questions
mcerisano HttpWebRequest Exception (503) Server Unavailable
I want to do a HTTP XML request to an IIS server. But the GetResponse() command is throwing the following excpetion: The remote server returned an error: (503) Server Unavailable. I'm using .Net C#. With MSXML and Visual Basic 6.0 the request is working. But I want to use C# now. Has anyone an idea, what to do to solve this problem Below is the code, I'm using. using System; using System.Xml; using System.Net; using System.IO; using Syste ...Show All
Kaa WebClient.OpenWrite()
hi, i'm learning network programming i use my localhost to do this, i got exception "(401) unauthorized ", is this a problem in my code or IIS , i had changed the access permission for this folder "ecommerce" to read and write but i still get this exceptin. is there any suggestion to avoid this here its my code private void WriteToServer_Click( object sender, EventArgs e) { try { //new client WebClient client ...Show All
niyas Async callback causes Windows Forms events to not fire
Hi, I'm not sure where to post this so I've posted it here and on the Windows Forms forum as it involves both. I will try to explain this as quickly and as best I can. If anything doesn't make sense then by all means, please ask for more details. I'm writing a little messager-style app whereby the app fetches messages from a web service. If a new message is returned the data library fires off a NewMessagesArrived event which is picked up ...Show All
Byron Creating an XML based Windows Form.
Hi all I have a very basic question. I have in the past created windows forms that used Oracle tables for the datasource. I am now trying to create a simple application that will only use xml files to read/write data. I used the Visual Studio xml schema designer to define what is essentially my table structure (the file is shown as a .xsd file in the solution explorer). I then created a windows form. At this point I am a bit lost. I am not sur ...Show All
Nick Lee Copy table from mdb to mdf
while i'm having a moan! I am also trying to copy a table from an MDB file to MDF. I've written a simple app to do this and using two bound datagrids i can see the data being added to my new table fine but when i try to save it . nope it wont do it! I am using theis code to save Me .FoldersTableAdapter1.Update(NewDB) NewDB.AcceptChanges() I am Saving to a new sqlserver database which i have created in VB and is a local mdf ...Show All
Dean K login fails for NT Authority?
No idea what is happening. It used to work but could be because I installed SQL Server 2005 along side with existing SQL Server 2000. I am trying to open a connection but i keep getting the error stating that the login failed for NT Authority. I am using trusted connection any ideas This happens when I am opening a connection the SQL on my local dev workstation. added NT Authority in the database log in and works fine ...Show All
Vadim Bad Data problem...
Hi all, I have just ported my .NET 2003 project to .NET 2005. No major problem was experienced during the porting. However I am now getting the following error: "System.Security.Cryptography.CryptographicException: Bad Data." Any suggestions on how I can get around this problem A number of sites that I visited suggested deleting all my cookies, this I have done, but I am still getting the same error. Mike55. ...Show All
FistFullOfSteel SqlDataSource InsertParameters
I am trying to adapt a piece of code written for .Net1.x. Dose any one know how it is possible to pass a byte array into a SqlDataSource Parameter. I have set the parameter type to Byte but it still appears to be wanting a string. Any pointers would be greatly appreciated. Dim iLength As New Integer iLength = FileUpload1.PostedFile.InputStream.Length If iLength = 0 Then Exit Sub Dim sContentType As ...Show All
msdmo Error using WaitHandle.WaitAll() in STA thread.
I have a WinForm application that is declaring Main() with [STAThread] attribute. To optimizing performance I'm using worker threads and rely on WaitHandle.WaitAll() for synchronization. The code compiles but will raise a "NotSupported" exception stating "WaitAll for multiple handles on a STA thread is not supported". This does not seen to be an unreasonable task. Any ideas on why this error occurs Any solutions ...Show All
Sean J Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'.
Cannot open database "db1" requested by the login. The login failed. Login failed for user 'BIGRED1\ASPNET'. I just got sql server ctp 2005 installed and have connected visual web developer with it. I can create databases through VWD, but when i try to open a page with any connectivitiy to the DB i get the above error. Does anyone know what i need to check, change or add Hi, Could you post some code snippets Coz your proble ...Show All
bud1024 how to attach acces file to project in visualstudio 2003
hello can anyone help me to attach acces file to project becouse now when i change location of project, my project stop working becouse it has to be in same place where it was when i was adding a connection. I want to be able to change location of application and mdb file without any problems thank a lot arek Arek, In .Net 2.0, we introduced the concept of Substituion string, which allows you to add Rel ...Show All
Michael Vanhoutte Parent-Child Table Updation Problem
Hi! Note: I'm not using Typed Datasets. I've window form from which: I'm adding new departments to department (DID,Department) table and then adding new employees to employee (EID,Name,DID) table. These tables are related by column "DID" and are filled into one main data set. on form I create new departments and add new employees to both older/newly added departments. I'm using two data adapters, one for employee and ...Show All
CarlosYYYY ByRef ByVal by pointer always?
Some simple guidance please to clear up what really happens differently for ByVal and ByRef. I hear one school of thought that says byRef has poor performance when calls back to the server objects span network boundaries to get at the original parameters and hence using the localised passed in ByVal parameters have better performance in this regard but incurr the overhead of creating the copies and then marshalling these copied objects around, a ...Show All
jjswildfire Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @Stre ...Show All
Matt Connolly Closing an External Program
Hello Everyone and thanks for your help in advance. I have a third party program that is opened daily using Windows Scheduler, which in turn runs a process. However, at the end of the process, the program does not close itself instead simply terminating and leaving itself open. Because of this, Windows Scheduler fails on the next attempt to launch the program unless someone manually closes the program daily. I know a Wind ...Show All
