Copy link to clipboard
Copied
I have an application running on 2 windows servers. Server 1 has IIS installed and had cold fusion plug into IIS during installation. Server 2 does not have IIS installed and is using the built in cold fusion server to serve its pages. The application on server 1 works perfectly while the same application on server 2 encounters 1 problem.
In the application, images are served through a dll at a path like this:
http://myapplication/somecomponent.dll/getimage?id=2&h=100&w=100
This works perfectly fine under the server with IIS, but is throwing an error under the server running the built in cold fusion web server. When trying to navigate to that directly it says file getimage not found.
I am guessing I am simply missing some sort of configuration within the cold fusion web server to let it know that this is not a path to a file. This was handled for me within IIS, but was not automatically handled within cold fusion. Can anyone provide any insight as to how I might get this to work on the cold fusion stand alone server?
Thanks.
Copy link to clipboard
Copied
@srcdinatale, I think you've got it right. I have to admit I've not worked with DLLs so some of this is guessing. Maybe someone else can offer confirmation or correction.
I don't doubt that IIS could be configured (by default or optionally) to run DLLs some way, but no, that wouldn't be built into the internal web server in CF.
Now, it does happen that you can configure the internal web server to handle different extensions than the default CFM and CFC, etc. There are various blog entries on that, including http://www.revolutionwebdesign.com/blog/index.cfm?mode=entry&entry=EF73296F-D247-9BB9-97915FE0604E7828
But I suppose you would need to look at your IIS configuration (of extensions for your web site) to see how it's set to handle .dll extensions. Even then, I'm not sure how you could tell CF to execute those. Maybe someone else will see a solution.
Is the other server not Windows? Why not install and configure IIS instead? If you did that, you'd then need to run the CF Web Server Configuration tool to connect it to CF.
Hope that helps.
/charlie
Copy link to clipboard
Copied
@charlie, thank you for your help. This is an application that we have developed for a customer and we are unsure of their hosting environment. We simply know that it will be cold fusion on a windows box, but are not sure if they are running IIS or not. Our two server setup was to cover both instances so that we do not run into any surprises when we deliver the application to the customer.
I will look at the link you provided to see if that sheds any light on the subject. I can also try to contact the customer and get more information on their hosting environment. In the mean time, if anyone else has any other ideas they are greatly appreciated.
/tony