473,770 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Web Projects retrieved from Repository

When I open a web project from a sandbox, Visual Studio reports:

“The project you are trying to open is a Web project. You need to
open it by specifying its URL path”

The project is checked out from a repository into a sandbox. I don’t
want the developer to have to setup IIS on their local machine to
enable the editing of the web project – I want to configure the web
project so that it only references files in the developer’s sandbox.
The application’s system dependencies, anyway, require all the
binaries to be copied to a test server for anyone to be able to run
and check their work.

I heard it is possible to bypass IIS by enabling web sharing on a
sandbox’s folder. I did this by clicking properties, selecting Web
Sharing, and chosing “Share this folder” and giving the same alias
name as the virtual folder name IIS uses on the test server.

Despite doing this, I still get the Web Project error. What am I
doing wrong?

Here’s my current configuration of the solution, project, and files in
the sandbox, any help would be much apprecieated:

Sandbox:

G:\MySandBox\My WebApp.sln
G:\MySandBox\My WebApp.csproj.w ebinfo
G:\MySandBox\My WebApp.csproj
G:\MySandBox\de fault.aspx
G:\MySandBox\de fault.aspx.cs
G:\MySandBox\de fault.aspx.resx
G:\MySandBox\Gl obal.asax
G:\MySandBox\Gl obal.asax.cs
G:\MySandBox\Gl obal.asax.resx

MyWebApp.csproj .webinfo:

<VisualStudioUN CWeb>
<Web URLPath = file:\\MyWebApp .csproj />
</VisualStudioUNC Web>

MyWebApp.sln:
Microsoft Visual Studio Solution File, Format Version 8.00
Project(“{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}”) = “MyWebApp”,
“MyWebApp.cspro j”, “{DB706866-A668-BD49-9501FCC23690}”
ProjectSection( ProjectDependen cies) = postProject
EndProjectSecti on
EndProject
Thanks in advance, Andy
Jun 27 '08 #1
1 1142
Well, according to http://msdn2.microsoft.com/en-us/library/ms998208.aspx
you can't force a web project to use local file access in visual
studio .NET.

Visual Studio always uses the HTTP protocol to access and modify files
for web projects, and this means that if you are using a repository
with web projects, you need to have a copy of IIS that's local to your
server running to translate the HTTP requests into local file access
commands for your sandbox.

To enable this, you have to create virtual directories that point to
the folders that hold the web projects in your sandbox. You can do
this in one of two ways: through IIS Manager or by setting the
webshare tab on the properties sheet of the folder. It doesn't matter
which you choose as both approaches create and configure virtual
directories in IIS. I found that setting the webshare tab is easier
and less confusing.

Right click the web project folder in your sandbox and select
properties from the popup menu. On the "Web Sharing" tab of the
properties dialog that opens, click "Share this folder".

On the Edit Alias dialog that appears, select all permissions. The
Alias textbox should be populated with the folder name. Click [OK] to
close the dialog, and then [OK] again to close the property sheet.
You have just created a virtual directory; you do not need to file
share the folder.

Edit the project's webinfo file to specify where the project file is
in relation to the virtual directory you have just created. The
webinfo file will have the same name as the project file, except it
will also have a .webinfo suffix. Locate the URLPath attribute of the
Web XML tag and set the path to:

http://localhost/youraliasname/yourp...ilename.??proj

where youraliasname is the name you entered in the alias textbox of
the previous step. The server will always be localhost.

Edit the solution file and make all the web project file paths
relative; this means removing the http://server part and leaving just
the project filename.

Now, when you launch Visual Studio.NET and open a solution in your
sandbox that has web projects in it, the projects will load and the
code that is presented for editing to you will in fact be what's in
the sandbox and not from a website in IIS.

When you check the solution back into the repository, don't checkin
the webinfo files. These are specific to each developer.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
1505
by: Ben | last post by:
My company is using VS.Net 2003 to create and maintain asp.net projects on a windows 2003 webserver. The projects are created as applications and subwebs, then via FPE 2002 extensions are added to source control -> External version control, $/path/to/site. We can open the projects no problem, we can check in / out no problem. We don't however receive file history options, compare versions or anything other than check in / out. Is this...
14
1862
by: Steven T. Hatton | last post by:
Is there a more or less accepted authority describing how to structure a project? I know Julie has asked about namespaces. That is certainly a part of my question, but I want to know about the whole picture. If such a thing doesn't exist, then would someone with enough name recognition to have an influence please decree such a guideline. I'd be happy to simply be able to say my project is organized in accordance with the ...
4
5393
by: Alexandre | last post by:
Hi, I have some projects (webs applications) and i want to shared Session between the projects but, they are differents "dll/aplications". Like this: Session i want to see then value in all applications how can i do this? Using sql-server? How? thanks a lot.... ---------------------------------------------------------
7
2381
by: SpookyET | last post by:
/FooProject /bin (release) /doc /src (only *.cs) /temp (obj files) /test (debug) /build /Visual Studio 2003 /Visual Studio 2005
10
1792
by: Conan | last post by:
Hi, I am having a problem with .Net / Visual Studio that I can't find the cause of. I have searched newsgroups and the web and find people with similar but different (I think) problems. Here's the issue and some of what I've found out - I really hope it's familiar to someone and there's an answer! I have a solution with about a dozen projects, including 2 asp.net web applications and 1 asp.net web service project. Having migrated to...
7
3169
by: crowl | last post by:
VS.2003, .NET Framework 1.1, C# My goal: Creating a dll (helper.dll) which contains some UserControls and some other helpful classes in order to use it in other projects. Symtoms: The inital use of the UserControl component works. However, if the Helper Project is recompiled, the UserControl does not work
0
948
by: AAJ | last post by:
Hi all I have been set the task of documenting a number of projects that have developed and grown over the last 5 years. The documentation I collate and produce for the project, plus links and and other info I find needs to be manually added to a central repositiory, and made searchable (on both technical and user guide levels) via our intranet. The projects involves C#, VB6, SQL Server 2000, MS Access front Ends, Dreamweaver, IIS...
0
1530
by: yenlin.liu | last post by:
Who is the owner of the ebXML Registry Repository? Since The ebXML Registry Repository stores many business profiles and business scenarios. Companies can upload/download data from the ebXML RR. There should be an organization playing the leading role to establish or meintain the repository. Could anyone tell me who owns the repository and who has the responsibility to establish the repository? I found some ebXML Registry...
4
18275
by: rahatekarabhijeet | last post by:
Hi, I have seen that some modules which are available on CPAN are not listed in ActiveState repository. So those are not available to install by using ppm. I find out the way of adding adding repository in ppm given below, Way to add repository: To use these package repositories you start PPM and at the prompt type set repository NAME URL e.g: set repository JENDA http://Jenda.Krynicky.cz/perl
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.