ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest Search | Active Topics | Members | Log In | Register

Autosuggest work on localhost but doesn't work from remote. Options · View
Guest
Posted: Monday, June 23, 2008 3:06:24 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
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
Posted: Monday, June 23, 2008 8:52:54 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 23
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
Posted: Monday, June 23, 2008 9:24:38 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
This solved the problem.
THANKS A LOT!!!! :).
Keep up the good work.
Guest
Posted: Tuesday, June 24, 2008 1:27:02 PM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
colorado daily news yahoo,
Guest
Posted: Tuesday, June 24, 2008 2:34:36 PM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
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
Posted: Wednesday, June 25, 2008 4:56:31 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 23
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
Users browsing this topic
Guest


Forum Jump
You can post new topics in this forum.
You can 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.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.