如何在ASP.net应用程序中使用VB6 dl。 [英] How to use VB6 dl in ASP.net application.
本文介绍了如何在ASP.net应用程序中使用VB6 dl。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的Asp.net 4.0应用程序中使用vb6 dll,它在VS模式下运行时工作正常但是如果我将应用程序托管到IIS它不起作用。
即使我做了所有的事情,比如在sysWoW64中注册为regsvr32。
请有人提出这个想法。
问候,
kannappan
解决方案
VB6 dll将是一个32位文件。您需要将AppPool配置为以32位进程运行。
在IIS中的应用程序池下,选择应用程序正在使用的应用程序池。右键单击并选择高级设置,并确保启用32位应用程序属性设置为True。
严格说你不能使用vb6 dll在您的ASP.NET项目中,除非它是COM dll。
请参阅:
使用VB6代码的ASP.NET [ ^ ]
从.NET客户端调用COM组件 [ ^ ]
比较ASP.NET 2.0和Visual Basic 6 WebClasses [ ^
Hi,
I am using vb6 dll in my Asp.net 4.0 application,it works fine while running in VS mode but if i host the application into IIS it doesn't work.
Even though i did all stuff like registering in sysWoW64 as regsvr32.
Kindly anyone give the idea for this.
regards,
kannappan
解决方案
A VB6 dll is going to be a 32-bit file. You need to configure your AppPool to run as a 32-bit process.
In IIS, under "Application Pools", select the application pool that your application is using. Right-click and select "Advanced Settings", and make sure that the "Enable 32-bit Applications" property is set to "True".
Strictly saying you can't use vb6 dll in your ASP.NET project unless it's COM dll.
See:
ASP.NET using VB6 code[^]
Calling COM Components from .NET Clients[^]
Comparing ASP.NET 2.0 and Visual Basic 6 WebClasses[^]
这篇关于如何在ASP.net应用程序中使用VB6 dl。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文