title: How to run .net function in ColdFusion
body: <p>I'm a junior C# developer and I'm trying to learn Web Development with ColdFusion. I'm having difficulty running this example in the documentation: <a href="http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec13e1a-7fe2.html" rel="nofollow noreferrer">Using a .NET class directly</a>. This is just a simple cfm code to test .NET function on ColdFusion.</p>
  
  <pre><code>&lt;cffunction name="Ping" returntype="string" output="false"&gt; 
      &lt;cfargument name="host" type="string" required="yes"&gt; 
      &lt;!--- Local variables ---&gt; 
      &lt;cfset var pingClass=""&gt; 
      &lt;cfset var pingReply=""&gt; 
      &lt;!--- Get Ping class ---&gt; 
      &lt;cfobject type=".NET" name="pingClass" 
              class="System.Net.NetworkInformation.Ping"&gt; 
      &lt;!--- Perform synchronous ping (using defaults) ---&gt;  
      &lt;cfset pingReply=pingClass.Send(Arguments.host)&gt; 
      &lt;!--- Return result ---&gt; 
      &lt;cfreturn pingReply.Get_Status().ToString()&gt; 
  &lt;/cffunction&gt; 
  </code></pre>
  
  <p>I installed ColdFusion 2016 with these settings: Server Configuration,
  Production Profile + Secure Profile with IP address 127.0.0.1, .NET integration Service, and Built-in web server.</p>
  
  <p>I placed the CFM code here C:\ColdFusion2016\cfusion\wwwroot\test.cfm and I ran it through the browser like this <code>http://127.0.0.1:8500/test.cfm</code>. The error that I get from jnbridge log is "Class Not Found". I have .NET framework installed and the ColdFusion .NET service is running. I also tried restarting everything but it still won't work. Please help. Thank you.</p>