ColdFusion Builder Security Code Analyzer will not run because of ColdFusion server error - coldfusion

I'm attempting to run ColdFusion Builder 2016's built-in Security Analyzer. It's not working.
Here's my setup
I installed ColdFusion Builder 2016 along with ColdFusion Server 2016, by using the CF Builder installer on Windows 10. I have a valid registration serial for Builder, so this is not a demo version.
I set up ColdFusion 2016 as a Windows service so that it starts up with Windows on my dev machine, and I connected it to the locally running IIS web server. I added a second registration for a ColdFusion server in my CF Builder servers panel so that I could manage the Windows service from Builder. Both of the servers (one marked as a Windows service, one not) show as running in Builder's "CF Servers" panel.
I've run the Security Analyzer before, and had no errors with it. I don't know why it doesn't work today.
Duplicating the error
When I right-click on my project, a directory, or a file, then navigate to Security Analyzer, and try to run the security analyzer, I receive this message in an alert window:
Server error: Security Code Analyzer is not available in this edition of the ColdFusion Server.
Here's what I've tried
I edited my project properties to choose the service, then to choose the non-service. Both of them produced the same error.
I noticed that CF Builder's server registrations did not have "2016" as the version number. One was blank, the other was set to "11". I changed them both to 2016 and restarted CF Builder. I switched my project to each server, back and forth, with a combination of restarting Eclipse between tests. Same error.
I also tried changing the server's port from 8600 to 80 for the Windows service, but that resulted in an expected 404 error.
I restarted my local ColdFusion server and retried the above items. Same error.
Thought
At first I thought this might be that CF Builder thinks this is a server version error. At this point, I'm wondering if the Security Analyzer does not run on the development CF Server, even though I've had it running locally before. I can't connect it to any other CF2016 servers because we have a very, very large installation of CF11 enterprise servers, and have not begun to make a server infrastructure move to CF2016 yet.

The ColdFusion 2016 Code Securiy Analyzer is only available with an Enterprise edition license. However, the EULA for ColdFusion 2016 appears to allow you to use the same license key from a production server to activate a "development" server, so you should still be able to run the Security Analyzer on your development machine.

Related

ColdFusion Builder and Remote ColdFusion Server

My workstation (Windows 7) has CF Builder 3 installed. Remote is CF 2016 Server. What I'd like to accomplish is download the CF source files to local hard drive and use full CF Builder tools like Breakpoints to work with the remote CF Server. I can't install a local CF Server because I am unable to create datasources locally.
Is it even possible to accomplish the setup in my scenario? Here is a site which lists some options: http://csis.pace.edu/~ctappert/cs615-02/support/Help/Using_ColdFusion_Studio/mapping3.htm but none of them fits my needs. I think the best I could accomplish, then, would be to create a subfolder in the remote CF Server site, copy source code to that, and make CF Builder work with the code sitting on the server.
Any ideas?
Thanks!
Never mind,
I ended up working off CFM files on the remote CF Server using Network share; it's slow and I am unable to hit Breakpoints in Debugging in CF Studio but at least I am able to make the CFM code to run on the remote server.
Thanks.

How to configure the ColdFusion Eclipse debugger

I'm running the ColdFusion Builder 3 (Express edition) to connect to a locally running ColdFusion 9 server (windows machine).
When I set up the RDS configuration on the CF Builder and click on Test Connection everything is ok.
But when I click on Test Debugger I get the following error:
Could not initialize class coldfusion.log.CFLogs
Is this a problem with CF Builder 3 trying to access the CF 9 server?
According to this Adobe forum post they resolved the same issue by changing the port setting in ColdFusion Builder to the standard HTTP port (normally 80).
I also found this article which details the steps to setup ColdFusion debugging with Eclipse and it also has the port assigned to 80.
UPDATE:
Read this how-to article from Charlie Arehart. While it references older versions I think the same steps still apply and he mentions specific things that must be enabled on your ColdFusion server for it to work. Hope that helps.
Setting up ColdFusion Builder Step Debugging
And here is a video tutorial from Adobe's blog that steps you through the process as well.
Learn how to debug ColdFusion applications using ColdFusion Builder

Bitness confusion

We are migrating a sharepoint farm from a traditional DC to a private cloud.
One of the forms in a site is calling some web services, both the sharepoint site and Web Service application are housed by the same IIS server. Sharepoint site and the Web Services application are having different application pool.
After migrating, one of the forms that is calling some Web Services is throwing an error about: data connection error. Looking at the sharepoint logs, we found that there is http error 500 when hitting the form's URL and that we realized that hitting the WSDL from the browser is throwing the same error too.
The error in WSDL is about: Could not load file or assembly <...> or one of its dependencies. This error is gone if we set the application pool settings to Enable 32 bit = true.
However, the rendering of form is not completed because setting the WSDL application pool to 32 bit is causing to throw a FileNotFoundException with stack trace:
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(String requestUrl) at ...
We are sure that the cause of the problem here is the binary "bitness" because we are able to simulate the above exception and able to resolve in the other forms by just setting back the 32bit option to false in application pool.
We would like to seek anyone's idea on how to resolve the issue. Unfortunately, we only have the DLL of the Web Service, it will take for us a while to get some source codes so we are hoping for some solution that requires no re-compilation. Also, the source code that we are to receive is not guaranteed to produce the same DLL that is deployed to production due to the age of this legacy system turned blackbox.
For more information on the versions of softwares used:
IIS, source: IIS 6; destination: IIS 7.5
Sharepoint: 2007 (yes unfortunately due to alot of reasons upgrade cannot be done just yet) - source and destination are of the same version
OS: Windows Server 2008 R2 - source and destination are of the same version

ASP.NET Web Service returning Bad Request in Windows Azure

After a Windows 7 fresh restart, I open the Visual Studio 2010 as administrator, create a new project of Windows Azure Project with ASP.NET Web Role, then at the WebRole1 project I add a WebService1.asmx and press F5 (run).
The Windows Azure services starts OK and the browser open the http:/127.0.0.1:8080/WebService1.asmx perfectly. But when I click at Invoke button to test the webservice method I always receive a Bad Request - Invalid Hostname, with a http:/127.0.0.1:8081/WebService1.asmx/HelloWorld.
The most likely cause is ASMX's WSDL file doesn't stand by load balanced environment such as Windows Azure. The test feature relies on WSDL. You will see similar issues if you add a web/service reference. It is recommended to upgrade to WCF. In WCF, you can use useRequestHeadersForMetadataAddress (http://msdn.microsoft.com/en-us/library/ee816894.aspx) to fix the issue. If you need to use ASMX, please try to manually provide a correct WSDL file.

Coldfusion 9 installation problem with IIS7

Windows web server 2008 R2 64 bit, CF9 64 bit, IIS7, ISAPI extensions and filters and II6 metabase compatability installed. OS is on C default, and trying to install CF to D:
Testing IIS and it shows index.html correctly from c:\inetpub\wwwroot at http://localhost/index.html
Then I install CF to D:\ , single standard server licence, select run with all IIS sites, select C:\inetpub\wwwroot as the web root for administrator, and when it gets to the bit where it is supposed to open up administrator to complete the installation it opens up the browser with a 500 error.
Now when I go back to http://localhost/index.html I also get a 500 error, if i uninstall CF I can again reach the html page.
CFIDE has been installed in C:\inetpub\wwwroot presumably correctly. Can anyone tell me where I'm going wrong please.
Update
The exact IIS error is
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Module IsapiModule
Notification ExecuteRequestHandler
Handler AboMapperCustom-28262
Error Code 0x800700c1
Requested URL http://127.0.0.1:80/test.htm
Physical Path C:\inetpub\wwwroot\test.htm
Logon Method Anonymous
Logon User Anonymous
Resolves as below
There is a setting Enable 32-Bit Applications under Application Pool>Advanced settings. Set this to True and you will gain access to your CFIDE>Administrator page.
I would suggest first trying a restart. It is one of those things that after the fact sounds so obvious, but you never think of it. I know I have had problems with installing CF under IIS and had to restart the server to get it running.
I'm humiliated to admit it, but the problem was that what I thought was the cf9 64 bit installer, was the 32 bit one.
# Dave and # CfSimplicity many thanks for your help and in particular the IIS user account stuff was new learning for me.
Try checking the file system permissions for this folder:
D:\ColdFusion9\runtime\lib\wsconfig
The account that IIS uses needs Read, Execute and Modify permissions on this folder and below.
It might be because of two problems.
1) you haven't installed CGI, ISAPI extensions and ISAPI filters aren't installed yet in Web Server (IIS) of Server manager.
Window 2008 R2 with Coldfusion
2) you need to enable 32 bit application at IIS7.
Internal 500 error CF9 on Window 2008
I tried a different approach with my Windows 7 Home Premium - See http://coldfusioner.blogspot.com/2011/12/fix-number-1-installing-64-bit.html
It seems that I was successful by using the IIS Connector batch scripts manually and then to create a second default web site after installing the handlers. My article link above shows the steps I took - a very raw article and will likely be refined as I hear from others how they adapted my approach. The important thing is that this worked ;>) I hope it helps others...
The problem could be that your Application Pool that is part of your default website. It is possible to set it to run 32 bit applications. Try setting the Enable32bit to false in the defaultapppool of your IIS server, restart the app pool and your www service itself. Then try to use the ColdFusion wsconfig tool to add the IIS mapping. It should work even without the cf 9 updater 1 being installed on the server.
​To avoid a 500 error when accessing the Administration console for the first time when installaing ColdFusion 9 on a Windows 2008 server with IIS 7.5 installed, include the "IIS_IUSRS" user group with "Full Control" to the \Lib\wsconfig folder in Enterprise server or \runtime\lib\wsconfig folder in Standard server. Before starting the ColdFusion install, make sure the "IIS 6 Management Compatibility" functions are installed, especially the "IIS 6 Metabase Compatibility" function.
Assuming that you use the default installation paths (C:\JRun4 for Enterprise or C:\ColdFusion9 for Standard), here is a step-by-step approach:
Begin the ColdFusion installer as an Administrator. At the completion of the initial installation process, but before accessing the online Administration console, do the following:
1.) At the Start Menu, select "Computer"
2.) In the Enterprise install, go to C:\JRun4\lib. For the Standard install, go to C:\ColdFusion9\runtime\lib.
3.) Right-click "wsconfig" and select "Properties" to open the wsconfig properties dialog box.
4.) Click the "Security" tab.
5.) Click "Edit" to change permissions for that folder.
6.) Click "Add..." to add a new user/group.
7.) Enter "IIS_IUSRS" in the Object name field and click OK to return to the Permissions dialog box.
8.) In the permissions dialog box, ensure that the "IIS_IUSRS" group is highlighted and click "Full Control" in the "Allow" column, then click "OK" to close the dialog box. Ensure that the permissions change will affect all files and folders under wsconfig.
9.) Click "OK" to close the wsconfig properties box.
Return to the ColdFusion installer wizard and continue the installation by clicking the open ColdFusion Administrator link. If the settings are correct, after a minute or two, a web browser with the ColdFusion Administrator Console should appear so you can complete the installation.