 |
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

June 14th, 2006, 11:16 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Renaming App_Code
When creating a new Web Service in Visual Studio 2005 two folders are created. One is called App_Data and one is called App_Code. I would like to rename the folder, but if I do the web service doesn't work. I get something like...
Could not create type 'Service'.
... as a compile/validation error when building. What is the problem? Isn't it possible to rename the App folder?
Thanks, Jacob.
|

June 19th, 2006, 01:14 AM
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi...
The App_code , App_data , Themes etc are called ASP.net Folders.
Your ASP.net Application looks into these folders for databases, classes etc depending on their name.
So, we are not supposed to rename them
---------------
The .NET Underground Portal
www.pureportals.com/developers
---------------
|

June 21st, 2006, 12:54 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you for the reply. I saw that the folders had special icons etc. but figured that it somehow was possible to rename them, but I guess not. IMHO, this is really bad; i.e. to have non-configurable folder names!
Thanks anyway, Jacob.
|

June 22nd, 2006, 04:04 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Jacob,
Yeah, it's not very convenient. Then again, now that everyone uses the same folder names, it's easy to see what should go where.
You may want to read this: http://msdn.microsoft.com/asp.net/wh...ta2update.aspx with the section "Alternate Solutions Considered" in particular, to understand why this decision was made.
And if you really don't like the App_Code folder, you always move your code into a separate class library project....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|

July 3rd, 2006, 04:17 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, Imar.
I found it very informative; especially the section Alternate Solutions Considered. Configurable directories have been considered. After all it is just nice to know that I do not have to search for a solution to rename the folder anymore... sadly it cannot be done.
BTW... I have also used the Class Library approach.
Thanks again, Jacob.
|

July 4th, 2006, 12:20 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You're welcome....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|
 |