刚活过来就遇到问题,服务器升级 32位的Windows Server 2003 升级到 64位 Window Server 2008 R2,
由于32位的Web 站点引用了 SMO 所以必须在Web服务器上安装 SMO,这个容易,下载了一个 32位的SMO 装上了。结果程序一直报不能加载“Microsoft.SqlServer.Replication”和“Microsoft.SqlServer.BatchParser”,可着两个东东明明就在“assembly”里趴着啊,Baidu里一通乱搜,发现基本上都是将这两个文件放在了bin目录下或者将Web.Config中的引用删掉,还有个说在 里设置batch="false"。可想而知,没一个能解决我的实际问题。
后来终于想到64位操作系统,是不是因为32位的SMO运行在64位的机器上有问题呢?于是继续Baidu吧。
功夫不负有心人,看了下面这2段话,估计大家就都明白了:
先是无意中发现了这段文字:
“I asked the SMO redist related person about the issue .
Installed SMO redists and did some digging on my 64bit machine with Windows2008 found that MS.BatchParser.dll(x86) has dependency errors on gpsvc.dll and linkinfo.dll of x86 flavours. Unfortunately, these files aren’t installed under SysWOW64 which is why the dependency errors. There isn’t whole lot of informatio