473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Duplicate a project

Hi,

Ok, I open Visual Studio .NET 2003. New C# ASP.NET Web Service project.
Everything works fine. When I'm done I close Visual Studio, go to the web
server home directory and make a copy of the folder of the existing project
to other one named different because I want to make some changes without
affecting the initial project. But what's my surprise that when I try to
open the copied project all of errors appear. Why Microsoft didn't make
asp.net projects independent of their location like you can do with html,
asp or php pages?

Trying to solve the problems...
First I go to xxxx.csproj.webinfo and change the url to the new path. OK
Then I set the .asmx file to the start page OK
But now... visual studio says the project is not configured to be
debugged... and in the project options debugging is enabled as well as in
Web.config KO
Anyway, I build the project OK
Now I open it in the explorer and this error appear:
----------------
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
Source Error:
Line 43: by Microsoft that offers a single logon and core profile
services for member sites.
Line 44: -->
Line 45: <authentication mode="Windows" />
Line 46:
Line 47: <!-- AUTHORIZATION
-------------

In the IIS manager I see that both the initial folder and the copied one
have different properties but I cannot change them. They have different
icons either (the copied is a common folder). If I make a virtual directory
that points to the other it seems to work but i think is not the solution.

is there an easier way to duplicate a project?

Thanks.
Santi.


Nov 18 '05 #1
1 1689
Yes that is the solution. Copy a project and then go into IIS, right click
on the folder, choose properties and select the create button in the popup
window. All will be well. You don't need to muck with any other stuff. If
you didn't map the virtual directories you get the host of problems which
you described.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Santi Serrano" <ss****@hotmail.com> wrote in message
news:ue**************@TK2MSFTNGP11.phx.gbl...
Hi,

Ok, I open Visual Studio .NET 2003. New C# ASP.NET Web Service project.
Everything works fine. When I'm done I close Visual Studio, go to the web
server home directory and make a copy of the folder of the existing project to other one named different because I want to make some changes without
affecting the initial project. But what's my surprise that when I try to
open the copied project all of errors appear. Why Microsoft didn't make
asp.net projects independent of their location like you can do with html,
asp or php pages?

Trying to solve the problems...
First I go to xxxx.csproj.webinfo and change the url to the new path. OK
Then I set the .asmx file to the start page OK
But now... visual studio says the project is not configured to be
debugged... and in the project options debugging is enabled as well as in
Web.config KO
Anyway, I build the project OK
Now I open it in the explorer and this error appear:
----------------
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 43: by Microsoft that offers a single logon and core profile services for member sites.
Line 44: -->
Line 45: <authentication mode="Windows" />
Line 46:
Line 47: <!-- AUTHORIZATION
-------------

In the IIS manager I see that both the initial folder and the copied one
have different properties but I cannot change them. They have different
icons either (the copied is a common folder). If I make a virtual directory that points to the other it seems to work but i think is not the solution.

is there an easier way to duplicate a project?

Thanks.
Santi.

Nov 18 '05 #2

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

Similar topics

0
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
11
by: Jean-Christian Imbeault | last post by:
I have a table with a primary field and a few other fields. What is the fastest way to do an insert into that table assuming that sometimes I might try to insert a record with a duplicate primary...
2
by: Emilio Jimonerz | last post by:
Hello. I am developing a project tracking database that records the following information: 1. Project name 2. Lead person(s) 3. Support person(s) 4. Clients 5. Contacts The data is organized...
0
by: esoroka | last post by:
ASP.NET project under VSS control. As soon as I make a change and save my project it duplicate the file names (*.vb or *.rpt) and generate me hundred errors and say "Ambiguous class name.." . Any...
0
by: martin | last post by:
I've just been handed an old project (written in VC6 or possibly an earlier version) which I need to compile in Visual Studio Express. I went through the normal solution coversion process but the...
0
by: Joe | last post by:
Hi, what circumstances can lead to the situation (I currently have this situation, but I don't know why...) that the list of Localized Resources outputs (in a VS 2005 setup project, in the File...
5
by: rob | last post by:
Does anyone know of a duplicate file checker project in C#? Couldn't locate anything on CodeProject or SourceForge. Has anyone here considered writing one?
1
by: Abandoned | last post by:
Hi.. I'm working a search engine project now. And i have a problem. My problem is Duplicate Contents.. I can find the percentage of similarity between two pages but i have a 5 millions index and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.