Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...(So close...) Server can(So close...) Server can't establish connection at localhost
Previous
 
Next
New Post
12/6/2006 11:31 PM
 
Thanks in advance for reading. I am helping forum user archcommus to try and use an old database from DNN 2 era, and to make it the database for a fresh, new DNN 4.3.7 build. Below was just a prelim test to see if it could be installed in that way.

I feel I am so close to successfully getting this running, but have been foiled at the very end by the following error on Firefox:
"Problem loading page: Unable to connect.
Firefox can't establish a connection to the server at localhost:7756"

Now I've been reading the forums for a while, so I figured I could get around this one. A list below of what I have achieved, and what I have attempted to get around this browser server error...


(1) I successfully installed DNN 4.3.7 with his old database and got to the "Click here to access your portal" goodness. You probably should take a look at the Install report sequence -- The full install report is here



(2) There were some errors on that install. Were they critical? See the hypertext in item (1) above, please.



(3) I figured the 'Firefox can't establish a connection to server at localhost" error was the tried-and-true lack of the key
add key="UsePortNumber" value="True" . So I added that key with appropriate XML tags, but nope, that didn't do the trick.



(4) I then figured that this error was a Portal Alias error. So using the Query function of SQL Server 2005 Express, I tried some variations like this:
update PortalAlias set httpalias = 'localhost/randall' where portalaliasid =1
(where randall is the virtual folder for the assumed-successful DNN 4.3.7 install above. But nope, that didn't do the trick. (I tried a few variations also. Each time the Query Execute was done successfully, so I know I am changing the table value.)



(5) You should know that I used Shawn Mehaffie's excellent blog page here to configure the database attach so that both SQL Server Management Express and DNN could both access the DNN database without fighting each other.



(6) The connectionstring which I used, and which resulted in the successful install here was : connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=False;Database=tfs01;"



(7) I tried a few variations on connection stings with no success.



(8) One thing I feel I could/should be able to do is to use the SQL Server 2000 connectionstring of "Data Source=.\SQLEXPRESS;Initial Catalog=tfs01;uid=sa;pwd=xxxxx;" BUT I can't figure out where to give sa a password. I did it before in other DNN installs (give sa a password) but perhaps because I am using the Shawn Mehaffie attach method, maybe I cannot do so?


Any help greatly appreciated. I feel I must surely be one small step from seeing my DNN default.aspx page load up. Thanks!


.
 
New Post
12/7/2006 12:49 AM
 
You set the sa password when you initiall install SQL Express or SQL Server.  After that you can change it to whatever you want by going into SQL Managment Studio, Connecting to the SQL Instance you are using, and then go to Security / Logins.  Right click on sa login and you can reset the password to whatever you want.
 
New Post
12/7/2006 12:50 AM
 
I am not sure if you can use the Initial Catalog with SQL Express.  I'd make sure you can connect using the sa account first with the Database attribute instead of initial catalog and then once you do that then change to using the initial catalog to see if it works.
 
New Post
12/7/2006 9:05 AM
 

2.  It looks like the errors are related to sql statements in the sqlprovider scripts for dotnetnuke.  If you look in the log files that are noted in the error message, you should see the problem.  My guess is that some of the scripts might be missing the {databaseowner}{objectqualifier} (that's a common problem with dnn installs).

3.  Firefox error says that it cannot find a webserver on your localhost.  Why I'm not sure?  This works with IE but not with firefox?  Very strange.

4. The portal alias should not have any prefix.  Do you have a virtual directory in your webserver that is an Application and is set to use the 2.0 framework for the Randall subdirectory?  The folder randall must be set up as a virtual directory in your webserver and it must be an application (I use IIS).  Try setting the root folder of your webserver to c:\randall and change the portal alias to localhost.  If that works, it's probably because you have not configured randall as a virtual directory under your webservers root.

5,6,7,8  In order to use integrated security, you must use impersonation or give the appropriate aspnet account access to the database.  When your app connects to the database using integrated security, it uses the calling processes security context to try and connect to sql server.  What webserver are you using?  If you are using IIS 6.0 then and you are using the network service as the applicaiton pool identity, you must make sure the network service has a login to sql server. I would just use an sa account and password.  I don't know how to set the password in sql server express, but in sql server 2005 you go to sql server management studio -> open your server -> security -> logins -> and view properties on the sa account.  In sql server 2000, (I'm doing this from memory), I think you view the properties of the sql server, and click the security tab to reset the sa password.  Instead of using Intial Catalog you might try using database=  That might work but I'm not sure.

 

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
12/8/2006 6:02 AM
 
Shawn and Frank --

Thanks to you both for the replies. What follows below will probably concern database entries, and I am right at the beginning learner stage of database and db interfaces, just so you know. So we'll probably be more successful if you keep it in the "Assume he knows nothing" zone in your replies. Again, thanks for the help thus far; it has been essential!

(a) I haven't changed anything significant from my earlier reports, so the setup is the same. Fortunately I was able to get DNN application to be invoked on the web server with a bit more piddling with the web.config file, and the PortalAlias, as Frank suggested.

(b) Errr, I think I did anyway. Right now, when I deploy the DNN application via the web server, it does a little thinking and returns no errors -- and in fact points to and loads up the correct directory. But then it redirects and the address bar shows this:
http://localhost/Home/tabid/50/ctl/Login/Default.aspx?returnurl=%2fDefault.aspx

(c) The page it shows is blank. I did a little googling on this and discovered another forum user who reported the same type of URL redirect. Fortunately, that person had come back to the forums and posted their own fix, in which he states:
"http://localhost/Home/tabid/0/ctl/Login/portalid/0/Default.aspx?returnurl=%2fDefault.aspx

Btw, the installation tells me that the installation performed without errors. The db table Versions tells me it's 4.3.3.

Ok, fyi, I solved it. When looking at the db tables I noticed there was duplicates. I failed to notice that the previous version was using a objectqualifier. So if anyone has this problem in the future, installation instead of an update this might be the cause.


(d) So this guy seems to suggest that I should use the _Update_ and not the _Install_ download, to get around this issue. (If I do interpret him correctly.) This seems to be in line with what Frank said earlier about scripts missing objectqualifier stuff. I don't know what an objectqualifier is, though.

(e) If I should just try the process again, using _Update_ download instead of the _Install_ download, please tell me that and I'll do it. The only thing we have here which is "old" is the database that we are plugging into, but maybe that is enough to warrant the _Update_ process here.

(f) One last thing, to answer Frank's question: The first error log referenced in the first error line of the Install report (see my first post) reveals that the error was: "Error: The stored procedure 'dbo.GetFolderByFolderPath' doesn't exist." Again this may be related to the difference between an 'Update" versus "Install" download.

THANKS!



 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...(So close...) Server can(So close...) Server can't establish connection at localhost


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out