Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10253 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET 4.0 > i got error in asp.net ...
Kannan1986

i got error in asp.net

Replies: 5 | Posted by: Kannan1986 on 2/26/2010 | Category: ASP.NET 4.0 Forums | Views: 471 | Status: [Member]  


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.


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vuyiswamb
Vuyiswamb  
Posted on: 2/26/2010 7:10:56 AM
Level: NotApplicable | Status: [Member] [MVP] [Administrator]


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. | Reply | Alert Moderator 

Kannan1986
Kannan1986  
Posted on: 2/26/2010 7:25:24 AM
Level: Starter | Status: [Member]

i am using IIS 5.1

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

Vuyiswamb
Vuyiswamb  
Posted on: 2/26/2010 7:36:12 AM
Level: NotApplicable | Status: [Member] [MVP] [Administrator]

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. | Reply | Alert Moderator 

Abhi2434
Abhi2434  
Posted on: 2/26/2010 9:51:04 AM
Level: Silver | Status: [Member] [Microsoft_MVP] [MVP]

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. | Reply | Alert Moderator 

Gttejas
Gttejas  
Posted on: 3/18/2010 8:26:13 AM
Level: Starter | Status: [Member]

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. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/18/2013 1:54:31 AM