Mono Support Install Issue - Windows 7 

Viewed 16627 time(s), 10 post(s), 1/13/2013 1:03:06 AM - by JMcNulty
1/13/2013 1:03:06 AM
40 Reputation 6 Total posts

I am having an issue getting MonoX up and running.  I've gone thru all the other posts on install issues, and have not achieved success yet.  I have made some progress, such as installing windows Identity Framework got me past some initial issues.

Status:
1. downloaded MonoX (MonoX_4_7_40_4136.zip)
2. Created a Directory structure of C:\websites\monoxdev and copied the contents in
3. Created an IIS application called MonoxDev, and assigned the directory
4. Verified monoxdev application pool was created, and using .NET v4.0.30319 (ran the aspnet_regiis tool during my many attempts, as well)

I have not touched any files in the default install - I have only viewed them to verify settings from other install trouble threads.

When I run the application (http://monoxdev/) I get the following page:

Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.
I check the Monox logs, and they are empty.
I look in the windows even log and see a security error - well, not so much an error, but an Information:
Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 1/12/2013 7:40:44 PM
Event time (UTC): 1/13/2013 12:40:44 AM
Event ID: 6582668a4d9f458d8167e1fe9e94efc3
Event sequence: 1
Event occurrence: 1
Event detail code: 0
  
Application information:
    Application domain: /LM/W3SVC/2/ROOT-2-130025112437273559
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\websites\monoxdev\
    Machine name: PANTHER
  
Process information:
    Process ID: 2348
    Process name: w3wp.exe
    Account name: IIS APPPOOL\monoxdev
  
Request information:
    Request URL: http://monoxdev/
    Request path: /
    User host address: 127.0.0.1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: IIS APPPOOL\monoxdev
  
Custom event details:
And I can't get past it. I have verified the monoxdev directory has the IIS AppPool\monoxdev with full permissions (I have even tried downgrading to network service and local system, based on other suggestions, with no luck).

I am sure I am missing something simple, but I can't find it. I have another web application running in a similar set-up with no issues.

My system:
Windows 7 Ultimate, 64-bit, Service Pack 1
IIS Version 7.5.7600.16385

Visual Studio 2012 Installed (Just FYI, haven't used for this project yet)

1
1/13/2013 11:34:56 AM
15993 Reputation 2214 Total posts

Hi, Can you please send us browser screenshot so we can check the error. Thanks

2
1/13/2013 2:21:04 PM
40 Reputation 6 Total posts

Attached is the screenshot. Not really much more information, so below I got the network capture from IE 9's Dev Tools.

URL Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎
http://monoxdev/ GET 500 text/html 1.91 KB 0.73 s refresh 0 0 733 0 0 26

3
1/14/2013 10:50:40 AM
15993 Reputation 2214 Total posts

Did you go through the installation process ? Also you have mentioned that you have another application running on the same server, is that application also .Net app running on top of the .Net 4.0 ?

Thanks

4
1/14/2013 1:53:41 PM
40 Reputation 6 Total posts

I did go thru the install process step-by-step (multiple times, even ;) ), including the expanded steps on setting up IIS Application under Windows 7. I also followed the aspreg steps. My belief is something is missing, but I can't figure out what - I originally had a different error that when researching that I discovered I had to install the Windows Identity Framework. So maybe there some other dependencies/assemblies I am missing?

The other application also runs on .Net 4.

Later tonight I may try to get it set-up as a VS12 solution, following the guidelines on this site, and see if I can get any added information. Of course that will most likely result in more hair pulling, but on the plus side I don't have much left anyway. ;)

5
1/14/2013 3:01:23 PM
629 Reputation 83 Total posts

Hi,

try to go to web.config and set customErrors mode to Off, this should bring up famous yellow screen of death when you have unhandled exception. Hopefully this will give you more information about problem you're having.

6
1/14/2013 3:41:43 PM
40 Reputation 6 Total posts

Ah thanks, I'll try that first tonight. For some reason it was stuck in my head I needed to wire it into VS to see the verbose error. Seeing the full error should guide me properly down the rabbit hole.

Hopefully happy updates to follow (and less hair loss).

7
1/14/2013 4:55:00 PM
40 Reputation 6 Total posts

i had a little time over lunch to make that quick change and get the full error:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
 
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
 
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
 
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
   MonoSoftware.MonoX.BaseHttpApplication..ctor() +0
   ASP.global_asax..ctor() +9
Seems I have some security digging to do, which is always a good time.

8
1/14/2013 10:05:17 PM
40 Reputation 6 Total posts

With that info, and a quick search I was able to resolve the issue. It was the fun and elusive Windows Blocking feature. i had to go to the downloaded Zip file and click the 'Unblock' button, then copy the files in again.

I know have a working installation. Thanks!

9
1/15/2013 9:38:28 AM
15993 Reputation 2214 Total posts

Yes sometimes there are pretty strange errors that you are getting when windows blocking kicks in, I'm glad that you have solved your problem.

Let us know if you need more help.

Regards

10
This is a demo site for MonoX. Please visit Mono Software for more info.