Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
.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
 
Old June 14th, 2006, 11:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
__________________
Danish audio books for download at http://www.lytenbog.dk (Danske lydbøger til download).
 
Old June 19th, 2006, 01:14 AM
Authorized User
 
Join Date: Jun 2006
Location: Hyderabad, AP, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
---------------
 
Old June 21st, 2006, 12:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old June 22nd, 2006, 04:04 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
 
Old July 3rd, 2006, 04:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old July 4th, 2006, 12:20 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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




Similar Threads
Thread Thread Starter Forum Replies Last Post
Classes in App_Code "not defined"!? LenexaKS ASP.NET 2.0 Professional 7 December 10th, 2007 02:23 PM
Bin, App_code path problem jo5h209 ASP.NET 2.0 Basics 2 August 2nd, 2007 07:31 AM
auto culture for code in App_Code mega ASP.NET 2.0 Professional 5 April 5th, 2007 05:06 AM
App_Code and User Control rolandatem ASP.NET 2.0 Basics 0 April 2nd, 2007 05:42 PM
access app_code classes pooh2006 ASP.NET 2.0 Professional 1 April 5th, 2006 09:21 AM





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