Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 8th, 2004, 07:00 AM
ak ak is offline
Authorized User
 
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default setting up asp web project on a dev server

Hi,
I have visual studio .net set up on the computer i use to work. the files i work on are located in a Dev Server in the office which dos not have visual studio .net installed. Can I create web application projects on the dev server and work on files residing over there from visual studio .net on my machine?

i have made attempts by creating a virtual website on the dev server and giving the url in the location field in the new projects box:
http://10.0.0.241:103/WebApplication1
 but it has failed with the following:



ak
__________________
ak
  #2 (permalink)  
Old March 8th, 2004, 07:14 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

With the following what? There is something missing in your post.

You should be able to do what you describe here. When you create a new Web site, have it point to http://YourServer Then VS.NET will try to search for the files in a share at YourServer. If that fails, you get the opportunity to browse for the files yourself. When you get that dialog, browse to the folder where the files are located (on the remote server). Use File Share instead of the Front Page extensions.

HtH,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old March 8th, 2004, 07:32 AM
ak ak is offline
Authorized User
 
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the error i get:
a connection with the server could not be established

is this related some sort of security issues?


ak
  #4 (permalink)  
Old March 8th, 2004, 07:44 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Does your computer or server have a firewall? Are you sure the site is running on port 103? What happens when you change the server port to 80?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old March 8th, 2004, 08:34 AM
ak ak is offline
Authorized User
 
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 Does your computer or server have a firewall? Are you sure the site is running on port 103? What happens when you change the server port to 80?

Imar
Hi Imar,
no there is no firewall on my computer or the server .
I tried port 80 : initially the web access fails and then when i try to open the project with frontpage server extensions it works.

visual studio does not seem to open up a project with ip address, instead it opens the project in the format: http:\\intranet\webapplication3

is there a way to solve this?
ak
  #6 (permalink)  
Old March 8th, 2004, 09:19 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Here's what I do to make it work:


1. Map a server path to a local drive letter on the dev machine. For example, I have \\192.168.2.20\inetpub mapped to x:\ where 192.168.2.20 is my server.

2. Create a folder called Webapplication1 in X:\wwwroot, so you end up with X:\wwwroot\Webapplication1
3. Create a new Web application and have it point to http://192.168.2.20/Webapplication1
4. VS.NET will show a dialog that allows you to browse for the files of the project. Browse to X:\wwwroot\Webapplication1 and click Open

If everything works as planned, VS.NET will create a new app at the specified location.
Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #7 (permalink)  
Old March 9th, 2004, 06:22 AM
ak ak is offline
Authorized User
 
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 Here's what I do to make it work:

If everything works as planned, VS.NET will create a new app at the specified location.
Cheers,
Imar
Hi Imar,
we have two ip addresses going to the same server..could that be a problem?
We use the server as a company intranet with ip address and also with the other ip address we use it as a server to develop our sites.

a.I have carried out instruction (1): accessing the dev server particular site from my machine using G:\
b.I created a wwwroot folder in that area and then created a Webapplication1 folder within so: G:\wwwroot\Webapplication1
c. in the new projects dialogue box when i browse and go to the mapped drive and locate: G:\wwwroot\Webapplication1 , the 'ok' button gets disabled





ak
  #8 (permalink)  
Old March 9th, 2004, 08:23 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

AFAIK, two IP addresses shouldn't make a difference.

But how do you create the initial project? You should create a project at http://ServerNameOrIP/WebapplicationName. Then VS.NET tries to connect to that server, finds out the physical location, and then offers you to browse to the network share / folder. You can't open a project directly using DriverLetter:\WebApplication.

Why did you create a wwwroot folder? If IIS is set up correctly on the server, there should already be a c:\Inetppub\wwwroot folder. Did that folder exist? Where does G:\ map to?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #9 (permalink)  
Old March 9th, 2004, 09:10 AM
ak ak is offline
Authorized User
 
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 AFAIK, two IP addresses shouldn't make a difference.

But how do you create the initial project? You should create a project at http://ServerNameOrIP/WebapplicationName. Then VS.NET tries to connect to that server, finds out the physical location, and then offers you to browse to the network share / folder. You can't open a project directly using DriverLetter:\WebApplication.
>>when you click on browse button in new projects dialog box and then select a specific folder it maps up the drive letter


Why did you create a wwwroot folder?
>> trying to follow your instructions
If IIS is set up correctly on the server, there should already be a c:\Inetppub\wwwroot folder. Did that folder exist?
>> there is a C:\inetpub but no wwwroot - it is empty
there is D:\Inetpub\wwwroot but it is unused

 Where does G:\ map to?
>>G:\ maps to D:\Inetpub\EmpireDevWeb of the web server
Imar
When we go into our inetpub folder (D:\Inetpub) on the server:
we have the wwwroot folder there but we do not use it for our website developments,
instead we have two other folders which we use:
EmpireDevWeb and IntranetWeb
out of these two folders i am able to visual studio asp.net web applications in IntranetWeb
but not in the other folder which is where i would like to create new web applications.

G:\ maps to D:\Inetpub\EmpireDevWeb of the web server

http://intranet maps to D:\Inetpub\IntranetWeb

the following steps would allow me to create a web appication:
a. http:\\intranet\webapplication3 in the new projects dialog box
b. a failure takes place with the following alrt box:
    The default web access mode for this project is set to to file share 'http:\\intranet\webapplication3'
    can not be opened with the path '\\intranet\$wwwroot\webapplication3'
    the error returned was:
        Unable to create Web project 'webapplication3'. The UNC share does not exist or you do not have access.
    Would you like to do?
        [option button] retry using a diffrent file share path? locaction [input box + browse button]
        [option button] try to open the project with Frontpage Server Extensions
c. I select to open the project with Frontpage Server Extensions and it works creating a project woth folder in D:\Inetpub\IntranetWeb


ak
  #10 (permalink)  
Old March 9th, 2004, 09:21 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I am not sure I am still with you, but I'll try anyway.

If '\\intranet\$wwwroot\webapplication3' can't be found, make sure you create a valid share, and use that share in VS.NET e.g. \\Intranet\OurInetpub\Webapplication3 where OurInetpub can map to d:\EmpireDevWeb for example.

If that doesn't work:
1. Create a new Virtual Dir in IIS on the server.
2. Name the new VD WebApp3 for example, and have it map to d:\EmpireDevWeb\Webapp3.
3. Make sure that d:\EmpireDevWeb\Webapp3 is accessible, either by sharing out EmpireDevWeb, or by sharing Webapp3
4. Next, create a new VS.NET web app and have it point to http://Intranet/Webapp3. When it asks for a file location, point it to the share you created in step 3



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 


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
ASP Linking to SQL Server 2000 Dev JoshCBR28 ASP.NET 1.0 and 1.1 Basics 6 October 24th, 2005 05:20 PM
coding php in knoppix and setting up a web server mrobertson PHP How-To 0 June 2nd, 2005 08:35 AM
set up asp.net web application-dev on remote serve ak VS.NET 2002/2003 1 March 5th, 2004 01:20 PM
setting up PC as a web server with IIS kathryne Classic ASP Basics 7 October 9th, 2003 04:55 PM
Works fine on web server, not on dev machine eoffshore PHP How-To 1 July 9th, 2003 09:32 AM



All times are GMT -4. The time now is 04:17 AM.


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