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

Any way to detect classic and integrated application pool in code?
ASP.Net MVC 2 authentication (login) best practices
overload ActionResult
Razor: Creating a view from a nested layout doesn't auto create the sections
Saving entities with foreign key in ASP.NET MVC
“HTTP Error 404.3 - Not Found” force download of .step file in IIS7.5
MVC3 EF4 POCO Repository/UnitOfWork Connection Error
CanvasAutorize - redirection to facebook permissions dialog clears the request_ids query string sent when user accepts an app request
Unable to set membernames from custom validation attribute in MVC2
How do I resolve Dependency Injection in MVC Filter attributes
Extending MVC TemplateHelper / DisplayFor* methods - should I be doing that?
redirect to an external url on form submit
Can we say ASP.NET is also MVC ?
Set class on asp.net input textbox automatically
Static Files not getting routed with IIS the same as they are with Cassini
State Management of javascript conent in MVC

Categories

HOME
regex
selenium
tags
apacheds
design
styling
stack
httpbuilder-ng
sony-camera-api
freebsd
jena
luci
threadpool
coreos
google-cloud-sdk
resolve
rational
procedure
slime
amazon-cloudfront
py4j
montecarlo
ssms-2014
vnc
intersystems
pdfa
android-button
concurrenthashmap
udid
charts.js
directx-12
apache-commons-httpclient
nio
docker-image
packaging
extjs4
amazon-vpc
es6-promise
compass-lucene
linear
adsutil.vbs
dependency-management
requirements-management
ternary
soql
ice
itamae
mink
webpagetest
angularjs-filter
selenium2library
pypyodbc
yapdatabase
hl7-v2
linqtocsv
ane
actioncable
quasar
spymemcached
cbc-mode
javaw
kue
sbrk
monk
custom-titlebar
dotliquid
blazeds
acts-as-taggable-on
android-c2dm
antisamy
ramdisk
django-endless-pagination
qdebug
route-me
angularjs-module
godaddy-api
java-ee-5
lungojs
datakey
nextpeer
ekeventkit
quilt
proxy-classes
magento-1.5
bapi
ember-router
openid4java
duplicate-data
emacs-ecb
nsindexset
seam-conversation
cassandra-0.7
network-scan
queryanalyzer
nhaml
templatebinding
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