DotNetNuke Video Tutorials »

Aug 30

Written by: Aderson
Tuesday, August 30, 2011 

10 min : 47 sec

Complexity Level: 5 - I'm a pro! This video will show how to setup your computer to run a domain locally while you have your site under development. This is not a video specifically about DotNetNuke but it helps a lot when developing a site.

8 comment(s) so far...


Re: How to trick your computer to run a domain locally, and why - Video #257

It's nice to learn there is a way to work around. However, it is stuck when I come to "Configure Database Connection" of www.mysite.com/Install/InstallWizard.aspx.

The errors shown as below:

Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 14
Number: 18456
Message: Sql login failed

Actually, the first step "DotNetNuke Installation Wizard - Version 06.00.01" of your video clip also shown the connection problem as below.

"The Auto option has been disabled as the DotNetNuke Application cannot connect to a valid SQL Server database.
You can continue to use either of the other two Wizard options and configure the Database settings at the appropriate Wizard step."

When I change back to the former way "localhost with directory", there is no such connection problem.

Actually, I really want to setup as the video shown. Is there a way to solve this problem? Thank you!

By Jim on   Thursday, September 01, 2011

Re: How to trick your computer to run a domain locally, and why - Video #257

Hi Jim,

I got your message:

"The problem not able to connect to the mssql server mentioned yesterday has been tackled. I discover that the Server Login needs to match with the Security Login. If Sql Server Authentication is used, both need to be set in the same format. Your videos help me a lot and save me a lot of time. Thank you again! Jim"

I'm glad you found the problem!

Cheers,
Aderson

By Aderson on   Thursday, September 01, 2011

Re: How to trick your computer to run a domain locally, and why - Video #257

Aderson,

As always... great videos. My question is this. Have you ever seen a "script" or "applet" that will allow a user to switch back and forth between two versions of "Host" files so you can turn off the redirection of your local url? I want to be able to decide if I am looking at my local site or at the actual hosted version when using the URL.

Thanks
Ben

By ben on   Thursday, December 22, 2011

Re: How to trick your computer to run a domain locally, and why - Video #257

Hi Ben,

Thanks for you comment! You could create 2 simple batch files (.BAT):

1 - One To copy over the modified "hosts" with you domain pointing locally;

2 - Another one to copy the original hosts file over;

Have a look at this link in case you need to understand how to create a batch file:
www.makeuseof.com/tag/write-simple-batch-bat-file/

Cheers,
Aderson

By Aderson on   Thursday, December 22, 2011

Re: How to trick your computer to run a domain locally, and why - Video #257

Hi Anderson,
I am getting the following error while installation

Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 20
Number: 2
Message:

The interesting thing is that I have installed DNN yesterday without any errors. Today it again starts from the installation process. I dont know why ?

By subrahmanya on   Tuesday, January 24, 2012

Re: How to trick your computer to run a domain locally, and why - Video #257

Hi Subrahmanya,

You should check a few things:

1 - Is SQL server running?

2 - Are the Database user credentials still valid? Maybe you need to reset the password.

I'm pretty sure this error is due to some connectivity problems between the site and the database. So try some of those suggestions.

Cheers,
Aderson

By Aderson on   Tuesday, January 24, 2012

Re: How to trick your computer to run a domain locally, and why - Video #257

Oi Aderson,

Great article! Could this work in some manner with my DNN development site running on a different server within a network (IIS and SQL) rather than locally on my machine?

Mark

By Mark on   Wednesday, February 22, 2012

Re: How to trick your computer to run a domain locally, and why - Video #257

Hi Mark,

Yes it could. Instead of putting your local IP address on your local hosts file, just put the ip address of your server. Then when you try the site's URL from your computer's browser, it will be pointing to your server's IP.

Cheers,
Aderson

By Aderson on   Wednesday, February 22, 2012

ADVERTISEMENT

Top Design Team
1800DNN - Professional DotNetNuke Support

DotNetNuke eBooks


DNNHero's Guide to DotNetNuke Administration

Facebook



Video Search