Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

AJAX Page Methods Broken in IIS, Work with Built-in Web Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brice - 28 Jul 2007 18:42 GMT
Hi,

We are using static public methods decorated with 'WebMethod' as our
AJAX implementation. We then use the client-side Sys.Net.PageMethod
approach to invoke the page method.

In the same application, this works fine with the built in web server,
but fails with IIS. In IIS we get a 404 error. The application is in a
subdirectory in IIS, in case that matters. All other ASP.NET
functionality seems to be working fine under IIS and as far as I can
tell, the Web.config is set up properly.

Any tips as to what might be the problem?

thanks in advance.
cdmorgan@gmail.com - 10 Aug 2007 15:29 GMT
I was having the same issue and it turns out that REbuilding the
solution fixes the issue.  Build won't work, you have to rebuild.
Apparently this regenerates the proxy.  Unfortunately this means (from
what I've seen) that everytime you make a change to your server-side
method, you'll have to rebuild the solution in order to see that
change.  Otherwise the proxy will call the old method (pre-change).

If anyone knows a more efficient way to see your changes, please let
me know

-chad
cdmorgan@gmail.com - 10 Aug 2007 15:59 GMT
looks like changing and saving the web.config will accomplish the same
thing...

-chad
George Ter-Saakov - 10 Aug 2007 19:10 GMT
Well, changing web.config does the same thing as rebuilding.

George.

> looks like changing and saving the web.config will accomplish the same
> thing...
>
> -chad

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.