Hi,
I am not sure how to ask this, as googling has got me nowhere.
I am creating a flash desktop application, that consumes a .NET webservice. In order to test the webservice, I have a simple .aspx file that uses an asp:ScriptManager to create the javascript required for AJAX calls to the webservice.
This was all fine when I set it up.
However, I have added methods to the webservice- if I attempt to call these methods via javascript, I get an error, saying the method name is undefined.
In fact, it is undefined because the javascript that is automatically produced, neither inline or using the /scriptresource.axd file has any reference to the new method ( or, for that matter, if I comment out an existing one, the reference to the method remains)
To try to get it to refresh, I have:
Cleared cache (repeatedly)
Restarted the browser
Tried in a different browser (!)
Rebuilt the website and the specific pages
Restarted VS Web Developer 2005 Express
Opened web.config and changed it slightly and re-saved (a lead from a google search)
Moved the webservice .asmx to the root of the site ( from the same search result)
Made a whole new page and added a new asp:ScriptManager to it
Now, this would not be an issue, but I do want an AJAX management system for the data that the desktop app will send and receive. and clearly there is either a bug or I am missing something obvious.
So.. any suggestions?
scudsucker 2008.02.26, 01:37PM — .NET - Ajax with "cache" problem
jamiec 2008.02.26, 04:28PM —
Have you tried right clicking the web reference in VS and selecting "Update Web Reference"?
scudsucker 2008.02.27, 09:19AM —
Err.. so I am developing the site in this manner:
I have a folder named Services, in that is webservice.aspx (it is local)
I have a folder named Test, in that folder is the page that should connect to that webservice using the asp:ScriptManager as follows:
<asp:ScriptManager runat="server" ID="scriptmanagerPOES_17" >
<Services>
<asp:ServiceReference
path="~/Services/webservice.asmx"
InlineScript="true"
/>
</Services>
</asp:ScriptManager>
There is no reference to update? Unless I had a self-referential reference? But I cant add a reference to the page because it is pure javascript (albeit created by the ScriptManager control) communicating with the webservice and not the code behind.
Edit - seems to re-create/refresh teh javascript created when I change the ID of the ScriptManager control - POES means "cunt" in Afrikaans, a measure of how irritating this is.
first
