I set up a cname in DNS and created the host header in IIS and pointed the record to my site.
For some reason everytime I vist the site through the subdomain it takes me straight to the login page (I think its trying to install again), however when I login I get the error "
Object reference not set to an instance of an object."
It is my experience that if you can see the login page, but get the
"Object reference not set to an instance of an object"-error there is a
problem connecting to the database. So might be an idea to double check
your connectionstring.
And as Chris mentioned, please post the stack trace ;)
Moving site to a subdomain
Hi guy,
I need to move my umbraco site to a subdomain.
I set up a cname in DNS and created the host header in IIS and pointed the record to my site.
For some reason everytime I vist the site through the subdomain it takes me straight to the login page (I think its trying to install again), however when I login I get the error "
Object reference not set to an instance of an object."
any help is much appreciated.
Thanks
Scott
Hi Scott,
Welcome to the forum.
Can you post the full error that you are seeing?Can you also confirm that the domain name is resolving to the correct IP address?
If you are only running this site from umbraco then I would remove any hostnames you have setup in Umbraco.
Also, you have no need for the /install directory after installation. You can delete this.
Cheers,
Chris
It is my experience that if you can see the login page, but get the "Object reference not set to an instance of an object"-error there is a problem connecting to the database. So might be an idea to double check your connectionstring.
And as Chris mentioned, please post the stack trace ;)
- Morten
Looks like you were absolutely correct and this has now fixed my problem - thanks :)
is working on a reply...