How do i run my DotNetNuke website from client PC using IIS server

Posted on 2009-02-12
Last Modified: 2012-05-06
I have developed a sample website using DotNetNuke and
Now, I want to access this site from another PC (that is in a network) using IIS server

How can I do this? Please give me steps to configure IIS server.
Question by:madhav_ghatole
    LVL 22

    Expert Comment

    >>> I want to access this site from another PC (that is in a network) using IIS server
    Don't quite understand what you mean. If you DNN site is developed on your machine and is running on your machine, then any pc that accesses the site does not need to have IIS.
    Am I misunderstanding your question?
    LVL 1

    Expert Comment

    It sounds like this blog entry is exactly what you are looking for:

    Mary's article covers just about everything from the initial download of DNN to configuring IIS.  It doesn't get much better!

    Author Comment

    Thanks for reply.
    I have two PC's in a network. One is server PC and another is Client PC.
    On server PC the installed programs are as below:
    1) DNN 4.9 starter kit
    2) SQL server 2005
    3) Visual studio 2008
    4) IIS server

    I have developed DNN site and It runs fine on a local server (i.e. using visual studio's server). It has DNN database DotNetNuke.mdf and I am using connection string in web.config as below:

    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf ;"/>

    Now, I want to access this site from my Client PC.

    How can I do this? What configurations require.
    LVL 22

    Accepted Solution

    When you launch DNN on your local machine, the url should be something like http://localhost:portnumber/YourDNNSite/Default.aspx. If you want to access this site from outside, then you will make sure to have following:
    1. Deploy you DNN to your local IIS
    2. Make sure port 80 on your local machine is not blocked by your firewall.
    3. You have a static IP address.
    Than should do. You just type in http://YourLocalMachineIPAddress/YourDNNSite/Default.aspx , and you should be able to access it. Alternatively, you can access it via http://YourComputerName.YourDomain/YourDNNSite/Default.aspx
    LVL 22

    Expert Comment

    Oh, missed one thing after re-read your last post. You may want to change the connection string to use SQL authentication, meaning you specify a username and password for accessing the database.
    LVL 1

    Assisted Solution

    Thanks for adding the information. If your current configuration is using Visual Studio and SQL Server Express, and you want to move to IIS/SQL 2005. You will need to do the following:
    • Create a new database in SQL Server 2005
    • Import your current .MDF database from SQL Server Express into your new database
    • Change your web.config file to use the SQL Server connection string sections and comment out the currently used SQL Server Express connection string sections.  (There is a connection string option for each server type, depending on which option you use; and there is also a section with connection strings that is used by older legacy modules.)
    • Configure IIS to use your current DNN files in the Default Site - or create a new IIS site if you wish.
    • Make sure that port 80 is open on the server's firewall, unless you configure IIS to use a different port.
    Alternatively - something that might be easier:  if you follow the steps on the blog that I referred to above, it is very easy to create a new DNN installation using SQL Server 2005 and IIS.  You could just create a new site and then export/import your old content into the new site.  You then would not have to worry about editing connection strings, etc.

    Hope that helps give you some direction!

    PS - Remember to backup before you change anything!  :)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now