Click here to Skip to main content
15,885,953 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: onmouseover Javascript event Pin
Blue_Boy11-Feb-07 0:24
Blue_Boy11-Feb-07 0:24 
AnswerRe: onmouseover Javascript event Pin
Guffa11-Feb-07 11:23
Guffa11-Feb-07 11:23 
QuestionWeb.Config error Pin
obarahmeh10-Feb-07 23:58
obarahmeh10-Feb-07 23:58 
AnswerRe: Web.Config error Pin
BORN...again!11-Feb-07 13:45
BORN...again!11-Feb-07 13:45 
Questionkeeping track of clicked node in tree view to get data From SQL server accordingly Pin
EEmaan10-Feb-07 23:38
EEmaan10-Feb-07 23:38 
Questionhelp in keeping track of clicked node in tree view to get data From SQL server accordingly Pin
EEmaan10-Feb-07 23:34
EEmaan10-Feb-07 23:34 
QuestionServerside Testing Pin
Brendan Vogt10-Feb-07 18:35
Brendan Vogt10-Feb-07 18:35 
Questionwebservice response giving problem [modified] Pin
keroed_edmond10-Feb-07 11:21
keroed_edmond10-Feb-07 11:21 
i created a simple webservice

<br />
<WebMethod()> _<br />
    Public Function HelloWorld(ByVal person As String) As String<br />
        Return "Hello" + person<br />
    End Function<br />

andi created a vb.net application that i jus wanted to post the name and get back the response

<br />
' Create the web request  <br />
        request = DirectCast(WebRequest.Create("http://localhost:80/WebService_RPC2"), HttpWebRequest)<br />
<br />
        ' Set type to POST  <br />
        request.Method = "POST"<br />
        request.ContentType = "application/x-www-form-urlencoded"<br />
<br />
        ' Create a byte array of the data we want to send  <br />
        byteData = System.Text.UTF8Encoding.UTF8.GetBytes(data.ToString())<br />
<br />
        ' Set the content length in the request headers  <br />
        request.ContentLength = data.Length<br />
<br />
        ' Write data  <br />
        Try<br />
            postStream = request.GetRequestStream()<br />
            postStream.Write(byteData, 0, byteData.Length)<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.Message)<br />
        Finally<br />
            If Not postStream Is Nothing Then postStream.Close()<br />
        End Try<br />
<br />
        Try<br />
            ' Get response  <br />
            response = DirectCast(request.GetResponse(), HttpWebResponse)<br />
<br />
            ' Get the response stream into a reader  <br />
            reader = New StreamReader(response.GetResponseStream())<br />
<br />
            ' Console application output  <br />
            Console.WriteLine(reader.ReadToEnd())<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.Message)<br />
<br />
        Finally<br />
            If Not response Is Nothing Then response.Close()<br />
        End Try<br />
<br />
        Dim responseString As String = Convert.ToString(reader)<br />

but this doesn't work when i debug the code i see that the request goes through and no exception is thrown as soon as i try to read the response

response = DirectCast(request.GetResponse(), HttpWebResponse)

i get an exceptiong is thrown saying
Quote:
the remote server return an error405)Method Not allowed
can anyone tell me what i am doing wrong is there something i am not doing correcly from the webservice side?





-- modified at 23:53 Saturday 10th February, 2007
QuestionNew to ASP.Net Pin
Member 344923110-Feb-07 8:46
Member 344923110-Feb-07 8:46 
AnswerRe: New to ASP.Net Pin
Guffa10-Feb-07 8:51
Guffa10-Feb-07 8:51 
QuestionWhat is a good way to send reminders??? Pin
code-frog10-Feb-07 4:05
professionalcode-frog10-Feb-07 4:05 
AnswerRe: What is a good way to send reminders??? Pin
Jon Sagara10-Feb-07 4:17
Jon Sagara10-Feb-07 4:17 
GeneralRe: What is a good way to send reminders??? Pin
code-frog10-Feb-07 7:09
professionalcode-frog10-Feb-07 7:09 
GeneralRe: What is a good way to send reminders??? Pin
Jon Sagara10-Feb-07 20:13
Jon Sagara10-Feb-07 20:13 
AnswerRe: What is a good way to send reminders??? Pin
Bassam Saoud10-Feb-07 7:46
Bassam Saoud10-Feb-07 7:46 
QuestionStrange problem in sending file attachment Pin
NetBot10-Feb-07 2:48
NetBot10-Feb-07 2:48 
AnswerRe: Strange problem in sending file attachment Pin
code-frog10-Feb-07 7:12
professionalcode-frog10-Feb-07 7:12 
GeneralRe: Strange problem in sending file attachment Pin
www.Developerof.NET10-Feb-07 15:45
www.Developerof.NET10-Feb-07 15:45 
GeneralRe: Strange problem in sending file attachment Pin
code-frog10-Feb-07 17:10
professionalcode-frog10-Feb-07 17:10 
GeneralRe: Strange problem in sending file attachment Pin
NetBot10-Feb-07 18:37
NetBot10-Feb-07 18:37 
GeneralRe: Strange problem in sending file attachment Pin
code-frog10-Feb-07 18:45
professionalcode-frog10-Feb-07 18:45 
GeneralRe: Strange problem in sending file attachment Pin
NetBot10-Feb-07 20:20
NetBot10-Feb-07 20:20 
AnswerRe: Strange problem in sending file attachment Pin
Grapes-R-Fun10-Feb-07 12:59
Grapes-R-Fun10-Feb-07 12:59 
QuestionTreeView in Asp.net Pin
Ancilla Menezes10-Feb-07 0:28
Ancilla Menezes10-Feb-07 0:28 
AnswerRe: TreeView in Asp.net Pin
B.A10-Feb-07 1:31
B.A10-Feb-07 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.