Last post Apr 12, 2013 02:46 AM by kavitha s
Apr 10, 2013 02:36 AM|kavitha s|LINK
I have deployed my website on a GoDaddy dedicated server 2003 and my PageMethods get perfectly called.
But when i tried to deploy it on a Virtual Machine with IIS7 and Windows Server 2008 r2 the PageMethods are not being called.
No value is returned as well.
I have enabled EnablePageMethods as well.
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
The way I have called the method from aspx file is like below:
On the code behind this is the way i have defined the method:
public static string SendQueryResultsAsSpreadSheet(string SQLQuery, string EmailAddress,string periodFrom,string periodTo)
Can you please tell me what can be the possible issue.Please help.
Apr 10, 2013 07:53 AM|sumitjain231|LINK
It seems that this was somewhat of a known problem, as I found out in this other thread
The trick is to set the path for the pagemethods in the page, with some script just after the script manager expanded the settings for the PageMethods.
Adding something like...
Apr 12, 2013 02:46 AM|kavitha s|LINK
Thnx a lot for ur reply.
But the solution is not working for me.
where exactly should i add this piece of code.I tried adding this code just after scriptmanager but its not working. still i get the error PageMethod not found.
Please help me with this.My code works perfectly fine when deployed on Windows server 2003 with IIS6.
Are there any other settings that i should make inorder for my code to work on Windows server 2008 with IIS7.