Webservice problem with xmlhttp

A

AlphaCoder

Hi,

I have an ASP.Net Project in C# which was running perfect and deployed
for past 3 months. Last week i added added an .asmx file (webservice)
in the ASP.Net project and accessed the webserive with xmlhttp object.
The code is supposed to run streaming ticker on the webpage and polls
for data from webservice at regular intervals.

The code works on fine on local deployments, however status code 500
is returned when hosted.
I have also changed the namespace from http://tempuri.org to
http://www.alphacoder.com and still no effect.

I am deploying the website by "publishing" the code and copying all
the files at hosting server.

Can anyone help ... please. What am i doing wrong over here ????

thanks. in advance.

Alphacoder.
 
A

AlphaCoder

Hi,

I have an ASP.Net Project in C# which was running perfect and deployed
for past 3 months. Last week i added added an .asmx file (webservice)
in the ASP.Net project and accessed the webserive with xmlhttp object.
The code is supposed to run streaming ticker on the webpage and polls
for data from webservice at regular intervals.

The code works on fine on local deployments, however status code 500
is returned when hosted.
I have also changed the namespace fromhttp://tempuri.orgtohttp://www.alphacoder.comand still no effect.

I am deploying the website by "publishing" the code and copying all
the files at hosting server.

Can anyone help ... please. What am i doing wrong over here ????

thanks. in advance.

Alphacoder.

I figured out the problem

I added the followin to the app.config to allow the rights

<configuration>
.....
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpPostLocalhost"/>
<!-- Documentation enables the documentation/test pages -->
<add name="Documentation"/>

</protocols>
</webServices>
.....
</configuration>

I guess the HttpPostLocalhost is enabled by default and hence no probs
in accessing the service locally.

thanks... any ways

Alpha coder
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top