Hi, can you please tell me, if possible, what this PS exception (1.5 ver, I am using Do4.2.5) means?

Exception stack:

System.TypeInitializationException: The type initializer for 'Bonefisher.Business.DomainFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for '~PostSharp~Laos~Implementation' threw an exception. ---> System.Security.SecurityException: Request failed.    at PostSharp.Laos.Internals.DeserializeFromResource(Assembly assembly, String resourceName)    at ~PostSharp~Laos~Implementation..cctor()    --- End of inner exception stack trace ---    at Bonefisher.Business.DomainFactory..cctor() in E:\-- Projects --\Bonefisher\Bonefisher.Business\Bonefisher.Business\DomainFactory.cs:line 9    --- End of inner exception stack trace ---    at Bonefisher.Business.DomainFactory.GetDomain()    at Bonefisher.Business.TestServices.SetData(String text) in E:\-- Projects --\Bonefisher\Bonefisher.Business\Bonefisher.Business\TestServices.cs:line 16

thanks, David


Updated at 07.08.2010 13:15:03

It is working locally, but on a remote server (Sql Server 2008) I get this exception.. Maybe it is somehow related to their security configuration?

And an additional info: they are running Asp.Net 4... i am building with .net 3.5


Updated at 07.08.2010 14:41:21

I figured it out: You cannot use IIS App pool with target .Net 4.0 and the web-app with referenced dlls built with PS1.5 (.Net 3.5).

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by david_csharp.

asked Aug 07 '10 at 13:13

Editor's gravatar image

Editor
46156156157

edited Sep 03 '10 at 16:29

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412


2 Answers:

Good then :)

answered Sep 03 '10 at 16:32

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

nice bro

by onlinecci

answered Dec 14 '16 at 19:12

sahaeta9's gravatar image

sahaeta9
5

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA