I recently migrated multiple websites in our development area from an x86 Windows 2003 (IIS6) to x64 Windows 2008 R2 (IIS7). I used "msdeploy" to do the migration. Originally I migrated the entire server but had issues with that so I ended up just migrating the IIS configurations minus the Script Maps. After a few configuration changes I was finally able to get the .NET 3.5 site serving pages in Integrated mode. However, I am having an issue with this section of the main master page:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
<Services>
<asp:ServiceReference Path="~/AjaxServices/FormSubmissionService.asmx" />
<asp:ServiceReference Path="~/AjaxServices/GMapDataService.asmx" />
<asp:ServiceReference Path="~/AjaxServices/ImageGalleryService.asmx" />
<asp:ServiceReference Path="~/AjaxServices/MyFavoritesService.asmx" />
</Services>
each of these generates a script tag like:
<script src="../AjaxServices/FormSubmissionService.asmx/jsdebug" type="text/javascript"></script>
<script src="../AjaxServices/GMapDataService.asmx/jsdebug" type="text/javascript"></script>
<script src="../AjaxServices/ImageGalleryService.asmx/jsdebug" type="text/javascript"></script>
<script src="../AjaxServices/MyFavoritesService.asmx/jsdebug" type="text/javascript"></script>
The web services are being reached but i'm getting the following error when trying to access the "jsdebug":
System.InvalidOperationException: jsdebug Web Service method name is not valid.
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
- the site's app pool is v2.0.050727 Integrated.
- "Enable 32-Bit Applicaitons = false" (flipping this didn't help).
- The site was build for "Any CPU".
- I have the same site running under II7 on my local Win7 box and everything runs fine. The only difference I see is that the app pool is running in "classic" mode. I tried switching the server to "classic" mode with the same results.
- I tried setting
debug="false"
but i get the same error (except /js instead of /jsdebug) - I've run
aspnet_regiis -i
several times. the x64 versions of 2.0 and 4.0 - I've reinstalled IIS and .NET 3.5.1 through the Role Manager several times
- I'm able to get to each of the web service definition pages
I would like to reinstall/repair .net 2.0 but this does not seem possible in WinServer 2008. I read elsewhere that reinstalling the OS is the only way to accomplish this. That is NOT an option.
Am I missing a config somewhere?? Any help would be greatly appreciated!