网站访问和Web服务访问之间的区别

时间:2011-04-15 20:16:08

标签: c# asp.net web-services

question之后,我遇到了另一个问题,即请求没有通过。当我第一次接到任务时,该网站的工作方式如下:

网站 - >网络服务 - >图书馆 - >外部服务器(TextML Server适用于那些可能熟悉它的人)。

我被问到了一些事情,其中​​之一就是让Web服务层不再提高性能,如下所示:

网站 - >图书馆 - >外部服务器

所以我浏览了代码并进行了适当的更改,但我遇到了一个问题,即身份验证问题,我问了问题并找到了解决方案。现在,网站使用正确的用户连接外部服务器。但是,与这个特定服务器连接的方法只是运行并继续,开启和开启....

所以问题很简单:

外部服务器是Web服务还是尝试建立连接的网站有区别吗?

我在Windows XP上使用c#,asp,当我首次亮相时,我使用运行IIS 5.0的本地IIS(我知道它有点旧)

另外,还有一点需要注意,如果在同一个方法中,我使用我网站上的webservice进行连接,它可以工作,然后下一行代码我使用该库,但事实并非如此。

示例代码:

WsDocServerService.DocServer doc = new WsDocServerService.DocServer();
XmlDocument oIndexList = new XmlDocument();
oIndexList = doc.GetSystemDocument(INDEX_FILE);//This will work
oIndexList = DocServerController.GetSystemDocument(INDEX_FILE);//This wont
//But both way I use the DocServerController.GetSystemDocument(filename); to get the file

非常感谢! 虽然,我不需要解决方案,也许正确的答案可以帮助我解决问题! 的修改

上面调用的Web服务方法是调用控制器方法:

DocServerController.GetSystemDocument(INDEX_FILE);

这就是为什么我认为这对于使用Web服务毫无用处,是的,我的意思是.ASMX Web服务。

我选择了服务器的管理员并查看了事件日志,每次运行上述方法时都会出现与COM +程序相关的错误。可悲的是,我认为这个问题与服务器本身有关。

你认为我应该关闭这个问题吗?

修改

事件查看器记录条目:

The run-time environment has detected an inconsistency in its internal state.
This indicates a potential instability in the process that could be caused by
the custom components running in the COM+ application, the components they 
make use of, or other factors. VariantUnmarshal: CoUnmarshalInterface for 
IID_IDispatch failure

Server Application ID: {F27C90B8-C40E-4B76-8F01-A8C035EACC08}
Server Application Instance ID:
{79C9FDFC-78AD-461B-95E6-80FF54880317}
Server Application Name: Textml Server
Error Code = 0x800706ba : The RPC server is unavailable.
COM+ Services Internals Information:
File: d:\nt\com\complus\src\comsvcs\ucp\assoc.cpp, Line: 723
Comsvcs.dll file version: ENU 2001.12.4720.3959 shp

For more information, see Help and Support Center at  
http://go.microsoft.com/fwlink/events.asp.

1 个答案:

答案 0 :(得分:1)

您的服务器上似乎存在一些COM +配置错误。

以下是遇到此问题的其他人的一些解决方法(事件4689): http://www.eventid.net/display.asp?eventid=4689&eventno=3980&source=COM+&phase=1