ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest! To enable all features please try to register or login.
Autosuggest work on localhost but doesn't work from remote.
Guest
#1 Posted : Sunday, June 22, 2008 10:06:24 PM(UTC)
Rank: Guest

Groups:
Joined: 11/18/2007(UTC)
Posts: 41
Points: -37,613

When i try my example with your autosuggest like this:
http://localhost/myProject/default.aspx
it works and returns suggestions.
But when i try this:
http://MYPCNAME/myProject/default.aspx
it won't return suggestions, i think it won't even call a webservice.
Any idea how to fix this?

This example doesn't work on IIS on windows server 2003.
It also doesn't work on IIS on XP when i call it from different computer.
trooper
#2 Posted : Monday, June 23, 2008 3:52:54 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Hi
I think it happens because the GET and POST are disabled by default when acessing a webservice not from local.
to fix this you need to add this in you web.config file:
in web.config file find the <system.web> section and add
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
<add name="HttpPostLocalhost"/>
</protocols>
</webServices>

under it
for example check the demo application web.config.

Thanks
Guest
#3 Posted : Monday, June 23, 2008 4:24:38 AM(UTC)
Rank: Guest

Groups:
Joined: 11/18/2007(UTC)
Posts: 41
Points: -37,613

This solved the problem.
THANKS A LOT!!!! :).
Keep up the good work.
Guest
#4 Posted : Tuesday, June 24, 2008 8:27:02 AM(UTC)
Rank: Guest

Groups:
Joined: 11/18/2007(UTC)
Posts: 41
Points: -37,613

Message was deleted by User.
Guest
#5 Posted : Tuesday, June 24, 2008 9:34:36 AM(UTC)
Rank: Guest

Groups:
Joined: 11/18/2007(UTC)
Posts: 41
Points: -37,613

I put some logic in to handle the onFailure event and found my issue, I had a letter with the wrong case in the Url.
I however am now working on a new issue, IE is throwing a System.InvalidOperationException: Missing parameter: value .....
trooper
#6 Posted : Tuesday, June 24, 2008 11:56:31 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Hi
FYI You can put a debug console on your page. Just add this code on the page where the autocomplete control is
Quote:
<textarea id='debugConsole' cols='100' rows='30' ></textarea>


as for System.InvalidOperationException I guess that something wrong with your serverside code. Can you post your code here?

Thanks
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.5 RC1 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.066 seconds.