Skip navigation
Currently Being Moderated

Class not found in the specified assembly list.

Feb 24, 2012 8:19 AM

Tags: #not #class #in #found #the #list. #cf9 #specified #assembly

Hi All,


I am creating a .dll object from ColdFusion but I am getting the following error message.


"Class GenerateSQLReport not found in the specified assembly list. The assembly that contains the class must be provided to the assembly attribute."


The Process I have followed:


- Updated the ColdFusion 9.0.1

- Uninstall the  .NET Integration Service

- Install the .NET Integration Service for 9.0.1

- Run the code.


My Code is : "<cfobject type="dotnet" name="MDBDTable" class="GenerateSQLReport" assembly="#expandPath('./GenerateSQLReportDLL.dll')#">"



I got the following StackStrace:


______________________________________________________________________ ______________________________________________________________________ ____________________________

coldfusion.runtime.dotnet.Assembly$DotNetClassNotFoundException: Class GenerateSQLReport not found in the specified assembly list.

    at coldfusion.runtime.dotnet.Assembly.generateProxy(

    at coldfusion.runtime.dotnet.Assembly.loadClass(

    at coldfusion.runtime.dotnet.Assembly.loadClass(

    at coldfusion.runtime.dotnet.DotNetProxyFactory.getProxy(DotNetProxyFact

    at coldfusion.runtime.ProxyFactory.getProxy(

    at coldfusion.runtime.CFPage.createObjectProxy(

    at coldfusion.tagext.lang.ObjectTag.doStartTag(

    at coldfusion.runtime.CfJspPage._emptyTcfTag(

    at cfDotNetDll2ecfm375138657.runPage(D:\Projects_Upendra\CodeForTesting\ DotNetDll.cfm:2)

    at coldfusion.runtime.CfJspPage.invoke(

    at coldfusion.tagext.lang.IncludeTag.doStartTag(

    at coldfusion.filter.CfincludeFilter.invoke(

    at coldfusion.filter.ApplicationFilter.invoke( )

    at coldfusion.filter.MonitoringFilter.invoke(

    at coldfusion.filter.PathFilter.invoke(

    at coldfusion.filter.LicenseFilter.invoke(

    at coldfusion.filter.ExceptionFilter.invoke(

    at coldfusion.filter.BrowserDebugFilter.invoke( 4)

    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePers

    at coldfusion.filter.BrowserFilter.invoke(

    at coldfusion.filter.NoCacheFilter.invoke(

    at coldfusion.filter.GlobalsFilter.invoke(

    at coldfusion.filter.DatasourceFilter.invoke(

    at coldfusion.filter.CachingFilter.invoke(

    at coldfusion.CfmServlet.service(

    at coldfusion.bootstrap.BootstrapServlet.service( 9)

    at jrun.servlet.FilterChain.doFilter(

    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringS

    at coldfusion.bootstrap.BootstrapFilter.doFilter( )

    at jrun.servlet.FilterChain.doFilter(

    at jrun.servlet.FilterChain.service(

    at jrun.servlet.ServletInvoker.invoke(

    at jrun.servlet.JRunInvokerChain.invokeNext(

    at jrun.servlet.JRunRequestDispatcher.invoke( 286)

    at jrun.servlet.ServletEngineService.dispatch( 543)

    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.ja va:203)

    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo

    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j ava:428)

    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool. java:266)


______________________________________________________________________ _______________________________________________



Please help.

  • Dave Watts
    747 posts
    Mar 11, 2003
    Currently Being Moderated
    Feb 26, 2012 10:17 AM   in reply to Upen@Roul

    This might be a dumb question, but have you verified that this assembly does, in fact, contain this class? How did you perform this verification?


    Dave Watts, CTO, Fig Leaf Software

    Mark as:
  • Currently Being Moderated
    Feb 29, 2012 11:25 AM   in reply to Upen@Roul



    Is it a public class - and is that the full path (including namespace)?

    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 1:01 PM   in reply to Upen@Roul

    I also tried with other sample dll but each time I failed .


    Can you invoke any dll's at all? If not that suggests a different problem.





    Otherwise, I do not know if you saw the earlier question but is that the full path to the class (including any namespace)?

    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 1:19 PM   in reply to Upen@Roul

    I don't know .NET very well. If I am missing something please suggest.


    The CF code must include the full path to the class, including any namespace. When you create a C# project in Visual studio it typically uses the project name as the  "default namespace". So if your project is named "MyProject" the full path would be:


       <cfobject type="dotnet" class="MyProject.HelloWorldProc" ...>


    Message was edited by: -==cfSearching==-

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points