三层.net Web应用程序问题 [英] Three-tier .net web applications questions

查看:48
本文介绍了三层.net Web应用程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的公司曾经使用ASP

用户界面创建Web应用程序,VB6 COM +带有SQL2K后端的中间层。他们最近使用ASP.NET用户界面和C#COM +

中间层转移到了.NET。 .NET应用程序安装在与旧应用程序相同的

服务器上,并且它们也使用了一些相同的VB6 COM +对象(通过Interop)。 />

我们遇到的问题如下:


1)Web应用程序似乎需要COM +的本地副本

对象以便运行。这意味着每当我重新编译COM +

对象时,我需要将其复制到Web服务器以及COM +服务器,

这似乎是不必要的工作。


2)是否有一种简单的方法可以将非.NET COM +对象与.NET Web

应用程序一起使用?目前我们使用Interop引用它们

有效,但似乎要求它们全部在本地复制。

不幸的是,这意味着无论何时对其中一个进行更改

旧的COM +对象我必须重新编译并重新安装我们所有的.NET

应用程序,否则他们正在寻找的版本是不同的

到COM服务器上的那个。有没有人知道在ASP.NET Web应用程序中使用

VB6 COM +对象的正确方法?


3)我们似乎需要导出新的应用程序代理我们的.NET COM +

对象,即使界面没有改变,为什么会这样?


任何帮助或建议都将不胜感激。


干杯

The company I work for used to create web applications using an ASP
user interface, VB6 COM+ middle-tier with a SQL2K back-end. They have
recently moved on to .NET with ASP.NET user interfaces and a C# COM+
middle-tier. The .NET applications are being installed on the same
servers as the old applications and they are also using some of the
same VB6 COM+ objects (via Interop).

The problems we are having are as follows:

1) The web applications seem to require a local copy of the COM+
object in order to run. This means that whenever I recompile the COM+
object I need to copy it to the web server as well as the COM+ server,
which seems like unnecessary work.

2) Is there an easy way to use non .NET COM+ objects with a .NET web
application? At the moment we are referencing them using Interop which
works but seems to require that they are all copied locally.
Unfortunately this means that whenever a change is made to one of the
old COM+ objects I have to recompile and re-install all of our .NET
applications, otherwise the version they are looking for is different
to the one on the COM server. Does anyone know the correct way to use
VB6 COM+ objects with ASP.NET web applications?

3) We seem to need to export new application proxies for our .NET COM+
objects even when the interface hasn''t changed, why is this?

Any help or advice would be appreciated.

Cheers

推荐答案

" Adam White" <广告******** @ tycoelectronics.com>在消息中写道

news:f0 ************************** @ posting.google.c om ...
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
任何帮助或建议都将不胜感激。
Any help or advice would be appreciated.




您是否考虑过完全删除COM +并替换

其完全托管的.NET Web服务的功能......?



Have you thought of removing COM+ from the equation entirely and replacing
its functionality with fully managed .NET webservices...?


我们还没有将Web服务视为解决方案,因为我们

更关注坚持我们已经使用多年的
三层架构。有没有人知道如何解决我的问题?

有什么?
We haven''t looked at web services as a solution yet because we are
more concerned with sticking to the three-tier architecture we have
been using for years. Does anyone know how to fix the problems i am
having?
你有没有想过将COM +完全从等式中删除并取代其功能?完全托管的.NET Web服务......?
Have you thought of removing COM+ from the equation entirely and replacing
its functionality with fully managed .NET webservices...?



" Adam White" <广告******** @ tycoelectronics.com>在消息中写道

news:f0 ************************* @ posting.google.co m ...
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0*************************@posting.google.co m...
我们还没有将Web服务视为一种解决方案,因为我们更关注坚持我们已经使用的三层架构几年。
We haven''t looked at web services as a solution yet because we are
more concerned with sticking to the three-tier architecture we have
been using for years.




???


webservices完全替换你的COM +层,即它们成为

中间层。你仍然有三层架构......



???

The webservices replace your COM+ tier in its entirety i.e. they become the
middle tier. You still have three-tier architecture...


这篇关于三层.net Web应用程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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