MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

SecurityException during Install  (Mono Support )

38883 put(a) pogledan, 3 odgovor(a) 18.3.2012. 11:32:09Kreirao(la) rugby
rugby

rugby

18.3.2012. 11:32:09
Hi

I am installing the latest version of MonoX on the fowlloing platform for which I have total control,

Windows 2008 R2 server
MSSQL 2008 R2IIS 7.5
.NET 4.0

I have followed guide in manual and on this web site. I have set all permissions to Network Service for both files/folders and Application in IIS. When browsing to the install I receive this error (after truning off custom errors):

Stack Trace:

[SecurityException: That assembly does not allow partially trusted callers.]
MonoSoftware.MonoX.BaseHttpApplication..ctor() +0
ASP.global_asax..ctor() +9

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272

I have searched around and can't find a solution to it.

Any help would be greatly appreciated.

Thanks


Ovaj sadržaj još nije ocijenjen. 
30 Reputacija 2 Ukupno objava
rugby

rugby

18.3.2012. 15:47:56
Hi

After searching around I discovered this link http://superuser.com/questions/38476/this-file-came-from-another-computer-how-can-i-unblock-all-the-files-in-a once I had followed the instructions and ran stream only on my MonoX directory the install carried on smoothly. You can download the streams app here http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx and do the following:

CD in command prompt to where you extracted streams.exe and execute

streams -s -d directory (my directory is c:\inetpub\wwwroot\MonoX2 )

You should see it removing the block data. Once complete I did iisreset /restart and browsed to the site, the install Wizard ran with no problem.



Ovaj sadržaj još nije ocijenjen. 
30 Reputacija 2 Ukupno objava
denis

denis

18.3.2012. 21:45:02
I'm glad to see that you discovered the cause for this error. We had answered it a few times in the past, for example http://www.mono-software.com/Mono/Pages/Discussion/dtopic/8BkR3tulN0ud6p-6AWIECg/SecurityException-That-assembly-does-not-allow-partially-trusted-callers/ and http://www.mono-software.com/Mono/Pages/Discussion/dtopic/oo-DDY8tBkKY95-3AQFuOA/NA/?dmsgId=ZvPhhSlZoUavCJ-7AQkUfg#PostZvPhhSlZoUavCJ-7AQkUfg  
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava