473,396 Members | 1,929 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,396 software developers and data experts.

aspnet_compiler 3 questions

Hi;

I am building our asp.net app for release and we want to precompile the
whole thing. A couple of questions.

First off, what is the -v for? It looks like I can call it anything. Does
that mean anything?

Second, once I compile and have created the pre-compiled program - what
files do I sign with my digital ID?

Third, after I sing them, how do I reapply the keypair to strongly name the
files again?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Nov 13 '06 #1
4 3634
Please ignore question 3 - I had it backwards.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"David Thielen" wrote:
Hi;

I am building our asp.net app for release and we want to precompile the
whole thing. A couple of questions.

First off, what is the -v for? It looks like I can call it anything. Does
that mean anything?

Second, once I compile and have created the pre-compiled program - what
files do I sign with my digital ID?

Third, after I sing them, how do I reapply the keypair to strongly name the
files again?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Nov 14 '06 #2
Hi Dave,

As for the questions you mentioned:
First off, what is the -v for? It looks like I can call it anything. Does
that mean anything?
============================
It is used to specify the virtual path in IIS site(in case your web
application is in IIS and do not want to use physical path to reference its
application directory). Of course you can not assign discretionary value
for it.
** if your web application is originally developed through test server, you
should use -p option with physical path to provide the application's
directory path. And here the -v option will represent the virtual path
under the IIS site(you'll deploy it to later).
** if your web application is already hosted in IIS before precompilation,
the -v option just provide the place of its application directory (it
assume that the application is under IIS default site, otherwise you should
use -m to specify IIS metabase path)


Second, once I compile and have created the pre-compiled program - what
files do I sign with my digital ID?
============================
Do you mean strong-name your precompiled assembly? If so, you can just
provide the strong-name key info (file or container) when you use
aspnet_compiler to precompile your site. e.g.

aspnet_compiler -v virtualPath targetPath -keyfile keyFile.snk -aptca

If you want to sign it after precompilation, you need to make it delaysign,
anyway, the aspnet_compiler.exe tool can handle both precompilation and
strong-name signing.

Here are the MSDN reference which as described detailed on ASP.NET 2.0
Precompilation and the aspnet_compiler tool:

#ASP.NET Compilation Tool (Aspnet_compiler.exe)
http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx

#How to: Sign Assemblies for Precompiled Web Sites
http://msdn2.microsoft.com/en-us/library/ms228209.aspx

In addition, ASP.NET team has also shipped an add-on project---Web
Deployment Project that can improve the flexibility of ASP.NET 2.0
PROJECT'S precompilation:

#VS 2005 Web Deployment Projects
http://weblogs.asp.net/scottgu/archi...06/429723.aspx

http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx
Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 14 '06 #3
Hi;

Followup on your answers:

1) I tried using -v abc and then deployed the compiled code to
c:\inetpub\wwwroot\WindwardPortal and that worked fine using the name
WindwardPortal. It seems that the name given to -v is not important. Am I
missing something?

2) On this I am talking about signing with a digital certificate, not strong
naming. We do this with all the libraries we ship so you know they came from
us. We do this with signcode.exe (a MS tool).

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Steven Cheng[MSFT]" wrote:
Hi Dave,

As for the questions you mentioned:
First off, what is the -v for? It looks like I can call it anything. Does
that mean anything?
============================
It is used to specify the virtual path in IIS site(in case your web
application is in IIS and do not want to use physical path to reference its
application directory). Of course you can not assign discretionary value
for it.
** if your web application is originally developed through test server, you
should use -p option with physical path to provide the application's
directory path. And here the -v option will represent the virtual path
under the IIS site(you'll deploy it to later).
** if your web application is already hosted in IIS before precompilation,
the -v option just provide the place of its application directory (it
assume that the application is under IIS default site, otherwise you should
use -m to specify IIS metabase path)


Second, once I compile and have created the pre-compiled program - what
files do I sign with my digital ID?
============================
Do you mean strong-name your precompiled assembly? If so, you can just
provide the strong-name key info (file or container) when you use
aspnet_compiler to precompile your site. e.g.

aspnet_compiler -v virtualPath targetPath -keyfile keyFile.snk -aptca

If you want to sign it after precompilation, you need to make it delaysign,
anyway, the aspnet_compiler.exe tool can handle both precompilation and
strong-name signing.

Here are the MSDN reference which as described detailed on ASP.NET 2.0
Precompilation and the aspnet_compiler tool:

#ASP.NET Compilation Tool (Aspnet_compiler.exe)
http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx

#How to: Sign Assemblies for Precompiled Web Sites
http://msdn2.microsoft.com/en-us/library/ms228209.aspx

In addition, ASP.NET team has also shipped an add-on project---Web
Deployment Project that can improve the flexibility of ASP.NET 2.0
PROJECT'S precompilation:

#VS 2005 Web Deployment Projects
http://weblogs.asp.net/scottgu/archi...06/429723.aspx

http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx
Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 14 '06 #4
Thanks for your reply Dave,

Are you using the -p option to specify the original directory's path? If
so, the -v virtual path will not be very critical. However, when you do not
include the physical path by -p option, the -v virtual path will be used
for locate your source site's path.

As for the signing tool (.net 2.0 use signtool.exe), you can just sign the
output precompiled assembly through signtool.exe. Also, if you use the web
deployment project, you can configure it to output a single precompiled
assembly:

#Visual Studio 2005 Web Deployment Projects
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

Thus, you can sign against the single output assembly.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 15 '06 #5

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

Similar topics

0
by: Gilles | last post by:
Hello, I am new to the group so please let me know if there is a better place to post this. I am trying to use aspnet_compiler to precompile a full web site and put the result into an MSI setup...
3
by: Sam777 | last post by:
Our global.asax file has the following line: <OBJECT ID="sInfo" RUNAT="Server" SCOPE="Session" CLASS="a.b.c.d"></OBJECT> This is referred to in other places in global.asax and other pages by just...
7
by: CuriousGeorge | last post by:
I'm using aspnet_compiler to precompile my web app for deployment. Currently it copies all subfolders from the asp.net projects source folder to my destination folder. I have some files I do not...
0
by: yousry | last post by:
Hi guys, I am trying to precompile a virtual directory that is located in a web site other than default web site. I do not know how to use Aspnet_compiler to precompile it. I tried to use the...
1
by: chris | last post by:
I am confused about the aspnet_compiler. I have a solution that contains a website, and other supporting assemblies such as business logic and the data layer. Before I actually run...
0
by: JJ Koran | last post by:
I am trying to compile a web site in place on a website other than the default web site on my production server. On the development server we have a web site installed on the default web site...
0
by: Bjørn Terje Svennes | last post by:
When compiling my web site with Visual Studio everything works fine. But when bulding on our build server using the aspnet compiler (aspnet_compiler.exe), I get the message "error ASPPARSE: Could...
3
by: George Ter-Saakov | last post by:
If I precompiled my project with aspnet_compiler do I need to have web.config on a server? Or all I need is just a BIN directory and aspx files as markers? George.
2
by: Brian McCullough | last post by:
Is aspnet_compiler.exe actually the tool used by the ASP.NET runtime to dynamically compile an ASP.NET 2.0 application? ...Or is the aspnet_compiler.exe tool just a console application "front-end"...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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
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...
0
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,...

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.