i got error in asp.net

Posted by Kannan1986 under Regular Expressions on 2/26/2010 | Views : 1143 | Status : [Member] | Replies : 5
Hi,
I got error in asp.net


System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.




Responses

Posted by: Vuyiswamb on: 2/26/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down

look at this

You are running into Permission problems. Are you using IIS6 ?

Thank you for posting at Dotnetfunda
[Administrator]

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kannan1986 on: 2/26/2010 [Member] Starter

Up
0
Down
i am using IIS 5.1

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 2/26/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
ooh yes you have the same problem mentioned here
http://forums.iis.net/t/1014180.aspx

Thank you for posting at dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 2/26/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Check every Dll you reference to the project and also every file. Go to properties of each of them and see where it is taken from.

If you take dll from ur network path, this is the most common issue of many developers nowadays.

:)


www.abhisheksur.com

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gttejas on: 3/18/2010 [Member] Starter

Up
0
Down
Hi,

Please assign rights to your application folder for the following users

1) aspnet
2) local iis user
3) local workerprocess user

this will solve above error.



Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response