The Artima Developer Community
Sponsored Link

.NET Buzz Forum
DevDays 2004 Belgium - .NET Framework for Sys Admins

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
David Cumps

Posts: 319
Nickname: cumpsd
Registered: Feb, 2004

David Cumps is a Belgian Student learning .NET
DevDays 2004 Belgium - .NET Framework for Sys Admins Posted: Feb 10, 2004 6:26 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by David Cumps.
Original Post: DevDays 2004 Belgium - .NET Framework for Sys Admins
Feed Title: David Cumps
Feed URL: http://weblogs.asp.net/cumpsd/rss?containerid=12
Feed Description: A Student .Net Blog :p
Latest .NET Buzz Posts
Latest .NET Buzz Posts by David Cumps
Latest Posts From David Cumps

Advertisement
Next was Tim Sneath. With a 2 part session about .NET for sysadmins.



This is actually a session from the IT Pro track, but there were a lot of developers in there.

In the first session he explained about everything the .NET framework is and does, along with some nice demo's. From which I'll give some commands.

First the basic stuff
csc file.cs // compile an exe
csc /t:library file.cs // compile a dll
csc /r:yourdll file.cs // compile an exe with your dll referenced

Then something nice:
ildasm yourapp.exe

This tool gives a nice overview of the generated IL and the metadata. I totally get the concept of why there is no more dll hell.

The metadata includes the version number of your references, along with a possible public key. Which makes sure only your dll gets run, and no trojan dll someone elses got in there.

Something else that got explained was signing.

First you generate a privatepublic keypair with:
sn -k key.snk // create your keypair, keep it safe!

Then you put it in your assembly and you sign it, and that way it can get a strong name.

Some random handy commands I noticed where:
pushd . // store the current dir
popd // return to the dir
start . // open the current dir in explorer

Now the GAC was explained. This is kind of a global assembly storage place, the System32 of .NET if you like.

Some funny things I saw where that he got CommandBar and BandObjects in there ;)

One other usefull tool is ngen.

Your code always gets JIT-ted when run, this is no problem for servers. Which stay on for a long time. But for a workstation and a Windows Forms app, this could make the startup slow. So therefore we generate an image, in native code. This is stored in the GAC as well, this makes your code startup a lot faster. And your app doesn't need a Strong Name for this.

ngen yourapp.exe
ngen yourdll.dll

You could do this with your installer after deployment.

After this, it was lunch :p
Sandwiches and orange juice.

Then back to Tim Sneath for part 2.



The most important thing I got here that isn't on the slides is that user randomly choose Yes or No when prompted for ActiveX controls. Depending on what mood they're in.

It mainly went about deployment and security in this session. How you can easily deploy your apps, with an installer, from a fileshare or from the web.

It showed the ease of XCOPY, along with recommending MSI.

Something that I found weird was, when you execute an exe locally and it doesn't find all required dlls, it won't start. When you run it from the web, it'll start and throw an exception when it can't find the dll when it dynamicly wants to load it. Which, if unhandled, can make your app crash. Why not check for all required dlls before running? Doesn't a HTTP HEAD do the trick to check if it's there or not.

That was all for the .NET for sysadmin sessions.

Next one was about ASP.NET, also by him :p

Read: DevDays 2004 Belgium - .NET Framework for Sys Admins

Topic: 1 year of blogging Previous Topic   Next Topic Topic: Longhorn and Whidbey in Dublin tomorrow

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use