Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I have a project for a client where I need to access a dot net class through cold fusion. I have that part figured out, but the kicker is the custom class that we made needs a Dictionary object as a parameter and I'm having a heck of a time getting it to work. Every time I try to create the generic class, it's telling me it doesn't exist. I'm not having much luck finding any examples online either. Can anyone help point me in the right direction?

Thanks!


Here's what I'm getting from the server:

Error Occurred While Processing Request
Class System.Collections.Generic.Dictionary not found in the specified assembly list.

The assembly that contains the class must be provided to the assembly attribute.

The error occurred in C:/inetpub/wwwroot/bglowing.cfml: line 14
12 :
13 : <cfobject type=".NET" name="attrs" class="System.Collections.Generic.Dictionary">
14 : assembly="C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll">
15 :
16 : <cfset>
Posted
Comments
Sergey Alexandrovich Kryukov 18-Oct-13 17:14pm    
You screwed up something very well. It looks like the conflict of .NET version after you deployed the project. So, pay attention: what is your target .NET version in development, which version is supported on the target host and what is actually deployed. I hope, everything works fine on your development computer, is that right?
It is not related to System.Collections, which is a part of BCL and "mscorlib.dll".
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900