asp.net-mvc


DotNetOpenAuth 4 Sample MVC provider throws exception


I'm using the sample provider and relying party applications that come in the DotNetOpenAuth v4.0.0.12084 zip download and getting a protocol exception within the provider.
The web.config files provided in the samples don't appear to be valid as they try to use ASP.NET MVC 3 with .NET framework 3.5 (2). So I've updated them to use .NET framework 4.
These test URLs are unfortunately on my desktop and not available over the internet.
The provider is running on:
http://login.puffin.mediaburst.co.uk/
Relying party on:
http://testlogin.puffin.mediaburst.co.uk/
OpenID url used when logging in to the relying party:
http://login.puffin.mediaburst.co.uk/user/bob
I get the following error when submitting the OpenId using the relying party:
Error while reading message 'DotNetOpenAuth.OpenId.Messages.CheckIdRequest'
parameter 'openid.claimed_id' with value
'http://login.puffin.mediaburst.co.uk/user/bob'.
Invalid cast from 'System.String' to 'DotNetOpenAuth.OpenId.Identifier'.
(Contact: , Reference: )
I've enabled log4net and have put the provider logfile on pastebin
To test the relying party I've authenticated against google and it works fine, suggesting the request format is correct.
Does anybody have any suggestions on stopping this invalid cast exception?
Yours is the second report for this bug. I've filed issue #109 to track this.
Incidentally, I believe the samples are correct, since MVC 3 works fine on .NET 3.5, as far as I can tell. Although a known bug was that if MVC 4 is also installed on your machine that you build the samples on, they incorrectly bind to MVC 4 DLLs and result in a runtime failure.

Related Links

Jquery validations stops working for an input when using masked plugin
set textarea text from ViewData asp.net mvc
Azure download blob filestream/memorystream
Bootstrap 3.1.1 less in ASP.NET MVC 5 have error with EnableOptimizations in true
simple membership provider with active directory
Lambda expression for getting a table row and update the row in database
How to call a HttpPost method from Controller in ASP.net MVC 4?
How do you escape a '#' symbol within in a url with razor
ASP MVC5 list/edit/view users
anchor tag in MVC partial view doesnt work as expected
OData filter not working for my Web API (mvc 4 stack)
Getting User in web api controller using Asp.net Identity 2 - User not autheticated
ASP.NET MVC action does not recognise post json data
ASP.Net MVC Partial View Model Binding
Ignoring long running threads in New Relic
Using dotConnect with MVC5 Razor

Categories

HOME
validation
demandware
dynamics-crm-365
direction
word-vba
datetime
amazon-kinesis
feed
mocha
apple-mail
overloading
light-inject
librsvg
sparkpost
threadpool
highlight
asp.net-mvc-5.2
apache-kafka-streams
syswow64
org-mode
rational
urlrewriter.net
jsgrid
robotium
background-subtraction
php-carbon
pvs-studio
listbox
whatsapi
nest-thermostat
html-select
chamilo-lms
joe-editor
ipod-touch
rft
hawkular
rating
sweet.js
virtualmin
log4perl
biological-neural-network
cmsmadesimple
easyhook
graph-traversal
findall
postmark
ipmi
dr-memory
plotrix
setwindowshookex
ocsp
struts1
rras
namenode
winobjc
isapi-rewrite
mutation
google-api-ruby-client
tag-helpers
armv7
clipping
uat
xirr
sample-data
many-to-one
keypad
gitattributes
theorem-proving
scribe
sqlhelper
iqueryable
aps
xacml3
hobbitmon
serverside-javascript
srp
junit-runner
android-lru-cache
xidel
flash-cs4
memoization
capitalize
kmz
google-chrome-frame
memento
hiphop
replay
treetop
winamp
xoom
polyglot
net-ssh
virtual-server

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App