问题
what changes are needed to made in web.config file to prevent this exception i am using dotnet open id for implementing open id.
using (OpenIdRelyingParty openid = new OpenIdRelyingParty())
{
IAuthenticationRequest request = openid.CreateRequest(this.txtOpenId.Text);
and at this point an exception is generated no openid endpoint found for example in case i am typing claimid.com/openid
回答1:
I had the same problem and I solved it setting up logs for DotNetOpenAuth (http://www.dotnetopenauth.net/developers/help/loggingdebugging-dotnetopenauth-with-log4net/). If you are using Log4Net you can try this:
<appender name="FileApp_DotNetOpenAuth" type="log4net.Appender.RollingFileAppender">
<file value="Logs/DotNetOpenAuth.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="5MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
<logger name="DotNetOpenAuth">
<level value="ALL" />
<appender-ref ref="FileApp_DotNetOpenAuth"/>
</logger>
Then check the log file DotNetOpenAuth.log for your current error. It would help you troubleshoot the problem.
回答2:
No OpenID endpoint found. - .Net OpenID
Hard to say with the little info provided, but that error is fairly common, infact it's been asked before! Have a look at the link above!
来源:https://stackoverflow.com/questions/3530753/no-openid-endpoint-found