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
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.
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
ASP.NET 3.5
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."
<div style="margin-left: 40px;">
</div>
I did not understand this mail . Please anybody help me how to solve this issue. how to do it ?
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?
Thanks and Regards.
Mohit Bhardwaj.
Consultant.
My Blog
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
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.
Thanks and Regards.
Mohit Bhardwaj.
Consultant.
My Blog
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.
Thanks and Regards.
Mohit Bhardwaj.
Consultant.
My Blog
Sanjeev.Kejr...
Member
73 Points
347 Posts
some problem when site is uploded
Mar 15, 2009 09:35 AM|LINK
Hello ,
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
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.
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 ASP.NET 3.5 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."
<div style="margin-left: 40px;">
</div>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
mbdwaj
Member
157 Points
49 Posts
Re: some problem when site is uploded
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?
Mohit Bhardwaj.
Consultant.
My Blog
Sanjeev.Kejr...
Member
73 Points
347 Posts
Re: some problem when site is uploded
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
www.agarwalmilan.com
mbdwaj
Member
157 Points
49 Posts
Re: some problem when site is uploded
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.
Mohit Bhardwaj.
Consultant.
My Blog
mbdwaj
Member
157 Points
49 Posts
Re: some problem when site is uploded
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.
Mohit Bhardwaj.
Consultant.
My Blog
Sanjeev.Kejr...
Member
73 Points
347 Posts
Re: some problem when site is uploded
Mar 15, 2009 01:14 PM|LINK
mbdwaj
Member
157 Points
49 Posts
Re: some problem when site is uploded
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.
Mohit Bhardwaj.
Consultant.
My Blog
Sanjeev.Kejr...
Member
73 Points
347 Posts
Re: some problem when site is uploded
Mar 15, 2009 01:50 PM|LINK
i tried that
http://www.AgarwalMilan.com/Default.aspx
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
mbdwaj
Member
157 Points
49 Posts
Re: some problem when site is uploded
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.
Mohit Bhardwaj.
Consultant.
My Blog
Sanjeev.Kejr...
Member
73 Points
347 Posts
Re: some problem when site is uploded
Mar 15, 2009 02:21 PM|LINK
yes i have also done that but the same error comes.