Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #43

Open
starkemc opened this issue Jul 29, 2014 · 7 comments
Open

Error #43

starkemc opened this issue Jul 29, 2014 · 7 comments

Comments

@starkemc
Copy link

I get this exception when trying to run the project.

An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll

Additional information: Inheritance security rules violated by type: 'System.Web.Http.SelfHost.HttpSelfHostConfiguration'. Derived types must either match the security accessibility of the base type or be less accessible.

@glennblock
Copy link
Contributor

Hi @starkemc thanks for reporting this. I'll take a look.

@iterativo
Copy link

I solved it by using a newer version of System.Web.Http.SelfHost.dll (v5.0), which I downloaded from here

@alex440440
Copy link

You can solve it by installilng https://www.nuget.org/packages/AspNetWebApi.SelfHost package.

@chintsHub
Copy link

Hi, forked this project recently and getting this error. I have tried what @alex440440 suggested. Still no luck

image

Please help, thanks.

@alex440440
Copy link

Don't have the project now... As a general routine I'd suggest to:
1.Check runtime versions of all projects?
2. Run 'update-package -reinstall -project "ProjectName"' in the nuget command line for each project in the solution one by one.

@simpleidserver
Copy link

+1 same issue

@bitmask777
Copy link

The suggestion by Alex440440 solved it for me.

@prakash-patel
Copy link

After using Self Host 5.2.3 package it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants