Mono Support Problem - with Monix - Error Config maybe ? Windows 7 with IIS 7 

Viewed 130279 time(s), 13 post(s), 1/6/2011 3:56:23 PM - by shawndg
1/6/2011 3:56:23 PM
1871 Reputation 252 Total posts

Hello All..

I setup Monox on my windows 7 machine and I it is running Monox but I am getting some errors.. and I am not sure exactly why and its causing the site to lag pretty bad..

It setup in C:/#dev folder, and that folder is setup as a virtual directory inside IIS7 and it has been converted to a .net Web application and the app pool is set to .net 4.0..

I also copied over the .net 4.0 webconfig file that was inside the Monox directory to get it to install.. so I did that part right.. Im thinking maybe there a config in there that needs setup to point to C:/#dev or something for the url rewrite to work but im not sure =/

Now I dug into the windows event logs as well as as the Monox ones and tracked the error down too..

2011-01-06 09:53:01,327 [15] ERROR MonoX [MonoX] - Application Error
System.ArgumentException: The virtual path '/Default.aspx' maps to another application, which is not allowed.
at System.Web.HttpContext.RewritePath(String path, Boolean rebaseClientPath)
at MonoSoftware.UrlRewriter.RewriterEngine.Rewrite()
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



The error is causing Monox to lag very badly...
please help =)

Oh ya.. and Im liking Monox very much so far.. great job guys!

1
1/6/2011 5:28:47 PM
7207 Reputation 956 Total posts

Something is wrong with your virtual path configuration in IIS. MonoX can be installed in the virtual folder (so its address is http://localhost/MonoX or something like that), but for some reason the URL rewriter module maps certain URLs to the address space of your root Web site, which is not allowed.
Is this happening on all MonoX URLs, or only on some of them? Can you access the blog page (which is rewritten) at http://yourdomain/subfolder/blog/posts/MonoX? I would also like to see the configuration screens of your IIS MonoX virtual folder.

2
2/14/2011 9:37:01 PM
1871 Reputation 252 Total posts

A copy of my webconfig is sent by mail...

3
1/6/2011 8:43:21 PM
1871 Reputation 252 Total posts

http://localhost/devsite/subfolder/blog/posts/MonoX - produced a blank white page.. ?

4
1/6/2011 10:00:12 PM
7207 Reputation 956 Total posts

Does this mean that you cannot get ANY of the pages in MonoX?
Web.config looks OK, the cause of the problem probably lies in the IIS configuration...

5
1/6/2011 10:14:13 PM
1871 Reputation 252 Total posts

It loads a blank page when i go to .. not found error
http://localhost/devsite/subfolder/blog/posts/MonoX

but when i go to
http://localhost/devsite/blog/posts/MonoX
- it loads.. up as normal

6
1/6/2011 10:27:58 PM
7207 Reputation 956 Total posts

"subfolder" was meant to server as a placeholder for your actual virtual subfolder.
So you installed MonoX in http://localhost/devsite/? That is the root folder? And you can see the blog page? Which page you cannot access?

7
1/8/2011 12:25:41 AM
1871 Reputation 252 Total posts

I am able to browse to pages..

but the program keep reporting the error as described in my original post..

8
1/8/2011 7:14:21 PM
1871 Reputation 252 Total posts

I solved this problem..

My Main issue was that I changed the port IIS runs on.. this caused Monox to break!..
And it breaks good!!..

Ok.. during the installation.. I redid my whole IIS 7 setup.. tried lots of stuff to get rid of the error.. i even made my own website and rooted it to the monox directory but this whole time i was getting random odd errors..

During the install, when using port 66, i found many issues.. the installer.. would lag.. some files would not load.. and the installer could not complete..

In order to even get monox to install i had to set the port to port 80, once I did this the installer flew thru with no issues..

So.. just wanted to post this.. as maybe its a bug with monox config.. unable to support ports other then default port 80 or something.. you guys may want to look into this issue..

I now got the new latest Monox up and running with iis7, on port80, and running in .net 4.0

Thanks for all the help and guidance all... hope this post helps someone else out if they run into issues with ports..

9
1/8/2011 10:14:00 PM
7207 Reputation 956 Total posts

Strange - I did run the installation on the custom port and it seemed to work.
In any case, we will investigate it, glad that you finally got a working system.

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