Fails POSTing Data To Web Server
Apr 22, 2011[code]...
web server was sending a HTTP/1.1 302 Found instead of HTTP/1.1 200 OK
[code]...
web server was sending a HTTP/1.1 302 Found instead of HTTP/1.1 200 OK
Is it possible to spoof the referrer of a webbrowser object that is posting data to a server? I would change to WebRequests, but this needs to be done via a browser.
View 2 RepliesHow can I kill the excel.exe process in SSIS during the data flow task when it fails? There could be multiple instances of Excel.exe running from other packages that are perfectly valid so I don't want to loop through all instances killing them.My problem is that during the data flow task the process will sometimes fail due to a sheet that is named incorrectly or missing columns. This keeps an instance of excel.exe running which is now an orphan task eating up resources so it needs to be killed.At the same time there are other SSIS packages running that are accessing their own excel.exe process and aren't having any issues. So how can I kill the orphan excel.exe process without impacting the other excel.exe process?
View 2 RepliesI've been trying to get this to work for days now, but I fail I have a very small HTTP Web Server using TCP sockets listening on port 80. I can connect and display html to the browser, parse GET parameters; but what I can't get is getting POST data. When I get a POST request, the headers and everything else come in fine, but the POST data is missing:
[Code]...
I am currently working on a form that performs several calculations and then submits it to a sql server. I was able to post test data to SQL when using command.CommandText = "<SQL insert statement, inserted values 'test, 5'>" followed by command.ExecuteNonQuery(). But now when i try to submit data using variables i get an "A first chance exception of type System.Data.SqlClient.SqlException' occurred in System.Data.dll"I am not a programmer, so sorry if my code looks a bit rudimentary...
View 4 RepliesIs there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post: password=theword but WebRequest randomly, and I mean randomly, drops the data when posting to my server. I've tested it by using a chunk of code from my server that dumps the request to a console, and I can that the client is sometimes sending and sometimes not sending the POST data.The code that I'm using that uses WebRequest works in another project, when talking to IIS. The server being talked to (a minimal web server in another system) responds properly every time I POST data to it through Firefox. I've got a function in the same project that fires off a GET request, and that works. It just seems like my POST function isn't completing the transaction...something I've noticed in the past when asking WebRequest to handle small strings.[code]
View 2 RepliesHow to change encoding for posting data from Excel 2007 to win-1251? Now I have UTF-8, use WinHTTP.dll
View 1 RepliesBackground: My VB .Net application is a back-end solution that works with a proprietary Linux-based middle-ware messaging architecture developed by our company. My application references to the middle-ware DLLs, obtains connectivity, and subscribes to specific broadcasts with the middle-ware. When the broadcasts are received, it handles processes them and inserts/updates certain tables in a database. To do so, it has specific notification classes to handle each type of broadcast. These classes adhere to the inheritance model imposed by the middle-ware DLLs.
[Code]...
I am currently using the AsyncFileUpload in my VB.NET web app. Locally it works perfectly, however on the server it fails to upload a small file (<9k). I can't even seem to debug this as in JavaScript handlers I have no idea as to how to get the error reason.
function uploadError(sender,args) {
$get("<%=LabelErr.ClientID%>").innerHTML = "Unable to Upload file for the following reason: ", "<span style='color:red;'>" + args.get_errorMessage() + "</span>";
[code].....
I've came across a little problem with my tcp / ip server. My client can connect to it with 127.0.0.1 ( localhost ), and 192.168.0.X, but every remote connection fails to connect.
Here's the connection rituals:
Server
listener = New System.Net.Sockets.TcpListener(System.Net.IPAddress.Any, Port)
listener.Start()
listenThread = New System.Threading.Thread(AddressOf doListen)
listenThread.IsBackground = True
listenThread.Start()
Client
client = New System.Net.Sockets.TcpClient(IP, Port)
client.GetStream.BeginRead(readBuffer, 0, BYTES_TO_READ, AddressOf DoRead, Nothing)
I have a series of DML and DDL(Drop View only) statements that I need to execute under single transaction from VB.net app. I m using commandObj, and kept above all I kept beginTransaction statement. Everything is working fine expect when error is returned by Drop statement. If Drop statement returns error then whole transaction is rolledback. I do not want tthis. I want to continue even if Drop fails keeping the other DML statements that were executed before Drop.
View 5 RepliesI am trying to save a new object to the database using petapoco.I have an object that uses a Guid for the primary key.Here is an example of the objects primary key property.
<PetaPoco.Column()> _
Public ReadOnly Property Primkey() As Guid Implements IStandardDocument.Primkey
Get
[code]....
Here is an example of the save method.
database.Save("Reservations", "Primkey", reservation)
The sql that is generated is an update with a primkey of 00000000-0000-0000-0000-000000000000 instead of an insert. So new records are never inserted.If I have an existing object with a valid guid the update and delete all work correctly.
I have an application which connects to a database, retrieves a username from a user's table and matches it against the username retrieved with System.Security.Principal.WindowsIdentity.GetCurrent.Name.On my localhost, everything works fine. The database exists on the development server but the application lies on my localhost. All of my authorization and authentication techniques are running smoothly.However, when I publish my application to the development server, I'm faced with the following error.Cannot open database requested in login 'databaseName'. Login fails.Login failed for user 'DevelopmentServerNameASPNET'.
[Code]...
I have written simple module in C#.Net which reads image property (i.e EXIF Data) and to do the same i have used below code:
[Code]....
I have an ASP application with Sql Server 2000 database. The application has a login page. It was working fine. But from past few days, some times login fails and some time it works. I looked into the procedure and ASP page but could not find any issue.
View 2 RepliesI'm stuck on a problem that I haven't been able solve. I'm making a visual basic program that communicates with an SQL-database. The problem emerged when I tried to retrieve data from the database with the help of SqlDataReader and save data from every row to a list (Customer) with the help of Add-method. It turned out that eventually the list had correct number of objects, but the information was the very same in each object of the list.
[Code]...
I'm writing a program which uses sockets, Now the issue I'm having is, If the packet received is over a certain size, the socket then fails to receive anymore packets/data after it.
View 3 RepliesI understand how to post a value back to a standard asp.net page and how to then use that value at the serverside:
Request.Form("id_of_posted_value_goes_here")
How do I do the same in a webservice (asmx)? I can't use the line above because it says:
Name 'Request' is not declared.
I'm having to write a reporting application that gets information from some Interbase servers and it also has to work on Vista as well as XP, I'm using to connect Borlands Data Provider.[code]My Issue is that debugging on my xp Machine the dataset gets filled, debugging on my vista box it fails ("Interbase provider initialization failed"), my initial thought was that this could be UAC related but I've compiled the application and 'ran as admin' and still same issue. (by the way it failes on the line Dim da as BdpDataAdapter...)
View 1 RepliesI'm using Visual Studio 2005 and ASP. NET 2.0 with this program. This is written in VB.net
Right now, we've got a Gridview that is embedded and databound into another gridview. The 2nd Gridview is hidden by default and expanded by the user. Within the 2nd gridview are several DropDownLists. The problem is that these DropDownLists are not firing the OnSelectedIndexChanged functon nor AutoPostback whenever I change the selecteditem.[code]...
I would like to search an online (internet) database and import the result in my own Windows program. As I understand from reading and searching I first have to do a get from the default (search) page to get the cookies for instance and then do a post providing the filled input fields and adding the previously collected cookies. So far getting the information seems to work but submitting the data back to get the actual search result doesn't seem to work. This is what I have so far: [code]Anybody that can point me in the right direction? I my assumption correct that I first have to do a Get and then Post the correct data back?
View 3 RepliesI'm having an issue with sending textfiles line by line on a timer.Currently I can pass a textfile location to my program, and on each tick it will send the first line, or the whole thing line by line. What I want to do is have my program pass line 1 of the text file on the first tick, and line 2 on the second tick, etc.LocationTB is where the user passes a file location.
ElseIf RadioButton2.Checked = True Then
Dim FILE_NAME As String = LocationTB.Text
Dim TextLine As String
If System.IO.File.Exists(FILE_NAME) = True Then
[code].....
I have read the Sticky's on the CodeBank Forum. Since I havn't done this before, and I want to avoid upsetting anyone:A. Compiled Code- I am intending to upload a sample vs2008 project file, and some resources used in the project. I plan to delete the contents of the bin/Debug and bin/Release folders before doing so. Is this all I need to do?
View 2 RepliesI have a simple question on posting to this forum: what tag to use for a code block?
View 4 RepliesI am building a completely custom shopping cart for a client, and thesession("Payment_Amount") nor anything is posting to paypal.
Protected Sub OrderBtn_Click(sender As Object, e As System.EventArgs) Handles OrderBtn.Click
If OrderSummaryLit.Text = "" Then
[code].....
I have a form which contains a fairly large number of values. I am currently submitting with a POST method, but I wish to convert this to do it with jQuery via AJAX. I have been experimenting with converting my code-behind "save to database" function into a Web Method. I am using a two-step function method, firstly preparing all the variables from Request.Form("parameterName") and then passing them all into a "saveData" function as follows:
[Code]...
From the post mentioned above, I can see I can send this string, but how do I process it server-side when recieved? The article implied that HttpContext.Current.Request.Form("parameterName") should work, but it doesn't... I'm guessing because I need to access it from the txtQuery variable..
Function PostWebservice(ByVal AsmxUrl As String, ByVal SoapActionUrl As String, ByVal XmlBody As String) As String
[Code]...
I would like to build an application with visual basic.NET ( i currently have visual studio 2010) which posts a comment from my application to the remote website.On my VB form :i have 4 textboxes ( name, email , site address , and the comment text)and one submit button.on the remote site: 4 texts and 1 submit button !! same fields as my VB form.anyway what i want to do is to just post a comment from my vb application to the site.
View 2 Repliesi have a app in visual basic mobile 2008, so i finish but now i need to tranfer the data generate in the in the app mobile to data base in sql server 2008.
View 1 RepliesI am trying to login and then post message but my code seems useless. Can log in but does not post any message! Please help!!!
Private Sub ButtonPostMessage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonPostMessage.Click
Try
request = Net.HttpWebRequest.Create(strURL)
[code]....