简体   繁体   English

如何将vb.net项目与vb.net网站结合

[英]how to combine vb.net project with vb.net website

I am actually a java/jsp programmer and I am newbie to vb.net. 我实际上是Java / jsp程序员,并且是vb.net的新手。 I wonder if I can combine a project made in vb.net 2008 with a vb.net website (like servlet in java) 我想知道我是否可以将vb.net 2008中的项目与vb.net网站(例如Java中的servlet)结合起来

I have a ready made project with assembly .dll file that is based on 2.0 .net framework. 我有一个基于2.0 .net框架的带有Assembly .dll文件的现成项目。 This project (software) actually to connect it to a handkey 2 hardware. 该项目(软件)实际上是将其连接到手动2硬件的。 It register users to the handkey. 它将用户注册到手动键。 I want to deploy it to the internet as a website. 我想将其作为网站部署到Internet。

-----What I have try so far---- -----到目前为止我尝试过的----

I have created a new website (in vb.net 2008) and add the dll as a reference but it send this error Could not load file or assembly 'RsiDotNetDLL, Version=2.4.0.3, Culture=neutral, PublicKeyToken=11d948a84312b819' or one of its dependencies. An attempt was made to load a program with an incorrect format. 我创建了一个新网站(在vb.net 2008中)并将dll作为参考添加,但它发送此错误Could not load file or assembly 'RsiDotNetDLL, Version=2.4.0.3, Culture=neutral, PublicKeyToken=11d948a84312b819' or one of its dependencies. An attempt was made to load a program with an incorrect format. Could not load file or assembly 'RsiDotNetDLL, Version=2.4.0.3, Culture=neutral, PublicKeyToken=11d948a84312b819' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I just want to share my solution 我只想分享我的解决方案

I have fixed this by open this website with visual studio 2015, select Debug ---> Options ---> Projects and Solutions ---> Web Projects and tick the option " Use the 64 bit version of IIS Express for web sites and projects " 我已通过使用Visual Studio 2015打开此网站来解决此问题,选择“ 调试 ---> 选项 ---> 项目和解决方案 ---> Web项目”,然后勾选“ 对网站使用IIS Express的64位版本,项目

Thanks 谢谢

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM