This could be a dynamic compilation issue. Do you remember making other changes 
to the site (e.g. uploading newer version of modules, changing some .cs file, 
etc).

What version of Orchard are you currently using? All known issues with dynamic 
compilation have been fixed with the 1.2 release.

Also, one sure way to workaround this kind of issue is to make a "dummy" change 
to the "~/bin" folder of the app (e.g. create a new empty folder). This will 
force a full site recompilation on the next request.

Thanks,
Renaud


From: [email protected] [mailto:[email protected]] On Behalf Of Chris Haines
Sent: Sunday, June 12, 2011 7:43 AM
To: [email protected]
Subject: Problem with log on... again

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<http://butgod.co.uk/>\wwwroot\Modules\Orchard.Users\Views\LogOn.cshtml
    Line: 5



Thanks

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


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

Reply via email to