But if I do so - the whole site crashes. If I delete from the bin folder the file System.Web.Extensions.dll and the site will crash and I get the following error on each page
where there is asp.net ajax used:
Security Exception
Description:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change
the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I would request you to contact GODADDY.com support and ask for their help with your website configuration. There is nothing we can help you with because the final configuration has to be done by your host. Ask them and they will release the security for
you.
Good luck.
Don't forget to mark the post as answer if it helped!
Note: Neither I nor asp .net forums recommend any external links that are mentioned. They are just for peer guidance.
Marked as answer by Vince Xu - MSFT on Jan 23, 2009 08:49 AM
Hey I also have shared hosting with GoDaddy.com and AJAX works perfectly for me. And I didnt exactly had to include any extra dlls in my bin folder for it to work. Although I do use the AJAX toolkit which I was able to upload.
In one of my similar problem I tried this and succeded u can try it.
Our site was done using asp.net 2.0 with ajax.
If your site is .net 3.5 there will be no problem at all but if it is in 2.0 with ajax there will be such problems which is discussed in many forums but nobody is coming with a proper solution.
<div id=:40> Godaddy right now hosting for .net 1.1, 2.0, 3.5 and PHP 5 an all in one server for their shared hosts. In asp .net 2.0 ajax needs a seperate installation.When u install ajax for .net 2.0 downloaded from http://asp.net/ajax/ the version installed in GAC for
System.web.extensions.msil and System.web.extensions.design.msil
is 1.0.61025.0.
But with .net 3.5 no separate ajax installation is required.Whenever u install .net framework 3.5 ajax automatically installed and it resides in C:\windows\assembly (GAC) the
System.web.extensions.msil and System.web.extensions.design.msil version here is 3.5.0.0 and it's a superset of the older version,everything in ajax will work just fine what worked with version 2.0. So what goDaddy was telling that they have already installed ajax they are not at all wrong because they have installed the framework 3.5 and ajax is automatically installed for 3.5. But the application crashed as in our web.config what was created by .net 2.0
the version of those two assemblies are 1.0.61025.0 which is not present in goDaddy server and if we put it in application's bin folder it will not have enough permissions to execute as the upper version of these assemblies are already present there
with security label full trust and goDaddy will not allow u to run these files on full trust in a shared environment which is required. Also if u used the AjaxControlToolkit.dll u need to replace the 3.5 version of that dll. As the older version use the classes of the older assemblies which are not present and the newer AjaxControlToolkit.dll
use the newer msil files.
So in short to fix the problem
1) Go to your web.config file 2) Search for system.web.extensions 3) Change the line version=1.0.61025.0 to version=3.5.0.0 and also change the PublicKeyToken=31bf3856ad364e35 to PublicKeyToken=31BF3856AD364E35 (All Uppercase) 4) Do the same for system.web.extensions.design 5) go to bin folder of your application delete the AjaxControlToolkit.dll and AjaxControlToolkit.dll.pdb 6) go to
http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326 download the
AJAXControlToolkitSource.zip for .net 3.5 extract it go to the SampleWebsite sub folde then go to bin folder and copy those two dll files and upload the two files to server's bin folder. 7) Yep !!! u r done see ur site is now live no error no permission error and ajax pages are just working fine.</div> <div> </div> <div>Jayanta Chakraborty</div> <div> for Brandmantra Solutions PVT LTD</div>
godaddygodaddy shared hosting ajax problemsajax in shared environmentgodaddy ajax problems
In one of my similar problem I tried this and succeded u can try it
<div id=:40> Godaddy right now hosting for .net 1.1, 2.0, 3.5 and PHP 5 an all in one server for their shared hosts.
In asp .net 2.0 ajax needs a seperate installation.When u install the ajax for .net 2.0 mainly 2 dll files
System.web.extensions.dll and System.web.extensions.design.dll are installed which resided in mostly in C:\programfiles\microsoft.net\ajax....... in this folder like that whenever we use ajax
in .net 2.0 .net just searches those dlls in this particular folder and loads the necessary classes from this 2 dll files of
version 1.0.61025.0.
The structure is a bit different with .net 3.5 in .net 3.5 no separate ajax installation is required.Whenever u install .net framework 3.5 ajax automatically installed and it resides in C:\windows\assembly folder
under the global assembly cache and its not in form of dll it's in form of MSIL,
here it is System.web.extensions.msil and System.web.extensions.design.msil and the version here is 3.5.0.0 and it's a superset of the older version,everything in ajax will work just fine what worked with version 2.0.
So what goDaddy was telling that they have already installed ajax they are not at all wrong because they have installed the framework 3.5 and ajax is automatically installed for 3.5.
But the application crashed as in our web.config what was created by .net 2.0
the version of those two assemblies are 1.0.61025.0 which is not present in goDaddy server and if we put it in application's bin folder it will not have enough permissions to execute as the upper version of these assemblies are already present there
with security label full trust and goDaddy will not allow u to run these files on full trust in a shared environment which is required. Also if u used the AjaxControlToolkit.dll u need to replace the 3.5 version of that dll. As the older version use the classes of the older ajax dll files which are not present and the newer AjaxControlToolkit.dll
use the newer msil files of 3.5
So in short to fix the problem
1) Go to your web.config file
2) Search for system.web.extensions
3) Change the line version=1.0.61025.0 to version=3.5.0.0 and also change the PublicKeyToken=31bf3856ad364e35 to PublicKeyToken=31BF3856AD364E35 (All Uppercase)
4) Do the same for system.web.extensions.design
5) go to bin folder of your application delete the AjaxControlToolkit.dll and AjaxControlToolkit.dll.pdb
6) go to
http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326 download the
AJAXControlToolkitSource.zip for .net 3.5 extract it go to the SampleWebsite sub folde then go to bin folder and copy those two dll files and upload the two files to server's bin folder.
7) Yep !!! u r done see the site is now live no error no permission error and ajax pages are just working fine.</div>
Hi Jayanta_bm,
Thank you for your post. This was a very big problem for us before you posted this one. Great work. I think this will help every body who wants to upload site on godaddy server.
mennysh
0 Points
2 Posts
using ajax on godaddy.com shared hosting account
Jan 17, 2009 10:49 PM|LINK
Hello,
I have a shared hosting account at godaddy.com.I am trying to use ajax on my account – for the domain oogazone.com
GODADDY online help and support section says not to include System.Web.Extensions.dll file inside the bin folder.
http://help.godaddy.com/article/2468
But if I do so - the whole site crashes. If I delete from the bin folder the file System.Web.Extensions.dll and the site will crash and I get the following error on each page where there is asp.net ajax used:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
PLEASE HELP !!!
WHAT SHOULD I DO???
ajax Sys.WebForms.PageRequestManagerTimeoutException "Asp.net 2.0" ajax extensions
amit.jain
Star
11225 Points
1815 Posts
Re: using ajax on godaddy.com shared hosting account
Jan 18, 2009 08:36 AM|LINK
You need to check thes thngs wth ur provider
1. are you using windows hosting , which means ur hosted site running on IIS server ?
2. check the version of ajax extensions installed or ur host server ,,,,,it should match with urs
amiT jaiN
ASP.NET C# VB Articles And Code Examples
banavalikar
Participant
792 Points
132 Posts
Re: using ajax on godaddy.com shared hosting account
Jan 19, 2009 09:03 AM|LINK
Hi mennysh,
I would request you to contact GODADDY.com support and ask for their help with your website configuration. There is nothing we can help you with because the final configuration has to be done by your host. Ask them and they will release the security for you.
Good luck.
Note: Neither I nor asp .net forums recommend any external links that are mentioned. They are just for peer guidance.
musashikyo00...
Member
6 Points
14 Posts
Re: using ajax on godaddy.com shared hosting account
Jan 19, 2009 11:39 PM|LINK
Hey I also have shared hosting with GoDaddy.com and AJAX works perfectly for me. And I didnt exactly had to include any extra dlls in my bin folder for it to work. Although I do use the AJAX toolkit which I was able to upload.
I hope you dont have Linux Hosting.
For me I am running IIS 7 and ASP .NET 3.5.
Vince Xu - M...
All-Star
80367 Points
6801 Posts
Re: using ajax on godaddy.com shared hosting account
Jan 20, 2009 04:32 AM|LINK
Hi,
If your application is worked in your side, I suggest you get a contact with godaddy.com to ask for supporting for Ajax.
Some others encountered this problem some time ago. Please check these two thread:
http://forums.asp.net/t/1068248.aspx
http://forums.asp.net/t/1069514.aspx
Somebody contacted godaddy and get response.
jayanta_bm
Member
2 Points
1 Post
Re: using ajax on godaddy.com shared hosting account
Sep 04, 2009 10:49 PM|LINK
In one of my similar problem I tried this and succeded u can try it.
Our site was done using asp.net 2.0 with ajax.
If your site is .net 3.5 there will be no problem at all but if it is in 2.0 with ajax there will be such problems which is discussed in many forums but nobody is coming with a proper solution.
<div id=:40>But with .net 3.5 no separate ajax installation is required.Whenever u install .net framework 3.5 ajax automatically installed and it resides in C:\windows\assembly (GAC) the System.web.extensions.msil and System.web.extensions.design.
1) Go to your web.config file
godaddy godaddy shared hosting ajax problems ajax in shared environment godaddy ajax problems
ayanb
Member
4 Points
2 Posts
Re: using ajax on godaddy.com shared hosting account
Sep 05, 2009 07:12 AM|LINK
Hi Jayanta_bm,
Thank you for your post. This was a very big problem for us before you posted this one. Great work. I think this will help every body who wants to upload site on godaddy server.
Thanks once again.