I'm getting an error of:

" The service is unavailable. Server Error Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request. "

I already had a folder such as /mobile/qr-image/ with a ColdFusion Mobile application, and then I created a mobile template in ASP.NET and converted /mobile to an IIS Application.

So at /mobile/ you'd receive the site's ASP.NET mobile template, but at /mobile/qr-image/ you'd receive the site's ColdFusion mobile template.

Only.. /mobile/ works fantastic, but I get the error when I try to view /mobile/gr-image/.

I guess if you think about running a ColdFusion application inside of an ASP.NET application folder, it doesn't make sense and would logically not work, but is there a way in IIS that I could get it to work?

I'm using IIS7.5 and I'm on Windows Server 2008R2

Oh and it's not exactly a possible solution to strip out the ColdFusion application and throw it in another folder.

Any ideas? Is it possible?

Thanks in advance

Edit - Added the contents of my Web.config:

        <customErrors mode="Off"/>
        <modules runAllManagedModulesForAllRequests="true"/>
            <remove name="AboMapperCustom-20623"/>
            <remove name="AboMapperCustom-25687"/>
            <remove name="AboMapperCustom-24453"/>

Short answer: Yes, you can make this work, but a critical configuration piece is to make sure you use a "classic mode" application pool and not an "integrated mode" one.

Long answer: First, make sure you are using ColdFusion 9.0.1, which supports IIS7 integrated mode application pools if you must run those. However, you will not be able to use ASP.NET validators anywhere in your ASP.NET pages if you want to run both ColdFusion and ASP.NET together within the same application pool if running in integrated mode. For this to work, you must run in classic mode, which does not use IIS's module/handler pipeline. There is currently a bug in the .NET framework (still not fixed in .NET 4.0 as I just tested this earlier this week and had a bug submitted to Microsoft about it) with how WebResource.axd is tested for its configuration in Web.config or applicationHost.config. What ends up happening is that the invalid check for WebResource.axd ends up hitting the catch-all handler for ColdFusion and the test fails, throwing a yellow screen of death stating that WebResource.axd is not configured properly. This is bunk as it is configured correctly by default and the code they give you in the error message to fix it is completely wrong.

See the IIS7.net post about this issue for more info on this bug.

  • I'm not using ColdFusion 9, so I'm going to assume the Long Answer is out of the question. – Michael Stone Aug 15 '11 at 17:09
  • You should be able to get it to work as long as you are using a "classic mode" application pool. Prior to CF 9.0.1, CF didn't even support "integrated mode," so you really have no choice. Using a "classic mode" application pool is the only solution currently to support both technologies within the same application pool under IIS7 as this is really just IIS6 mode. And, both work fine together under IIS6 on Win2K3 boxes. – Sumo Aug 15 '11 at 17:36
  • Note that at my current job, we are using CF 8 and CF 9 on different servers with the same integration with .NET working just fine. The gotcha is that we're currently forced to use Win2K3 and IIS 6 for the moment, but under IIS 7, a classic mode application pool will work. It just doesn't work for us as we have an integrated mode requirement under IIS 7. – Sumo Aug 19 '11 at 20:12

Yes you can get it to work. You will probably need to adjust the web.config file which may have specific exclusions in it - and I would check the "compatibility mode" for the .NET application for bitness issues (32bit/64bit).

  • Not sure what I could/should add. I added the contents of my Web.config file to my question. – Michael Stone Aug 15 '11 at 17:16

The other items to look into are the Wildcard mapping for a virtual directory. Sometimes Cold Fusion does not like to co-exist. Add the C:\ColdFusion9\runtime\lib\wsconfig\2\jrun_iis6_wildcard.dll mapping on the VD

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.