p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   setting up asp web project on a dev server (http://p2p.wrox.com/showthread.php?t=10215)

ak March 8th, 2004 07:00 AM

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

Imar March 8th, 2004 07:14 AM

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.

ak March 8th, 2004 07:32 AM

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

is this related some sort of security issues?


ak

Imar March 8th, 2004 07:44 AM

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.

ak March 8th, 2004 08:34 AM

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

Imar March 8th, 2004 09:19 AM

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.

ak March 9th, 2004 06:22 AM

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

Imar March 9th, 2004 08:23 AM

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.

ak March 9th, 2004 09:10 AM

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

Imar March 9th, 2004 09:21 AM

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.


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

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