开发者

Error integrating OpenID in asp.net

开发者 https://www.devze.com 2023-03-10 09:49 出处:网络
I am trying to use OpenID in my website using asp.net_c#. I downloaded the latest version of dotnetopenauth 3.4.7 from http://www.dotnetopenauth.net/

I am trying to use OpenID in my website using asp.net_c#. I downloaded the latest version of dotnetopenauth 3.4.7 from http://www.dotnetopenauth.net/ On referencing the binary DotNetOpenAuth.dll from the toolbox, visual studio gives me an error saying there was an error loading types from assembly DotNetOpenAuth.dll and also error in loading system.web.mvc

Please note that I am not developing an MVC website. I am working on asp.net forms website with asp.net v4. Is th开发者_如何转开发e dll only for mvc websites???


I believe Visual Studio is throwing the errors because it can't find the dependencies required by DotNetOpenAuth. You can install the MVC framework, just so that Visual Studio has the dependencies, but you don't have to use MVC in your project.


The DotNetOpenAuth.dll file will work perfectly well in a WebForms page. It is not necessary to add it to your toolbox. Instead, put the DLL into your /bin folder and reference it from your code.

There is a decent walkthrough of this process here.

0

精彩评论

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