473,480 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AppCode and source files

Hi,

My WebServices project was converted by VS 2005 to its new format :
*.asmx.cs files are in AppCode folder. Everything works fine, but now, when
I'm deploying my WebServices => the WebMethods source code is deployed, too
!!???
To deploy I'm using a WebSetup project and BTW to integrate my WebServices
project, I can select ONLY content files, not Project output or ..., like I
did in VS2002/2003 !!!???

I cannot put the code from *.asmx.cs files in a separate assembly (I have my
reasons) => this is NOT a solution.

What am I missing ? I just want back the old way : the *.cs files to be
compiled in an assembly, put in Bin sub-folder, no source code to end-user
and that's it .

I played with "Nested related files" toolbox button in Solution Explorer,
but without luck.

Thanks for any advice
Mar 2 '06 #1
3 1548
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the new VS 2005/ASP.NET 2.0 project compile/build model, it use
dynamic compilation for all the pages, code in App_Code folder or other
resource or dataset in the web application. And when deploy the applcation,
we have the following approachs:

1. No precompilation and make all the source file (codebehind for asp.net
page and other source code file in App_Code) deploy to target site and let
them be compiled at runtime dynamically.

2. Precompile the source into assembly so that wo don't need to deploy
source files to target site

And for use the #2 precompilation, in vs 2005 ide, you can find the
"Build---->Publish WEb Site" menu which do the work. Also, there is the
"Aspnet_compiler.exe" command line tool in .net framework tools which can
help do this. Here is the msdn article on how to precompile ASP.NET 2.0
SITE:

#How to: Precompile ASP.NET Web Sites for Deployment
http://msdn2.microsoft.com/en-us/lib.../ms227976.aspx

In addition, there're some other helpful article discussing on the related
topics:

#Precompilation In ASP.NET 2.0
http://odetocode.com/Articles/417.aspx

#ASP.NET Compilation Overview
http://msdn2.microsoft.com/en-us/lib.../ms178466.aspx

#Visual Studio 2005 Web Deployment Projects (Beta V2 Preview)
http://msdn.microsoft.com/asp.net/re...p/default.aspx

Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Mar 3 '06 #2
Thanks a lot Steven.

This is what I missed.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGXA03.phx.gbl...
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the new VS 2005/ASP.NET 2.0 project compile/build model, it use
dynamic compilation for all the pages, code in App_Code folder or other
resource or dataset in the web application. And when deploy the
applcation,
we have the following approachs:

1. No precompilation and make all the source file (codebehind for asp.net
page and other source code file in App_Code) deploy to target site and let
them be compiled at runtime dynamically.

2. Precompile the source into assembly so that wo don't need to deploy
source files to target site

And for use the #2 precompilation, in vs 2005 ide, you can find the
"Build---->Publish WEb Site" menu which do the work. Also, there is the
"Aspnet_compiler.exe" command line tool in .net framework tools which can
help do this. Here is the msdn article on how to precompile ASP.NET 2.0
SITE:

#How to: Precompile ASP.NET Web Sites for Deployment
http://msdn2.microsoft.com/en-us/lib.../ms227976.aspx

In addition, there're some other helpful article discussing on the related
topics:

#Precompilation In ASP.NET 2.0
http://odetocode.com/Articles/417.aspx

#ASP.NET Compilation Overview
http://msdn2.microsoft.com/en-us/lib.../ms178466.aspx

#Visual Studio 2005 Web Deployment Projects (Beta V2 Preview)
http://msdn.microsoft.com/asp.net/re...p/default.aspx

Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 6 '06 #3
You're welcome Bragadiru,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Mar 7 '06 #4

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

Similar topics

5
3857
by: Tim Zhao | last post by:
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do...
9
5306
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM...
1
2544
by: M.E.Farmer | last post by:
Hello c.l.py!, I have just finished this and decided to share. PySourceColor is a module to convert Python source into colored html. Yes it has been done before, but I like this better:) You can...
2
2436
by: Sean Dettrick | last post by:
I am wondering if it is possible to increment an integer at compile time using template<int N> (or by any other method, e.g. compiler directives etc), across multiple source files. This may...
2
435
by: RSB | last post by:
Hi Every one, I am currently using Visual Studio .Net and trying to open a project from SourceSafe and once i open the project for the first time i get the following error/warning... "The...
6
1712
by: Jay | last post by:
Is it possible to view the source code for .NET classes? Thanks. Jay
2
1250
by: Andy | last post by:
Hi, I need to deploy my web app (using XCOPY), but first need to put all of the source under source control (not vss). I guess the question is, "Q1) what files need to go under source control?"...
1
19803
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies...
3
3594
by: mshngo | last post by:
Hi, I have seen two main methods of organizing the header and source files in a C++ project. The first method separates the public header files from the remaining files (i.e., source files and...
0
7037
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,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7032
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,...
0
7076
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...
1
6730
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...
0
6873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
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...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.