Search code examples
dotnetopenauthkigg

OpenID login problem in shared hosting server


I uploaded my Kigg opensource asp.net mvc based website to a shared hosting server (I am using Asphostcentral). But I encounter a very strange problem when i was trying to login with my OpenID. There is a warning message like this:

"Could not load file or assembly PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies. Access is denied."

But I can run my application well in my localhost. My website is: http://toupiao360.com you can try to login by click blue header region left linkbutton "登录", hope you guys can see this word.


Solution

  • DotNetOpenAuth does indeed reference PresentationFramework. It turns out that this assembly is useful for more than just WPF applications. Namely, it's Xaml serialization capability, and a feature was added to DNOA 3.2 that leverages this.

    However, DNOA can use it slightly differently so that I think it will avoid this error for you. So I've filed Issue 119 on your behalf so that DNOA 3.2.1 will hopefully resolve this issue for you.

    In the meantime, you might try uploading PresentationFramework to your web site's Bin directory to see if that alleviates the problem.