bal class library的类不适用于3层项目中的webapplication [英] bal class library's classes is not working on webapplication in 3 tier projerct

查看:43
本文介绍了bal class library的类不适用于3层项目中的webapplication的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在3tier项目中工作,我在bal类库中添加了另外两个类,当我要在网站c#页面上的webapplication端使用这两个类时,这两个类都无法在webapplication端访问并产生错误

i am working in 3tier project i added 2 another classes in bal class library and when i m going to use these two classes on webapplication side on a websites c# page then both of classes are not accessing on webapplication side and producing error

推荐答案

使类(类库的类)公开

喜欢这个公共类Email
make the classes(class library's classes) public
like this public class Email


这篇关于bal class library的类不适用于3层项目中的webapplication的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆