简体   繁体   English

asp.net应用程序中的Microsoft.Biztalk.explorerom.dll参考导致system.nullreferenceException

[英]Microsoft.Biztalk.explorerom.dll reference in asp.net application resulting system.nullreferenceexception

I have a asp.net application in order to start/stop applications and ports of BizTalk server 2006 r2. 我有一个asp.net应用程序,以启动/停止BizTalk Server 2006 r2的应用程序和端口。 I have used "Microsoft.Biztalk.explorerom.dll (C:/Program Files/BizTalk Server 2006/Developer tool) " to achieve this. 我已经使用“ Microsoft.Biztalk.explorerom.dll(C:/ Program Files / BizTalk Server 2006 / Developer工具)”来实现此目的。 This is working fine on development machine since biz talk server is installed on local machine. 由于biz talk服务器已安装在本地计算机上,因此在开发计算机上运行良好。 But in the production environment (asp.net web server ,windows 2003 and iis 6.0)...this give System.nullreferenceexception (object reference not set..) at 但是在生产环境(asp.net Web服务器,Windows 2003和IIS 6.0)中……这给出了System.nullreferenceexception(未设置对象引用)。

BtsCatalogExplorer explorer = (BtsCatalogExplorer)myGroup.CreateInstance(typeof(BtsCatalogExplorer))

My BizTalk server and SQL server are on two different box. 我的BizTalk服务器和SQL Server在两个不同的盒子上。 In my setup (asp.net web application)..adding Microsoft.Biztalk.explorerom.dll and Microsoft.Biztalk.Applicationdeployment.engine.dll to GAC. 在我的设置(asp.net Web应用程序)中..将Microsoft.Biztalk.explorerom.dll和Microsoft.Biztalk.Applicationdeployment.engine.dll添加到GAC。 But still no luck. 但是仍然没有运气。

Do I need to install BizTalk server on my local machine even though I am connecting to different BizTalk server? 即使我要连接到其他BizTalk服务器,也需要在本地计算机上安装BizTalk服务器吗?

I'm afraid i'll have to answer with "yes, if you want to use the BTSCatalogExplorer you have to have BizTalk installed". 恐怕我必须回答“是的,如果您想使用BTSCatalogExplorer,则必须安装BizTalk”。 I'm pretty sure this is true for the BT 2006 and earlier releases. 我很确定这对于BT 2006和更早的版本是正确的。 Only install is needed. 只需要安装。 It doesn't have to be an active member running anything (iow no host instances), just part of the group. 它不必是运行任何东西的积极成员(现在没有主机实例),而只是该组的一部分。

I also know that BT 2009 came with a new "build tool". 我也知道BT 2009附带了一个新的“构建工具”。 This allows you to build BT projects without having BT installed. 这使您无需安装BT即可构建BT项目。 Maybe that allows remote communication to the BT management DB too (through the BTSCatalogExplorer) but i haven't looked into or tried this. 也许也允许远程通信到BT管理数据库(通过BTSCatalogExplorer),但是我没有研究或尝试过。

Hope this helpsps;Yes, WebFarms and BT is an expensive option. 希望对您有所帮助;是的,WebFarms和BT是一个昂贵的选择。 Advise; 劝告 make a passthrough service from the outside all passing it on to the machine which has BT installed. 从外部进行传递服务,将其传递到已安装BT的计算机上。 Saves a lot of licenses (but might be a bottleneck for performance) 节省大量许可证(但可能是性能的瓶颈)

Hope this helps, 希望这可以帮助,

Totaly valid question i posed to Microsoft as well. 我也向Microsoft提出了完全有效的问题。 Bottom line, its a licensing issue. 最重要的是,这是一个许可问题。 You must have a license of BT to use the object model for it. 您必须具有BT许可证才能使用对象模型。

I never tried to get a 'libraries only' version to work. 我从未尝试过使用“仅库”版本。 I just opted for the pass-through web-service. 我只是选择了传递式Web服务。

Just to follow up on your current idea/progress; 只是为了跟进您当前的想法/进度; You might want to check the dependency chain of the main BTSExplorerOM.dll to see if there's any reference you missed. 您可能需要检查主BTSExplorerOM.dll的依赖关系链,以查看是否缺少任何引用。 I´m pretty sure its using more than 2 assemblies in total. 我很确定它总共使用了2个以上的程序集。

BT uses a lot of different directories to store its assembly (Pipeline components are loaded from a sub directory of BT, instead of GAC for instance). BT使用许多不同的目录来存储其程序集(例如,从BT的子目录而不是GAC加载管道组件)。

Can you get any more details out of the "NullReferenceException" you are receiving? 您可以从收到的“ NullReferenceException”中获取更多详细信息吗? Like which object/library is causing it. 就像是哪个对象/库导致它。 You could try to use the FUSLOGVW.exe to see if all fusion of assemblies is successfull and take it from there. 您可以尝试使用FUSLOGVW.exe来查看程序集的所有融合是否成功,然后从那里获取它。

Hope this helps, 希望这可以帮助,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET - System.NullReferenceException:未将对象引用设置为对象的实例 - ASP.NET - System.NullReferenceException: Object reference not set to an instance of an object 如何修复asp.net mvc中的App_Web_xxxx.dll中发生的System.NullReferenceException? - How to fix System.NullReferenceException' occurred in App_Web_xxxx.dll in asp.net mvc? 请求Cookie的ASP.NET C#System.NullReferenceException - ASP.NET C# System.NullReferenceException on requesting cookies ASP.NET Core Razor Page 为列表创建新页面总是给出 System.NullReferenceException - ASP.NET Core Razor Page create new for list always give System.NullReferenceException Api in.Net Core System.NullReferenceException - Api in .Net Core System.NullReferenceException ASP.NET 5应用程序参考.NET 4.6 DLL - ASP.NET 5 Application Reference .NET 4.6 DLL 使用Microsoft.BizTalk.ExplorerOM删除BizTalk程序集 - Removing BizTalk Assemblies using Microsoft.BizTalk.ExplorerOM “在ASP.NET控制台应用程序C#中抛出异常:Microsoft.SqlServer.Types.dll中的'System.FormatException'” - “Exception thrown: 'System.FormatException' in Microsoft.SqlServer.Types.dll ” in ASP.NET console application C# 如何在ASP.NET应用程序中添加对32位dll的引用 - How to add a reference to 32 bit dll in ASP.NET application 检查system.nullreferenceException - Check system.nullreferenceexception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM