Click here to Skip to main content
13,090,299 members (76,815 online)
Rate this:
 
Please Sign up or sign in to vote.
Hello

I have developed a website in VS2008 using 2.0 framework.
Now I have uploaded it on live server which has VS2005, but it's not working.

Can anyone please tell me, does WebMethod works in VS2005?

Thanks in Advance.

Regards,
Aman
Posted 10-Dec-12 1:39am
Comments
ryanb31 10-Dec-12 8:52am
   
If it is on a live server then VS2005 has nothing to do with it because it gets hosted in IIS. We need a lot more details.
Member 9207317 12-Dec-12 0:02am
   
Hello

Thanks for your help.

Actually I'm working on client's machine using Remote Desktop connection and developing the website on his machine using VS2005.
ryanb31 12-Dec-12 7:56am
   
So, what isn't working?
Member 9207317 12-Dec-12 8:38am
   
I'm calling a WebMethod using Jquery.Ajax.

Jquery code:
function Testok(values) {


alert(location.protocol + "//" + location.host + "//" );
$.ajax({
type: "POST",
url: "NotificationsPage.aspx/UpdateEmailStatus",
data: "{'IDs':'" + values.toString() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
dgNotificatons.Refresh();
}

VB.Net code:

<webmethod()> _
Public Shared Function UpdateEmailStatus(ByVal IDs As String) As Boolean
My code
End Function

it's working fine on my machine which have VS2010 but not on Client Machine that has VS2005.
ryanb31 12-Dec-12 8:49am
   
First off, if it's a webmethod in my experience you put that in an ASMX file, a web service, not in a page (aspx). But have you stepped through the code? What exactly is it doing and what is it not doing?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100