开发者

Can Mono run under IIS 7?

Why would Mono not being able to run under IIS 7 ?

Update: what prevent to develop an ISAPI for that purpose 开发者_运维问答?


Mono does not run under IIS 7 because Mono does not have an ISAPI module that implements the right API to interact with IIS 7.

UPDATE: In regards to your question about what prevents you from developing an ISAPI module to do that? Nothing, really. Mono has a good embedding API that you could easily consume from C/C++. My guess is, the reason nobody has done it is because there is not much of a need to do it.


It may be possible to get mono to work with IIS using FastCGI: http://www.mono-project.com/FastCGI

You can install FastCGI on IIS here: http://www.iis.net/download/fastcgi

Configure FastCGI by opening this file with notepad:

c:\WINDOWS\system32\inetsrv\inetsrv

For example, I run php on iis through fastCGI by adding the following 3 lines to the bottom of this file and then save:

php=PHP
[PHP]
ExePath="C:\Program Files\PHP\php-cgi.exe"

So my wild guess for mono would be maybe:

aspx=ASP
[ASP]
ExePath="C:\Program Files\Mono-2.10.1\bin\mono.exe"

Of course there'll be more to it than this, and my guess is only intended to spark an idea for someone...


You shouldn't need to run Mono on IIS7. Mono is a development of the .NET platform primarialy for Linux (and possible FreeBSD et al as well; been a while since I last looked into it).

Thus if you want .NET on IIS7, just install the native Microsoft .NET stack on your Windows server (it's probably already installed).

Is there any particular reason you want Mono instead of Microsoft's offerings?


First, develop ISAPI is tough. See how many problems PHP ISAPI used to have and how it gradually migrates to FastCGI. Don't waste efforts on that dead end.

Second, use FastCGI to drive XSP may be an easier approach, but Microsoft only provides FastCGI for PHP. Not sure how that can be reused for XSP.

Using Mono of course has its own values, as you have access to XSP and Mono source code to debug any tough issues.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜