从ASP.Net访问C#Windows类库项目DLL [英] Accessing C# windows class library project DLL from ASP.Net

查看:110
本文介绍了从ASP.Net访问C#Windows类库项目DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#Windows类库类型项目,该项目具有一个Web参考,其设置会自动添加到settings.settings文件中(Web服务名称,类型,作用域,值).

I have one C# windows class library type project which has a web reference whose settings are automatically added in to settings.settings file( Webservice name, type, scope, value).

我还有一个单独的ASP.net项目,假设让我们用一页带有按钮的页面即可.

I also have one separate ASP.net project which has let us as suppose, one page with a button.

当我单击此按钮时,它将调用先前项目的引用DLL的方法,然后控制权就在那里了.在该项目中,当控件进入我使用该Web引用的位置时,它将尝试从设置文件中获取Web引用的URL,然后 引发异常-'

When I click this button, it calls a method of referred DLL of previous project and control goes there. When in that project, when control goes in to location where I use this web reference, it tries to get the URL of web reference from settings file and raises an exception - ' The current configuration system does not support user-scoped settings'.

那么,我如何在asp.net项目中调用具有Web服务的c#项目?这确实是我们发展的源泉.请帮忙.

So, What is the way for me to call a c# project having web service in a asp.net project ? This is really a source stopper for our development. Please help.

推荐答案

 

 谢谢您的发帖!我建议您将您的问题发布到 asp .net论坛

 Thank you for your post!  I would suggest please post your question in the forums for asp .net

位于此处: http://forums.asp.net

 located here: http://forums.asp.net

 祝你有美好的一天!!!!!

 Have a great day!!!!!


这篇关于从ASP.Net访问C#Windows类库项目DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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