Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion Server Administration
Viewing all articles
Browse latest Browse all 78799

Class System.Environment not found in the specified assembly list. HELP!!!!

$
0
0

I'm trying to get dotnet integration working on a CF8 or CF9 server install running x64 CF on top of x64 Ubuntu. No matter how I try to access the .net assemblies, I get the "Class  System.Environment not found in the specified assembly list." error. My test code is below. All documentation I'm finding for this feature is based around Windows installs, which does me no good. I have already tested things such as permissions and such. In addition, I've tried both 32bit and 64bit .Net libs, and I've tried putting them in various loactions including the "dotNetProxy" directory. Every attempt has been met with failure. Any suggestions are appreciated.


Tha code is as follows:


 
    <cfset seClass=""> 
    <cfobject type=".NET" name="seClass" class="System.Environment" assembly="/var/www/steve/x64/mscorlib.dll"> 
    <cfset version = seClass.Get_Version().ToString()> 

 

 

 

<cfdump var="#version#">



The path listed to the assembly is simply one of the many temp dirs I've tried using.


Here is the code for another test I tossed together real fast:

 

<cfscript>
nConnb = CreateObject('.NET', 'System.Data.SqlClient', '/var/www/steve/x64/System.Data.dll');
activator = CreateObject('dotnet', 'system.Activator');

 

// HACK! No 'new' creator in CFML
p = ArrayNew(1);
ArrayAppend(p,'Data Source=x.x.x.x;Initial Catalog=master;User Id=sa;Password=[BLANK];');

 

nConn = activator.CreateInstance(nConnb._GetType(),p);

 

nConn.Open();

 

nComm = nConn.CreateCommand();

 

nComm.set_CommandText( "SELECT current_timestamp;" );

 

cv = nComm.ExecuteScalar ();

 

</cfscript>
<cfdump var="#cv#">



Both of these, plus many more tests all get the same "The assembly that contains the class  must be provided to the assembly attribute.             " missing assembly error. I'm at my wits end here as to a solution.


Viewing all articles
Browse latest Browse all 78799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>