Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving site from local computer to production computer

Status
Not open for further replies.
Apr 9, 2007
26
0
0
US
Moving of the intranet from local computer to production web server:

I am stuck with the moving and Server.MapPath issue.

In the local computer, my virtual tree looks like this:

Code:
Local Computer
   WebSites
      IIS Local Host
          LegalWeb
              Docs   (C:\Dev\project\_files\Docs)
              _admin
              _site
              _ajax
              _include
              _includeadmin
              _js
              _media
              _style

In the production computer, the virtual tree looks like this:
Code:
DuWeb
   WebSites
      IIS Local Host
          Departments
              LegalWeb
                   Docs   (E:\WebApps\Legal\Docs)
                   _admin
                   _site
                   _ajax
                   _include
                   _includeadmin
                   _js
                   _media
                   _style

This is a classic ASP application with Jscript as the Server side language. I use the File Scripting object to locate the files located in the folder. However once moved to the production webserver, I get “Path Not Found” when I try to access the folder.

To test whether I created the virtual directory right, when I response.write to the browser, I see the following path:

E:\Inetpub\
Would you know how to refer it to the E:\webapps\Legal\Docs folder?

Any suggestions what I could be missing?

Thanks.
 
Hi,
Try using UNC :
\\yourservername\webapps\Legal\Docs

Also insure that the correct permissions are set fro that directory..




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
This is what I have in the ASP page:

Code:
/*////////////////////////////////////////////
	setup
*/////////////////////////////////////////////
	
	// application
	var setup_AppServer = "endoweb";
	var setup_AppPath = "/Legal/";
	var setup_AppDocPath = "/Legal/Docs/";
	var setup_AppNewsDocPath = "/Legal/Docs/_News/";
	var setup_AppURL = setup_AppServer + setup_AppPath;
 
I resolved it. I played around with the IIS settings, re-changed the location of the sub-intranet page within the main intranet folder. Now I am able to see the exact mapped directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top