Hi,
Please help.
I am moving the files of my ASP.NET website to another PC.
The 2nd PC has Visual Studio Express for Web newly installed (same version as on original PC).
To move website to 2nd PC, I am moving these two folders over:
1. Folder for website as appears in Visual Studio 2012\Projects directory on original PC
2. Folder for website as appears in Visual Studio 2012\WebSites directory on original PC
Problem is with AJAX.
I now mention first AJAX problem I had - (it may be solved - but I suspect not properly and so may well be cause of continued problem):
Original error:
0x800a139e - JavaScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl07' can't be added to the application.
I assume this was because directories I copied over already had AJAX in them.
HOWEVER, in order for fresh copy of Visual Studio on 2nd PC to be able to recognise AJAX components, I had to download AJAX Control Toolkit to it.
I don't know but guess this original problem was something to do with duplication of AJAX??
To solve this 1st problem on 2nd PC, I tried:
- Deleting original AJAX files in website's Bin directory (only those named AjaxControlToolkit.dll and AjaxControlToolkit.dll.refresh)
- Roling back PC
- Then freshly installing Visual Studio again and downloading AJAX Control Toolkit so that website would use only one set of files - but didn't work.
I also tried:
- Roling back PC
- Then freshly installing Visual Studio again and downloading AJAX Control Toolkit.
- Then freshly creating a new website by hand and manually adding each AJAX component from new installed Toolkit.
- Also didn't work.
After all this, I found a solution from someone elses forum question.
Add property ScriptMode="Release" to ScriptManager.
(http://www.codeproject.com/Questions/338402/microsoft-jscript-runtime-error-sys-invalidoperati)
This appears to have solved original problem.
However, I now get another problem. This is why I explain the above because I don't know why it was occuring or understand why the solution to it seemed to work. So it could still be original problem but just with a hack to solve some of it.
The current problem:
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 400
This occurs intermittently but frequently.
Notes:
1. The website works absolutley fine on original PC, with no problems at all.
2. The version of AjaxControlToolkit I downloaded for the 2nd PC is same as used on 1st.
3. Only way I could find out how to 'uninstall' Toolkit is to just delete files from the website's Bin directory . I couldn't find any 'Uninstall' function.
4. The only files I deleted from Bin directory are: AjaxControlToolkit.dll and AjaxControlToolkit.dll.refresh.
5. I tried 'Uninstalling' Visual Studio and re-installing (as well as PC roleback) but didnt work.
6. Though rolled back PC, I noticed that 'User Files' are untouched - these include Website files stored under 'Visual Studio 2012' directory, which include the AJAX files (am I deleting all needed files perhaps?) [As well deleting the two AJAX files, I tried deleting the folders for the website under Visual Studio 2012\Projects directory and Visual Studio 2012\WebSites directory but didn't work].
7. Directories I moved from original PC are:
1. Folder for website as appears in Visual Studio 2012\Projects directory
2. Folder for website as appears in Visual Studio 2012\WebSites directory
8. My feeling is original problem was probably not properly addressed.
Any help is really appreciated. This is a very, very big problem.
Thanks.