Possible Duplicate:
NullReferenceException when running published website in IIS
i got problem when a publish my site in the IIS 7.5 2008 Server. In my local pc it is located in D:\projects\visual_studio\site, then when i publish to the server, in C:/sites/mysite a i get this error message:
[NullReferenceException: Object reference not set to an instance of an object.] Inovação.Site1.Login1_Authenticate(Object sender, AuthenticateEventArgs e) in D:\projects\visual_studio\site\Site1.Master.cs:67 System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +108 ....
I'm using a Login control in my MasterPage. Why the location is still point to D:\projects\visual_studio\site\Site1.Master (local pc) if my project is publish in C:/sites/mysite (server )?