开发者

Using VB6 dll in c#.net

开发者 https://www.devze.com 2023-01-17 16:44 出处:网络
I am using vb6 dll in 开发者_运维知识库c#.net. It is working properly but when I host it on iis then it shows an error

I am using vb6 dll in 开发者_运维知识库c#.net. It is working properly but when I host it on iis then it shows an error

S**ystem.Runtime.InteropServices.COMException: Unable to show modal form within this context**

I am using VB6 dll in following way first register it, then add reference in my project and use it

How can I solve that problem?


Don't show dialogs or message boxes on a web server. If that error wasn't checked, somebody would have to break into the server room to click the OK button.


There is the compiler option "unatteded execution" in vb6 forcing it to suppress message boxes and error messages. Compile it that way and vb6 writes such output to the event log.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号