Difference Between NGen And Aspnet_complier (Precompilation)?
Mar 22, 2010
know the difference between NGen and aspnet_compiler. Ngen create a machine native code which is cached to disk. aspnet_compiler precompiles the site. Isn't both the things same? I would be more interested to know when to use which tool?
View 2 Replies
Similar Messages:
Feb 1, 2011
I got to know about NGen (http://msdn.microsoft.com/en-us/magazine/cc163808.aspx) tool and
very much interested in this.
Will this create machine code? What will the output format, an EXE?
How must speed will it improve over interpreted MSIL?
Even with NGen output will we still need the CLR to run it? If so why, because in that case still CLR is interpreting isn't it?
View 3 Replies
Feb 16, 2011
During ASP.NET precompilation of our .NET 3.5 web application, various initialization is performed in type initializers. One of the type initializers throws a custom exception when the environment is incorrectly configured. However, when our custom exception is thrown, here is what the aspnet_compiler.exe tells us:
[exec] error ASPRUNTIME: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
[exec]
[exec] [SerializationException]: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
[exec] at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback)
[exec] at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild)
[exec] at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback)
[exec] at System.Web.Compilation.Precompiler.Main(String[] args)
Notice that no "real" stack trace information is included. However, when I change our code to throw an InvalidOperationException (instead of our custom exception), the stack trace is included correctly. (As an aside, our CustomException type is annotated with [Serializable]. When we remove the [Serializable] annotation, the aspnet_compiler.exe complains differently -- that our custom exception is not marked as such.) Does anyone know why throwing a custom exception during ASP.NET precompilation is causing the secondary SerializationException? Why is it trying to serialize the exception? Similarly, why does using a BCL InvalidOperationException not cause the secondary SerializationException?
Could this be because the aspnet_compiler.exe is trying to do some sort of reflection on unexpected exceptions? (And therefore since it does not have our App.Project assembly loaded, it is unable to resolve the type?)
View 1 Replies
Mar 2, 2011
The several different environments (e.g. live, demo etc) of my web app are differentiated by config settings in a folder called EnvironmentConfiguration. Whenever I update one of the sites, I delete the EnvironmentConfiguration folder from the precompiled site before copying the website files over (i.e. in order that the EnvironmentConfiguration folder in the deployment location is not replaced). Just to save mistakes, is there a way I can get Visual Studio not to produce the EnvironmentConfiguration folder when it precompiles the site for me?
View 1 Replies
Jul 29, 2010
I would like to know about the difference between .DLL and .EXE?
View 1 Replies
Sep 2, 2010
I thought that <%: had replaced <%=, since mentions on [URL]Prior to ASP.NET 4, the <%= %> syntax was used to execute code and write it out to the page. Starting with ASP.NET 4, you should always use the <%: %> syntax instead..."
However, I've noticed that
<img src='<%=ResolveUrl("~/Images/MyImage.jpg")%>' alt="blah">
works, whereas
<img src='<%: ResolveUrl("~/images/MyImage.jpg")%>' alt="blah">
doesn't.
I'm not sure what the name for these types of expressions are so I've had trouble googling it.
View 1 Replies
Jun 22, 2010
what is the difference between the 1.0,2.0 and 3.5
View 6 Replies
Jul 11, 2010
What is the difference between L2S (Linq to SQL) and EF (Entity Framework), much appreciated if you highlight the cons and pros?
View 6 Replies
Sep 3, 2010
Possible Duplicate:
ASP.NET “special” tags
I hope this isn't too much of a newbie question. I seem to always use the correct syntax, but I don't really understand why I'm using the <%: and <%= in ASP.NET, and I was hoping someone could clarify for me. I found this article which explains <%= and <%#, but wasn't able to find anything in Google on <%:.
Examples of where I have used the various syntax:
<div>
<%: Html.LabelFor(model => model.Type) %>
<%: Html.TextBoxFor(model => model.Type)%>
</div>
and
<div id="header-menu">
<ul>
<li><%= Html.ActionLink("Home", "", "Home" )%></li>
</ul>
</div>
Possible Answer (per ChrisF): ASP.NET "special" tags
View 2 Replies
Dec 29, 2010
Are asp and c# completely different things or ..?
Is asp a language or asp.net? Are c, c++, c# languages?
What is a framework, stack, language
View 4 Replies
Jun 18, 2010
What is the difference between c#.net and vb.net ?
I faced this question in an interview. Any technical difference is there ? I heard that there are two methods additional in vb.net which are not there in vb.net.
View 8 Replies
Mar 3, 2011
What is the differnce between MVC and MVP. for asp.net application which bettor one to use.
View 4 Replies
May 7, 2010
I am in the process of learning MVC, and thought I would parallel the work in both C# and VB.NET. I ran into a snag when right-clicking in an action method inside of a controller to add a view - in C# if I choose to strongly type the view it includes all the objects in the models folder in the drop-down list for selection; however, in VB.NET none of the models are available in the list. Is there some step I need to take in order to make the models objects available in the drop down for selection?
View 4 Replies
Mar 2, 2011
I want to know the difference between IIS 7.5 and Web(PI)3.0?
View 5 Replies
Jan 3, 2011
the difference between MVC and AJAX ? What elements should be considered by me when choosing one of them for system development ?
View 3 Replies
Aug 31, 2010
I'm starting to learn ASP.NET and going through the tutorial videos on www.asp.net. I understand the basic concept of web application frame works like ASP/PHP/ASP.NET. HTML/XHTML is created with special tags that the server knows to read and replace with content. I did a little bit with ASP during a summer internship back in the 90's.
Yet with the few examples of ASP.NET I've seen so far it seems ASP.NET has two types of server interpreted tags.
Most of the time I see <asp:XXXX > tags such as
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
but I also see regular ASP tags like
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="TailspinSpyWorks.SiteMaster" %>
What is the difference between these two tag formats? Both are interpreted by the server correct? Why would I use one over the other?
View 1 Replies
Mar 10, 2010
Have a C# application. When I look in the project folder I see an .exe in bin/debug folder, when I click it executes the application fine. I also see the same .exe in obj/debug folder, when I click it executes but gives me error. What is the difference between these 2 objects and why do I have 2 of them?
View 4 Replies
May 28, 2010
Is DLL and assembly same thing ? Such as mscorlib.dll , is this a assembly too ?
View 18 Replies
Mar 9, 2011
what is difference between developing website using ADO.NET means using connection,command... object and using sqlDataSource?
View 2 Replies
Aug 4, 2010
I need to know the difference of UI paging and Datasource paging.. can we have Sqldatasource paging if its yes let me know how to do..?
What is the great usage of having Datasource Paging...
View 1 Replies
Aug 12, 2010
What is the difference between <% %> and <%= %>
I assume this means the same using either Webforms or MVC.
View 1 Replies
Nov 24, 2010
I want to build my own web framework, and I want to build it in C#. I figure the easiest way to get started is to use ASP.NET to handle all the server communication stuff. The rest I want to build my self. I know next to nothing about ASP.NET. (But know C#, the MVC pattern, and other web frameworks quite well).
In Visual Studio 2010 I see
ASP.NET Web Application
ASP.NET MVC 2 Empty Web Application
ASP.NET MVC 3 Empty Web Application
I figure one of these should be good as a base. I just want some "entry point" into some C# code. I started with PHP so it's a little bit weird for me to not be able to just load up a file in my browser. Anyway, which should I use? What's the difference between a plain ASP.NET Web App and an empty MVC 3 app? If it's "empty" it shouldn't be using any of the MVC framework, should it? I just want to make sure I use the latest and greatest "ASP" for handling the server stuff before I embark down this road.
View 1 Replies
Jun 2, 2010
What is the Difference between DLL and WebService and when to use the DLL and when to use the Web services .
View 9 Replies
Oct 3, 2010
what is the difference between the URL www.abc.com and abc.com
View 4 Replies
Feb 6, 2011
which is future of web technology of microsoft silverlight or mvc asp.net i am really confused iam good in asp.net but completely unaware with silvelight and mvc
View 1 Replies