在asp.net中的rdlc报告中的程序集 [英] assemblies in rdlc reports in asp.net
问题描述
这是我的班级
使用系统;
使用 System.Collections.Generic;
使用 System.Linq;
使用 System.Text;
命名空间 rsCustomAssembly
{
public class 实用程序
{
public string Concat( string string1, string string2)
{
return string1 + + string2;
}
}
}
在rdlc专业我已经给出了参考rsCustomAssembly,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null,并且在类名中我添加了类(Utilities)和实例名称(HelpClass)..
i在rdlc报告中的一个文本框中我已经给出的表达式像这个Code.HelpClass.Concat(power,one)..我收到错误'
错误1加载代码模块时出错:'rsCustomAssembly,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'。详细信息:无法加载文件或程序集''rsCustomAssembly,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null''或其依赖项之一。该系统找不到指定的文件。 D:\praveen \RDLCExample \RDLCExample \AssemblyRdlc.rdlc RDLCExample
错误2类实用程序的类实例声明出错:[BC30002]类型''公用事业''没有定义。 D:\praveen \ RDLCExample \RDLCExample \AssemblyRdlc.rdlc RDLCExample
我认为你在一个版本中完成了应用程序(例如visual studio 2005)并在另一个版本中修改它(例如Visual Studio 2008)。
hi sir ,please help me.
this is my class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace rsCustomAssembly
{
public class Utilities
{
public string Concat(string string1, string string2)
{
return string1 + "" + string2;
}
}
}
in rdlc properies i have given reference rsCustomAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null , and in class name i have added class(Utilities) and instance name(HelpClass)..
i have taken one text box in rdlc report in the expression i have given like this Code.HelpClass.Concat("power","one")..i am getting error''s
Error 1 Error while loading code module: ‘rsCustomAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly ''rsCustomAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. The system cannot find the file specified. D:\praveen\RDLCExample\RDLCExample\AssemblyRdlc.rdlc RDLCExample
Error 2 Error in class instance declaration for class Utilities: [BC30002] Type ''Utilities'' is not defined. D:\praveen\RDLCExample\RDLCExample\AssemblyRdlc.rdlc RDLCExample
I think you are did the application in one version(e.g. visual studio 2005) and modifying it in another version(e.g. Visual Studio 2008).
这篇关于在asp.net中的rdlc报告中的程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!