Paul Clement
9/20/2005 5:44:00 PM
On Mon, 19 Sep 2005 23:36:02 +0200, haydnw <haydnw.1vmm60@no-mx.forums.yourdomain.com.au> wrote:
¤
¤ Hi,
¤
¤ I''ve just changed the server on which my ASP.NET application sits. It''s
¤ not terribly complicated, and has been working fine up to now. I''ve
¤ literally only changed the physical path to the database in the
¤ connection string in web.config, and now the thing is broken! I am
¤ getting the following error message:
¤
¤ [NullReferenceException: Object reference not set to an instance of an
¤ object.]
¤ GetFrontPageInfo.Page_Load(Object Sender, EventArgs E) +529
¤ System.Web.UI.Control.OnLoad(EventArgs e) +67
¤ System.Web.UI.Control.LoadRecursive() +35
¤ System.Web.UI.Page.ProcessRequestMain() +750
¤
¤ which seems to indicate that the problem is with Page_Load. However,
¤ the Page_Load code is different on each page, but a similar error comes
¤ up on every page that accesses the database. That leads me to believe
¤ that it''s something to do with the database that''s the problem, but I
¤ can''t figure out what. :( The code for the page that generates the
¤ above error is shown below. I used to know what this error indicated,
¤ but it''s so long since I built the application that I can''t remember
¤ now. Any help gratefully received!
¤
If the *only* thing you changed was the path to the database then you''re probably encountering a
permissions problem. Where is the file located? Is it on the same machine as the web server?
If your app uses authentication and you''re not using impersonation, does the ASPNET account have
access to the new location?
Paul
~~~~
Microsoft MVP (Visual Basic)