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 ...Configuring IIS at hosting companyConfiguring IIS at hosting company
Previous
 
Next
New Post
12/6/2010 11:04 AM
 

I'm moving my DNN 5.6 to a hosting company and ran into problems configuring the hosting environment. I would be grateful if someone can give me a hint to what I did wrong.

I'm running DNN 5.6 on a computer A with a SQL Server 2008R2 Express database on another machine over the internet; so my DNN installation and the database are not on the same local network. I have this working just fine. I copied my DNN directory to the hosting environment using FTP, I double checked for any FTP transfer errors. In both cases DNN is located in the root not in a subdirectory. I have both sites listed in DNN as portal aliases. I'm running Windows7 + IIS 7.5 and my hoster Windows Server 2008 with IIS 7.x (I didn't verify the if it is 7.0 or 7.5). I can configure my IIS at the hosting company remotely. I gave read & write access on the root and all (sub)folders and files in the target site. I verified with my hoster that that are no restrictions e.g. firewalls set on outgoing connections.

My own copy launches DNN with http://localhost/ but when I go to http://www.mydomain.com/ I get http://www.mydomain.com/Install/UnderConstruction.htm page with the This site is currently Unavailable - Please check back later message. If I go to the page http://www.mydomain.com/Install/install.aspx?mode=upgrade I get the message  Error Installing DotNetNuke - Current Assembly Version: 5.6.0 - ERROR: Could not connect to database specified in connectionString for SqlDataProvider.

If the DNN error message actually describes the problem it shouldn't be the connection string but something else.

Because my browser and IIS run on the same machine and there may be some implicit permissions I have within DNN I reconfigured my set up so I can launch my own copy of DNN externally from within my browser as http://My_External_IPAddress:Portnr/. My IIS and my browser should both be considering it as internet traffic and no longer as some internal local network connection. And this worked just fine too.

I suspect that there is some difference between my IIS and the hosted-IIS and/or setting in DNN that needs to be adjusted to get it to work but I just don't see it. I didn't see any IIS settings with my hosted site that could explain this behavior but there a quite a few so I may have missed one.

 
New Post
12/6/2010 12:54 PM
 
Typically when you get a connection string message it is actually a problem with the connection string. Are you positive that the machine where your hosted web server is located can connect successfully to the remove SQL Server. I recommend using SQL Management Studio to try connecting to the remote machine with the exact same connection info that is being used by DNN.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
12/7/2010 5:14 AM
 
Am I sure if I can connect? Not really.

I can copy&paste the connection string, user name and password for the remote sql server from the web.config into the <Connect to Server> dialog box to open the database on the remote server in SQL Server Management Studio.
The server name looks like this
tcp:remote_ip_address,port_nr\SQLExpress

The connection string entry in the web.config looks like this
<add name="SiteSqlServer" connectionString="Data Source=tcp:remote_ip_address,port_nr\SQLExpress;Initial Catalog=name_of_my_database;User ID=name_of_sql_user;Password=my_password" providerName="System.Data.SqlClient" />


My dnn user (the same one I used to log on with copied&pasted credentials) has the sysadmin role at the server level and with user mappings I made him db_owner for the database. This user can remotely modify fields, add and delete tables etc. So the connection string and the permissions seem to be OK.

Also the DNN at the hoster is an identical copy of my localhost installation including the web.config with the connection string for the remote database server that should also be the same because I want to use the same remote database in the hosted DNN.

Of course the IIS and Windows environment at my hoster is not identical to my own. But I have no reason to doubt their statement that they do not block outgoing traffic on other ports.

All this gave me reason to believe there may be a unique combination of Windows, IIS and/or DNN settings that conflict.

As for question: Are you positive that the machine where your hosted web server is located can connect successfully to the remote SQL Server?:  I will need to try that out with a simple test program.

 
New Post
12/10/2010 5:30 AM
 
Resolved: I spoke to an other engineer at the hosting company: by default my hoster does block outgoing connections
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Configuring IIS at hosting companyConfiguring IIS at hosting company


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