This is hard to describe. I have a web project that works under Visual Studio 2008. I have since upgraded the project to 2010 and all works well on the Dev machine.. I can build the site and run it quite happily on IIS on the Dev PC.
If I publish this site to a remote Web Server, then all the pages that do a postback to themselves dont actually reload themselves, but reload the sites home page...
If I dont actually press publish, but rather copy the directory across and let the web server JIT everything, then it works..
I dont know where to start looking for a problem like this...
Ideas?
Update: I now know that the problem is, just not why its happening.
If I look at the source of the form generated by VS2008 I see
<form name="aspnetForm" method="post" action="/local/solihull" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
If I look at the exact same form generated by VS2010, that entry is
<form name="aspnetForm" method="post" action="index.aspx?band=local&place=solihull" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
Theres a rewrite rule active for these pages, (ISAPI Rewrite) and the rewritten path is being preserved in the Vs2008 version and not in the Vs2010 version.
Update:
Reported to Microsoft... Will post update
Ok, current situation is that If I publish using the Publish button in VS2008 to publish to a seperate IIS server all is fine. If I copy the code to this seperate IIS server and allow it to JIT the code itself, all is fine. If I use the VS2010 publish button then I get different results.
I am stuck at present, as Helicon who make isapi rewrite say its a MS issue, and MS say its a third party issue. I understand there point of view but it doesnt allow be to move forward. I am currently using VS2008 to publish the site for now.