Showing posts with label IIS7. Show all posts
Showing posts with label IIS7. Show all posts

Tuesday, March 1, 2011

CFSTAT kills my ColdFusion 8 on Win2008R2

Enabling CFSTAT on ColdFusion 8.01 running on Win2008R2 crashed my ColdFusion ...

I'm talking about this:

I'm trying to figure out why is it that CFDOCUMENT with images, crashes my ColdFusion whenever the image is in a directory for wich the IIS has Integrated Authentication... but that's another story.

In the process of figuring that one out, I tried enabling CFSTAT to get more information on my problem.  My server simply crashed just I clicked the SAVE button.

This post on Adobe forums says:


Turning on CFSTAT in the admin is what killed my server.
Just FYI... I'm using 64-bit Vista with my CF8 installation. 
and the solution to this problem is:

Edit the neo-metric configuration file
c:\ColdFusion8\lib\neo-metric.xml
(This file doesn't contain any formatting, so its best to open it with Dreamweaver or some other editor that will format the file to make it easier to read)  
Delete the following code:
<var name="cfstat">
<string>true</string> </var>  
...which should be located somewhere inside the coldfusion.server.ConfigMap struct.  
<wddxpacket version="1.0">
</wddxpacket>



<header>
<data>
<struct type="coldfusion.server.ConfigMap">
<var name="cfstat">
<string>true</string> </var></struct></data></header>
The problem is not related to x64 windows, as I have a Win2003 x64 server where this setting is enabled with no problem.  I believe the problem is more related to IIS7 ...  any comments ?

Tuesday, February 15, 2011

Not Found:404 with coldfusion.ajax.submitform on IIS7

A friend ran into this error when migrated a CF8 application to IIS7:  
Not Found:404 
It happens when executing a coldfusion.ajax.submitform of a form with quite many fields and values....

As you know, coldfusion.ajax.submitform sends a request to the handler page via URL, that contains the whole structure of the referenced form with it's selected values.   In some cases this means the resulting URL can be very large depending on the complexity of the referenced form.

IIS7 apparently has a lower tolerance to URL Requests size limits than IIS6 had... and in order for some ajax.submitform to work, you would need to increase the size limits on your IIS7.  This is done on REQUEST FILTERING like this:


The red out values have to be increased to match the length of your form.. so it allows IIS7 to send it as an URL Request ...

Saturday, December 18, 2010

Install ColdFusion 8 or 9 on IIS7

When IIS7 (Windows 7, Win Server 2008) installs, by default it doesn’t include two very important features required for ColdFusion to run: ISAPI Extensions and IIS Metabase and IIS 6 configuration compatibility

As I discovered while reading this, before you install CF8 or CF9, you need to go first to CONTROL PANEL --> PROGRAMS AND FEAUTRES and then TURN WINDOWS FEAUTRES ON OR OFF. In here you enable those missing features like this:

Friday, December 17, 2010

IIS7: How to backup and restore one website on IIS7 ..or "the single most important use of appcmd"

Microsoft didn't make it easy for us when it came to facilitate the very important task of backing up one single website on IIS7 to later be able to restore it to a new server...

They didn't even make it easy if you wanted to backup the whole server configuration. In this case you follow the instructions posted in here.

So How was it on IIS6 ?

But when all you want to do is backup ONE SINGLE WEBSITE, with all it's Virtual Directories, all it's settings, passwords, mime types, chaching rules, etc... if you still have II6, you can do like this:


to create the XML file, wich we'll edit to change the SITE ID and SITE NAME or even the HOST NAME to avoid later a conflict when we restore that XML file as new website like this:


But how is it on IIS7 ?

On new IIS7... this is not possible via GUI ...we have to do it the old fashioned way, by typing commands on the CMD console...(running as administrator if you are on Win7 or WinServer2008)

Gotta do as follows:
Go CMD on windows (as adminsitrator) and go to the IIS install folder (say C:\windows\system32\inetsrv\) and type:
appcmd list site

This will list all the sites on the server.... take note of the ID for these sites, the new site you create must have a new ID.
arcpmd list site "myOldSite" /config /xml > myXMLFile.xml
This will create a file named "myXMLFile.xml" on the current IIS Install folder
Edit (with notepad maybe) this file and change the ID values on the XML so it won't conflict with any of the sites previously listed. Also change the name of the site and the binding information..
appcmd add site "myNewSite" /in < myXMLFile.xml
this will take that XML File and turn it into a new website on the server .... a perfect replica of the original ...

This Post helped me a lot understanding the arcpmd command