Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 20, 2009 02:51 AM by Thomas Sun – MSFT
Mar 15, 2009 09:35 AM|LINK
I have a hosting a/c with go daddy , and my one site is running fine in local but after uploading it is not working and shows some error like
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
when i tried to take help from godaddy there response was like as :
" Please note, the error you have received is an error regarding your permissions. Trust level refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by Web applications. Our
shared hosting servers use the default Medium trust level with the addition of OleDbPermission, OdbcPermission, and a less-restrictive WebPermission.
Applications operating under a Medium trust level have no
registry access, no access to the Windows event log, and cannot use ReflectionPermission (but can use Reflection). Such applications can communicate only with a defined range of network addresses and file system access is limited to the application's
virtual directory hierarchy.
Using a Medium trust level prevents applications from accessing shared system resources and eliminates the potential for application interference. Adding OleDbPermission and OdbcPermission allows applications to use those data providers to access databases.
WebPermission is modified to allow outbound
http and https traffic."
I did not understand this mail . Please anybody help me how to solve this issue. how to do it ?
link of the site is www.agarwalmilan.com
Thank you very much
Mar 15, 2009 12:20 PM|LINK
First of all tell us, what are you doing in your code, which is making this error come? Are you saving/uploading some file on your hosting OR something else?
Mar 15, 2009 12:27 PM|LINK
i am doing nothing . i made an web site then i published it and uploded it to my hosting which is in go daddy. thats it , and it is running fine in the local and published files are also running fine in the local,
BUT when i upload it there an error comes. site name is
Mar 15, 2009 12:37 PM|LINK
You are using godaddy right?
Are you sure, you have set the directory as application root while creating virtual directory. Moreover, check the permissions on the folder you have your website in.
Mar 15, 2009 12:42 PM|LINK
OK, this is a trick but do save a copy of your web.config before applying this trick
in your webconfig whereever you can find the version number as b77a5c561934e089,
change it to B77A5C561934E089
and upload it on the server. Lets see if it works.
Mar 15, 2009 01:14 PM|LINK
Mar 15, 2009 01:34 PM|LINK
There are always some assemblies having these Version Numbers in Web.Config. But Anyway, try these.
1. Is there any other page in your application. Try accessing that. Does the same error coming there?
2. In your default.aspx, if you have any control validators, then just comment them. Then try to upload the same and try again.
Mar 15, 2009 01:50 PM|LINK
i tried that
but sorry, the same error comes
have u read out the mail that i got from my hosting company,
it was in my first post within quotation " " mark.
please read out that
Mar 15, 2009 02:07 PM|LINK
I have read there response and I am not amazed by it. I was aking you to check any other file other than default.aspx if you have any. Like register.aspx or something like that. Also, try by removing the Validation controls like requiredfieldvalidator or
rangevalidator for a moment.
Mar 15, 2009 02:21 PM|LINK
yes i have also done that but the same error comes.