Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2006, 09:04 PM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing C:\Inetpub\wwwroot on networked machine

Hi

I hope you can help as I'm a real novice who has come unstuck.

I have IIS installed running on computer on a home network (workgroup)which had XP pro. I'm running Dreamweaver on my own machine that has XP home.

To save and test the welcome.htm file in c:\inetpub\wwwroot directory on the machine running IIS I have asumed that it is necessary to share that folder with my machine on the network(is this correct?). I have tried this but when I try to save the file into c:\inetpub\wwwroot I am denied access. I have checked all the file sharing an everything seems OK. Am I going about it the right way or should I be doing things differently.

Many thanks in advance for your help.

Reply With Quote
  #2 (permalink)  
Old March 1st, 2006, 03:21 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Well, yes, but sharing alone is not enough.

You need to access the machine by its name or IP address. E.g.:

\\WebServer\ShareName

where WebServer is the name of the machine where you want to save to...

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old March 1st, 2006, 11:04 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

Firstly thank you for the quick response. However, I am still having problems.

If I navigate to \\WebServer\inetpub\ through my browser or when saving files through dreamweaver I can view all the files in the sub folders in inetpub except if I am trying to access the wwwroot folder. When I click on this folder it says it is inacessible and I do not have permission to access this folder.

I have googled this and searched the microsoft site but I can't find a way to change my permissions so that I can access and save files into this folder.

Am I doing somethign fundamentally wrong and is there something else I should try.

Thanks in advance for your help



Reply With Quote
  #4 (permalink)  
Old March 1st, 2006, 03:16 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi RussellT,

I am not sure I understand.

Both the files and the web server are located on the same machine, right? Let's assume you have a machine called Webserver and one called Development. Then your setup would be like this:

1. Web Server
- Has IIS installed
- Has a website that uses the files from c:\inetpub\wwwroot (on its local hard drive)
- On Webserver you can browse to http://localhost or http://Webserver to get the files show up in your browser.

2. Development
- Has Dreamweaver
- Saves files to \\WebServer\YourShareName or \\Webserver\c$\Inetpub\wwwroot
- When you browse to http://Webserver you get same site and files you got when you browse to http://localhost on the webserver

Right?

If that's your setup, then I don't understand the permission issue, and you'll need to provide more information.

If the situation is different than described above, can you describe your setup in more detail?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Johnny, Kick A Hole In The Sky by Red Hot Chili Peppers (Track 13 from the album: Mother's Milk) What's This?
Reply With Quote
  #5 (permalink)  
Old March 2nd, 2006, 08:59 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

Thanks for your response again.

OK so this is what I have done so far. There are two pc's on the network which are.

RICHARD (The Webserver)- This is an xp pro machine with iis 5.1 installed where I can browse and view all the files in inetput on the c: drive.

RUSSELL (The Development pc) - This is the xp home machine with Dreamweaver intalled (mx 2004).

Following your instructions - if I put http://localhost on the xp pro machine it directs me to the window shown on on page 27 of Beg.DW Mx and changes the address to http:/localhost/localstart.asp. However if i type in http://Webserver on this machine in directs to a page not found and then on to a Dell search engine page.

If I type in http://Webserver on the development machine it gives me a Page Cannot be displayed. I can however browse the subfolders in Inetpub on the weserver by typing in \\richard\inetpub I can then view all the files in the folders except for the wwwroot folder that gives me an access denied error message.

Now to give you some more background. When I originally got IIS running on the webserver I tried to navigate to the localstart page from the development machine per instructions at the top of page 28 by putting in http://richard/localstart.asp. I received the page cannot be displayed error. I soon realised that this was a firewall problem and have now added port 80 to the exemptions on the firewall of the webserver machine and clicked on allow internet users to access Webserver (HTTP) for our network on the advanced tab of the firewall. Now when I navigate to http://richard/localstart.asp it redirects me to http://richard/iisstart.asp which is the 'page under construction' page which i believe is the default page for iis.

Ok so at this stage I knew that ASP was running on the webserver and there was a connection with the development machine.

When I got to step 8 page 33 where I needed to save the welcome file from the development machine I assumed that I would need to share the inetpub folder from the webserver so I could access this and save files in wwwroot from the development machine. Is that right or am i supposed to access the folder another way?

So the inetpub folder is now shared in my network places but again if I can browse all files in this folder in my network places except the wwwroot folder which is inaccessible. Similarly when in Dreaweaver and I try and save the file I navigate to the folder via my network places and I come up with access denied. The exact wording is

\\richard\inetpub\wwwroot is not accessible. You might not have permisssion to use this network resource. Contact the administrator of this server to find out if you have access permissions. Access is denied.

One thing to note is that while I ahve been investigating the permissions I have noticed that on the file sharing for this folder i am unable to switch the read only attribute off. When I switch if off and apply changes it reverts back to read only when I reopen. Could this be the problem?

I have also found the following link which seems to cover a similar problem to that I am experiencing http://www.mcse.ms/archive62-2004-8-969668.html unfortunately there is no resolution though

Sorry for the long post but I hope the information helps. Thanks again for your help as I appreciate this probably goes beyond the realms of the book.

Thanks

Russell








Reply With Quote
  #6 (permalink)  
Old March 2nd, 2006, 05:10 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hmmm, quite a challenge... ;)

There are a couple of things to check:

1. I assume when you say http://webserver, you mean http://RICHARD, right?

2. How are the access rights for the share set up? To check, open the properties for the folder on the server. On the Sharing tab, click the Permissions button. By default, users have only read access to shares

3. How are the permissions for c:\inetpub\wwwroot on the webserver set up? Does the IUSR_RICHARD account have at least read access? And does your own account have access to it?

4. Do you have mirrored accounts? That is, is there a richard\SomeAccount and a Russell\SomeAccount that both have the same password? Since you don't have a domain that handles authentication, you need mirrored accounts that are the same on both servers.

5. Do you have a firewall? E.g. Windows Firewall or a third party firewall? What happens when you temporarily disable them?

6. What happens when you create a simple Hello World page? That is, create a file called Default.asp at c:\inetpub\wwwroot with the following code:
Code:
<%
  Response.Write("Hello World, the time is now " & Now())
%>
Then browse to http://localhost and http://Richard on the Richard machine, and browse to http://Richard on the Russell machine.
Do you get anything?

For some more background about IIS and the accounts used by the server, you may want to skim the following FAQs:

How Do I Setup IIS to Allow it to Use Network Resources?
http://Imar.Spaanjaars.Com/QuickDocId.aspx?QUICKDOC=276

How Do I Determine the Security Account that IIS Uses to Run My Web Site?
http://Imar.Spaanjaars.Com/QuickDocId.aspx?QUICKDOC=287

How Do I Allow My Web Application to Write to Files, Folders and Databases?
http://Imar.Spaanjaars.Com/QuickDocId.aspx?QUICKDOC=290

These FAQs won't solve your problem right away, but they may give you some value insights in how webservers operate, and how security works under IIS.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #7 (permalink)  
Old March 3rd, 2006, 09:09 PM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

You will be pleased to hear that I think things are sorted but I need to check one thing with you (will come to that). I also thought I would explain waht has sorted the issue out. I'm sure some of it will make me look a bit daft but bear in mind that I only set up a network for the first time this week.

Inititially after reading though you post I was confused at point 3 when you said 'does my account have access to wwwroot on the permissions'. I couldn't see a user set up with my computername but subsequent reading suggested that xp home and xp pro connect via the guest account so I didn't think this was unusual. Also read a lot saying the two systems aren't very compatible when it comes to file sharing and people often run into problems.

Having read your article on the first link in your post I set about synchonising the IUSR account as I thought (rightly or wrongly) this was most appropriate to my set up. Unfortunately, when I set up IUSR_RICHARD on the file server pc the account didn't appear in my account list (bizarre) and when I tried to add it again it gave me an error saying account already exists!!. Upshot is I can't see / access it or delete it and spent 2 hours on phone to microsoft after googling the problem to no avail. It's a first for them apparently and they are still resolving it. So that stopped me in the tracks with the synchronising.

Whilst researching I found an article suggeting that I needed to set up an account on the machine running xp pro with the same username and password as I use to access the xp home machine. Once I had done this and changed the access permissions to this new user I was able to access the wwwroot folder from the xp home machine. Hurrah. I realise now that this is what you were telling me to try in point 4 but I was confused when I first read it.

Whith this done when I browsed to http://localhost/localstart.asp on the webserver machine it gave me page not displayed with various ASP errors. To overcome this I had to switch off anonymous access in the Authentication Methods. So I assume per your document that I am now set up using integrated security. Does that mean my home set up acoss a wireless router is an intranet?

I have tested hello world and it works ok.

Thanks very much for all of your help with this.


Reply With Quote
  #8 (permalink)  
Old March 5th, 2006, 08:58 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Russell,

I am glad things are starting to work. There are, however, a few things I don't understand.

The physical files (e.g. default.asp, images, and other web files) are located on the same disk as the web server, right?

If that's the case, things shouldn't be so hard. You just need to give permissions to the IUSR_Russell account for the folder where your files are stored (e.g. c:\inetpub\wwwroot). Granted, if the account isn't there, this may be difficult ;) But are you able to add the account by typing its name on the Security tab of the wwwroot folder properties dialog?

If you can get the IUSR_Russell account to access files in the wwwroot folder, you can enable anonymous access again for the webserver.

You could describe your setup as an Intranet. However, an Intranet comes in many flavors. www.whatis.com says about an Intranet:
Quote:
quote:An intranet is a private network that is contained within an enterprise. It may consist of many interlinked local area networks and also use leased lines in the wide area network. Typically, an intranet includes connections through one or more gateway computers to the outside Internet. The main purpose of an intranet is to share company information and computing resources among employees.
If your webserver is also accessible from the outside world (e.g. has a pubic IP address or is connected to a network (device) that has a public IP address) your setup is also a internet website / application.

I realize the things I posted may be a bit confusing if you're new to this. But look at it from the bright side: you probably learned a lot from network setup and access rights in IIS... ;)

Now, if you can get that darn IUSR account to show up, you're ready to go....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
Access to the path "C:\Inetpub\wwwroot\wrox\ThePhi renodays BOOK: ASP.NET Website Programming Problem-Design-Solution 6 August 3rd, 2007 06:21 PM
fileSystemWatcher - Networked Harddrive JAtkinson C# 1 May 18th, 2007 08:14 PM
Accessing Tocat from a different machine aadz5 Apache Tomcat 2 January 27th, 2007 01:09 PM
networked computers? lagalag VB How-To 0 March 23rd, 2004 10:11 AM



All times are GMT -4. The time now is 10:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.