HighTechTalks DotNet Forums  

Webservice problem with xmlhttp

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Webservice problem with xmlhttp in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AlphaCoder@gmail.com
 
Posts: n/a

Default Webservice problem with xmlhttp - 03-04-2008 , 11:42 PM






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.

Reply With Quote
  #2  
Old   
AlphaCoder@gmail.com
 
Posts: n/a

Default Re: Webservice problem with xmlhttp - 03-05-2008 , 01:27 AM






On Mar 4, 9:42*pm, AlphaCo... (AT) gmail (DOT) com wrote:
Quote:
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


Reply With Quote
  #3  
Old   
AlphaCoder@gmail.com
 
Posts: n/a

Default Re: Webservice problem with xmlhttp - 03-05-2008 , 01:27 AM



On Mar 4, 9:42*pm, AlphaCo... (AT) gmail (DOT) com wrote:
Quote:
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


Reply With Quote
  #4  
Old   
AlphaCoder@gmail.com
 
Posts: n/a

Default Re: Webservice problem with xmlhttp - 03-05-2008 , 01:27 AM



On Mar 4, 9:42*pm, AlphaCo... (AT) gmail (DOT) com wrote:
Quote:
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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.