You need to Register for free and Login to post a message in the forum.

Forum

Subject: "Site Unavailable" when transferring to localhost
Prev Next
You are not authorized to post a reply.

Author Messages
bang_softworks
Nuke Newbie
Nuke Newbie
Posts:2

07 Dec 2007 3:16 PM  
I am transferring a hosted DNN site to localhost and followed the instructions in Issue 22, but when I go to run the site, it just goes to "This site is currently Unavailable".

What causes DNN to bring up this page?  I know my DB connection strings are good, I have changed the portal alias.  I am connecting to a SQL server on my internal network, so it is not on the same machine as the DNN files, but like I said before, my connection string is fine - I used it to install a blank copy of DNN on the same machine, and it works.

If I could know what causes DNN to redirect to the "unavailable" page, then I could troubleshoot it a bit better.
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2357


07 Dec 2007 4:21 PM  
Usually, this really does mean that there is something wrong with the connection string or with the database. Something is wrong such the DNN can't provide a more descriptive error message. What is the url of the page that is displayed? Is it a generic IIS error page, or is it a DNN page? Knowing that might help.

Make sure that BOTH connection strings are correct.

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

10 Dec 2007 3:45 AM  
I had  the same problem recently and it was due to the hosting provider not resetting the permissions on the database correctly after restoring the backup to the SQL server.

I checked this by entering the database login details into SQL Server and trying to view the database tables on the live site. - all I could do was login to the database but not actually view the tables, once permissions were set correctly, I could access all of the data using that login account and then my DotNetNuke installation could operate correctly.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
andyb1979
Nuke Pro
Nuke Pro
Posts:62

05 May 2008 5:25 PM  

Sorry to ressurect a long-dead thread, but I just restored a live installation to localhost following the videos in Issue 22 and have encountered the same problem:

My URL redirects to http://localhost:81/rockrhymereason/Install/UnderConstruction.htm and I get the cryptic message that "This site is currently Unavailable"!

Ive just logged onto the live database via SQL Server Management studio and it seems there's no restriction to view the tables, so I dont know what/if any permissions have been changed.

I've checked both of my connection strings are correct, connectionString="Data Source=.\SQLExpress;Initial Catalog=mydatabase;User ID=myuser;Password=mypass;", I added a user/login to the database as per the videos and updated the portal aliases in the database.

I also added several portal aliases as I'm running IIS7 on Vista on port 81, so I have localhost and localhost:81/ aliases.

If anyone's seen this error before and has any ideas for me, please let me know!


Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match | Calvary Stockport | Stephen Webster
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

06 May 2008 5:44 AM  
Have you successfully installed a fresh DotNetNuke installation to localhost? Just to test that IIS etc is setup correctly.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2357


06 May 2008 8:31 AM  
You can also put an index.htm file in the web directory to see if IIS will serve it up. Also, if that works, try an App_Offline.htm file. This will only work if your site is compiling.

Yesterday at work I helped someone with that error. It turned out that the database connection string was wrong.

Also, when you get that error, refresh the page. Sometimes you'll get a more descriptive error.

Joe Craig
DNN Creative Support
Subscribe to the website
bang_softworks
Nuke Newbie
Nuke Newbie
Posts:2

06 May 2008 8:45 AM  
What it was for me (and I suspect it may be for you) was an invalid portal alias.  You mentioned you added a bunch.  I added one and the format was wrong, once I corrected it, it worked properly.  Very frustrating problem - easy to fix.  I hope this helps.
andyb1979
Nuke Pro
Nuke Pro
Posts:62

06 May 2008 9:07 AM  
Hi everyone,

Thanks for the replies.

Yes I tried app_offline, originally it wouldnt even serve that, but some fiddling with the settings in IIS got it to display that. So I can view a default.htm or app_offline.htm file.

Im at work now, but my gameplan when I get home is to do as Lee said and try to install a fresh DotNetNuke site to another virtual directory.

Seems something is up. Im not sure about the portal aliases as I have several in there. Previously, I configured my PC to use the computer name as localhost so I could put myPC/dotnetnuke to navigate to the site (this way I could access the site via virtual PC instances with other IE versions).

So currently as aliases I have myPC/dotnetnuke, localhost/dotnetnuke and localhost:81/dotnetnuke for each portal! ..

I'll do a bit more detective work and let you know how I get on.

Cheers,
Andrew

Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match | Calvary Stockport | Stephen Webster
andyb1979
Nuke Pro
Nuke Pro
Posts:62

06 May 2008 1:30 PM  
Right, I resolved it. Here are the steps I took:

1. DotNetNuke error "The site is unavailable" is shown

  •    as jncraig rightly pointed out, refreshing the page gives a more meaningful error
  •    The url I got was http://localhost:81/rockrhymereason/Install/UnderConstruction.htm
  •    Delete everything from /Install onwards and hit refresh. Then you see the exception:

2. Exception: An attempt to attach an auto-named database for file D:\Andrew\Work - Websites\RockRhymeReason\wwwroot\App_Data\rockrhymereason.mdf failed.
A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

  •    Ok, so my connectino strings wrong. It thinks it should connect to a database in the App_Data dir, but I have the database on SQLExpress.
  •    I updated my connection string to point to the correct database

3. Another Exception now:


Exception: Cannot open database "rockrhymereason" requested by the login. The login failed.
Login failed for user 'andyb1979'.


  •  Deleted user and login for the database
  •  Added a new login for the server
  •     Set login username / password as in my connection string
  •     Checked "Enforce Password Policy", unchecked Enfore pass expiration
  •     set default database to master
  •     Under User Mapping, where it says Users Mapped to this Login, checked Map by the database I want a user for
      •  This step auto-creates a user for the login
      •  Under User Mapping, where it says Users Mapped to this Login, checked Map by the database I want a user for
      •  selected default schema to rockrhym
Now I click ok, navigate back to the localhost installation et voila! It works!

Thanks for your help guys

Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match | Calvary Stockport | Stephen Webster
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2357


06 May 2008 8:01 PM  
I went through something similar to this at work today.

There were a number of errors that involved the wrong set of connection strings, the wrong database names, the wrong user and passwords, not fixing portalias table and ... drum roll ... having the IIS website configured incorrectly.

Whew!

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

07 May 2008 3:30 AM  
LOL - yes its always one of those that catches us all out Joe!

Cheers,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > "Site Unavailable" when transferring to localhost



ActiveForums 3.7

Latest Forum Posts

Web.config Error by derpir
HelloI got this error, does this seem familiar to you? Can anyone say how to fix this error?Error 98...
No Access for me too by ristori
I suscribe for the magazine novembre 2008 13. I receive this ticket from Paypal : Prix de l...
How can I list our offices by country by bluehoops
Hi everyone!Apologies if this is a simple question, but it is driving me nuts.I run a small ISV and ...
RE: DNN Creative vs FireFoX V3 by DavidWSnow
It now looks like the error'ing extension is StumbleUpon and it effects FireFox on some, but not all...
Issue 39 Authentication by DavidWSnow
I was glad to see you address this topic. When LiveId was first added to DNN, I tried to implement i...
RE: (catalook) Itempane changes on product pages ?? by Vilaplana
Hi, I think the problem is been caused by your skin and not by Catalook itself.  In the main page, C...
Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
Template Issue by Bobbyjosephg
Hi,   Today I have come up with a problem with templates.I was successful in exporting a template an...
RE: search not working by sanju_k1421
I checked     host==>admin search  page   that is set both limits min //max  page     still i m n...
RE: error message in registration page by coder247
but how do I avoid the error messages provided by default in dnn?
RE: Style sheet does nothing by andorz
Oh. I was told to do that in my thread at the dotnetnuke.com forum. http://www.dotnetnuke.com/Commun...
AppTheory
RSS Feeds