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 ...how to publish a DNN website on Localhost??????/how to publish a DNN website on Localhost??????/
Previous
 
Next
New Post
2/1/2008 10:44 PM
 

Hi,

I just want to ask here is:

1) I have configured my DNN website as I want

2) I can build it and run it through VS2005

3) After building I have published it through VS2005

4) Now ag=fter publishing it I have copied that paricular published folder into "wwwroot" folder of Inetpub i.e. of IIS folder

5) after that I have again configured it with IIS for Virtual directory,

6) after that, I go on IE and typed                http://localhost/DNNWebsite

7) It shows the contents of the directory, not running the default.aspx file.

8) it lists the default.aspx file but when I am going to open it, it gives me the contents of default.aspx.vb contents

 

 

Why is it so??????????// where I did wrong??????????

 

Or can anybody please tell me how to publish the site on localhost ???

I have lost my 2 days already to find it out . Please reply me

 

thanks in advance.

 
New Post
2/2/2008 1:34 AM
 

Do you have the directory setup as a virtual directory for asp.net 2.0 apps?


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
2/2/2008 6:55 PM
 

You probably have a few problems that are going to result.

What you should do, instead of putting it in wwwroot, you should jsut put it in the C drive somwhere on the root, this way your not gonig to accidently inherit the wrong permissions from the containing folder and get wierd results.

I'll try and explain from memmory, I"m on IIS7 now and can't give you exacts...But here is what ya gotta do to fix it.

First, go into IIS management, on the node containing your virutal directory, go to the properties page and uncheck something about directory browsing(IE your browsing the folder, which shouldn't be allowed).

This should cause a 404 error now on your website instead of browsing it, if your still able to browse there is some inherited permissions being applied as i mentioned above.

Now that you have the 404 error, thats a good thing.  Now in the same properties there should be something about default documents, or something.  your looking for a screen that probably shows things like index.htm index.htm etc etc.....Add default.aspx to that list, and move it to the top.  While your in thee go to the asp.net page and make sure your using asp.net2.0 if you can.

now you should get at a minimum a different error screen, one with some nice yellow boxes and tons of code, OR if your lucky you'll get the acutal default page you are expecting.

I'm assuming you are going to get the error code now because of folder permisions.  Make sure NETWORK SERVICE and ASP.NET both have I think they need read &write access..on the security tab of the folder holding your website, you can just click add --> then find those two users, add them, click the full control box(which checks everything) then unclick full control but leave allt he others checked.

 

I"m not a security expert, so use my instructions at your own risk..  Sorry for the cryptic answer, I'm trying to remember what II6 looks like from memory since I don't have it on this computer.

If you have any trouble let us know!

 

 


Josh Martin

 
New Post
2/3/2008 2:37 AM
 

First of all thanks of u r help( Both of u)

Yes. I am using IIS 5.1, and ASP.NET 2.0.0.7

 

as u have mentioned I did:

1) I ahve copied My website folder to C: Drive, after publishing it through VS2005, without any errors.

2) I have added users ASPNET and NETWORK SERVICES, also provided them Full Control rights.

3) then I went to IIS Configuration, Select the Virtual Directory Properties

    Deselects the Document Browsing option

   and checked that default documents also, Default.aspx is there

4) then I have oepned IE and type the http://localhost/DotNetNuke there( DotNetNuke is my website name)

5) I got an error 403.1 which states that Execute Access Forbidden

6) So I again Opened the Virtiual Directory propertiis of my Website's Virtual Directory, and set the Execute Permission to: Scripts and Executables, which gave me warning that, It will be posiible that, now other users can run malicious code on u r site, ut IT IS NOT A PROBLEM FOR ME RIGHT NOW

7) So after doing thsi, I have again run the same htt://localhost/DotNetNuke into my IE, and got Default.aspx ERROR Page

DotNetNuke Error!!!!!!!!!!!

and in address bar I got the big string:

http://localhost/DotNetNuke/Default.aspx?tabid=36&error=Could+not+find+a+part+of+the+path+'C%3a%5cDotNetNuke%5cApp_GlobalResources%5cLocales.xml'.&content=0

 

which states that, could not find a part of the path

 

So now what I have to do? where I went wrong??

 

thanks once again

 
New Post
2/3/2008 11:28 AM
 

Well, thats progress for sure even though it may seem like it isn't.

Your page is now opperating with ASP and DNN :->.  Although not very usable.

Here are a couple ideas.  First does the file exisit that it's refering to?

C:\DotNetNuke\App_GlobalResources\Locales.xml ?

I'm thinking it probably does, but it's still a permissions thing.  Windows can cause all kinds of problems if don't undertand NTFS properly.  I'd go back into the properites of the folder, security tab, click the advanced button, uncheck "Inherit Permissions" or whatever (one of the two checkboxes in the bottom left of the advanced window), a popup will show, select "copy permission" which will keep all the settings you've aready adjusted.  Next click "replace permissions on subfolders and files" or something to that effect, click apply and it'll go through and re-assign all the securities on the files in that folder to make sure they allow those two services access.

If that doesn't work, then copy the whole body of the error and post it.

don't get too frusterated, you're making progress! :->

 


Josh Martin

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...how to publish a DNN website on Localhost??????/how to publish a DNN website on 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