It seems my website seems to have broke all by itself again... I
couldn't login due to a nullreferencexception.

After re-uploading the Login.cshtml everything worked again. The file hadn't
changed, but re-uploading must have caused some kind of re-build.

Any idea what might cause this problem?


*Object reference not set to an instance of an object.**Description: *An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error
and where it originated in the code.

*Exception Details: *System.NullReferenceException: Object reference not set
to an instance of an object.

*Source Error:*

Line 3:
Line 4:  @{Line 5:      var userCanRegister =
@WorkContext.CurrentSite.As
<http://workcontext.currentsite.as/><Orchard.Users.Models.RegistrationSettingsPart>().UsersCanRegister;Line
6:      var enableLostPassword = @WorkContext.CurrentSite.As
<http://workcontext.currentsite.as/><Orchard.Users.Models.RegistrationSettingsPart>().EnableLostPassword;
Line 7:  }


*Source File: *d:\virtualservers\butgodco\butgod.co.uk
\wwwroot\Modules\Orchard.Users\Views\LogOn.cshtml*    Line: *5



Thanks

Chris


---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to [email protected].

Reply via email to