IIS7 Windows7/Server2008 ApplicationPoolIdentity Security Change from Network Service


Yeah this one got me.. http://learn.iis.net/page.aspx/624/application-pool-identities/

The change microsoft made to have AppPool now run as “ApplicationPoolIdentity” instead of Network service.

So if you normally give Network Service rights needed to your webapp, you now have to stop doing that and change it to

IIS AppPool\DefaultAppPool



End of that.





  1. Open Windows Explorer
  2. Select a file or directory.
  3. Right click the file and select "Properties"
  4. Select the "Security" tab
  5. Click the "Edit" and then "Add" button
  6. Click the "Locations" button and make sure you select your machine.
  7. Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box.
  8. Click the "Check Names" button and click "OK".

By doing this the file or directory you selected will now also allow the "DefaultAppPool" identity access.

20 jQuery Methods to use


Great post on Net.tutsplus on 20 Helpful jQery Methods you Should be Using.

  1. after() / before()
  2. change()
  3. Context
  4. data() / removeData()
  5. queue() / dequeue()
  6. delay()
  7. bind(), unbind(), live(), and die()
  8. eq()
  9. get()
  10.   grep()
  11.   Pseudo-Selectors
  12.   isArray() / isEmptyObject() / isFunction() / isPlainObject()
  13.   markArray()
  14.   map()
  15.   parseJSON()
  16.   proxy()
  17.   replaceAll() / replaceWith()
  18.   serialize() / serializeArray()
  19.   siblings()
  20.   wrap() / wrapAll() / wrapInner()


Of course see the original post on the details of each of these.

My Day at CodeCamp in Orlando 2010

This weekend I attended the Orlando .Net Code Camp, 2010.  It was really good and I’m glad I went.  I even won a book, Professional ASP.NET 4 in C# and VB in a raffle drawing; I never win stuff :) I want to say thanks Microsoft!

Silverlight Animations 101

by Henry Lee from www.newagesolution.net

My first class of the day. This was a good class for me, because I wanted to know more about Silverlight animation. Granted some of it I already knew from using Blend and recently developing a business tool in SL, such as the VisualStateManager, but other little things I picked up were nice to knows and stuff I would like to dive into more later when I have time.

Behavior Driven Development (BDD)

by Sean Chambers, files at http://github.com/schambers/orlandocodecamp2010

This was a great class in learning a new way of thinking and testing.  Developing test cases and application requirements from the outside in. Similar to GWT (Given When Then). I got a lot of good info from this on BDD vs TDD.  A neat tool that was mentioned was SpecUnit which reads your BDD and generates a cool Html document from it.  Also, due to the nature of Ruby on Rails, there is a good book on BDD for Ruby. Though it’s for Ruby, the theory is the same. It was recommended. The RSpec Book.  The method was developed by Dan North.

Some tools mentioned were CruiseControl.Net, Resharper or Coderush templates and Autokey Bdd.

Successfully Running Your Own Business

by Paul Swengler

Good class for someone that’s never run or had a business before. I thought I’d get something out of it, but unfortunately I already knew all the info. Went over a lot of basics and obvious that people overlook.

WCF RIA Services

by John McFetridge http://jmcfetridge.blogspot.com/

I’m sorry John, but I had to walk out of the class. I just couldn’t sit in there anymore.  I’ve already developed SL apps talking with WCF but not with RIA or Entities or Domain Service. However, this class was way to fast and just all over the place that it hurt my head and I had to leave. Best thing I got out of it was Saurabh Pant’s weblog.

From there I went into a jQuery class halfway in, but already knew the material.

Introduction to Azure and SQL Azure

by Joe Healy http://dfwiki.devfish.net

Now, this was a great class. Great and better understanding of Azure since the first time I sat in on it, when it was still fresh out the womb at Microsoft.  Makes so much sense for small companies or even large ones to have tools developed that can be scaled to fit sudden bursts and spikes in traffic for a fraction of the cost if you were to house your own sever farm. SQL for Azure has come a long way as well and it was exciting to see it in action.  There’s also the free pricing model for small apps and testing.

I got a lot of information out of this class. Some things I want to look up for later is Jeff Bernes’ case study as he in Tampa like myself.   Jim Zimmermon and the Tampbay.net group.  Using Bizspark or Website Spark to get access to the MSDN and 8 months of Azure for free.

Note, need to use SQL Manager R2 with Azure and also I want to look more into SQL 2008 Geospacing. 

Local SQL to SQL Azure and SQL Azure to local SQL tool, SQLAzureMW at codeplex.

Understanding Lambda’s in .Net

by Scott Dorman at http://geekswithblogs.net/sdorman/

This was about Lambda expressions in C#. Was good but since I mainly develop in VB.Net, just made me a little jealous :p

Design for Developers

by Diane Leeper at http://www.dianeleeper.com/ and blog at http://www.42stars.com/blog/

This was another great class where I walked away with a lot of information on design. She gave out 5 rules.

#1 – Alignment & Grid
#2 – Focus
#3 – Art
#4 – Pictionary
#5 – Community

I won’t dive into those and take away her thunder but it will help me remember. Some books that were recommended.  Drawing on the Right Side of the Brain, also The Back of the Napkin, which is more up my alley.

Some community links she gave out..


The End

And that about wraps it up.  Also, came across Russ there who does Silverlight training. http://www.russtoolshed.net/

They say it will all be on Channel9 soon at msdn.

Shrinking Silverlight XAP Files

Was looking for several ways to shrink my 2mb Silverlight XAP file.

Preferences-system.svgI ran across ComponentOne’s XAPOptimzer. However, the online demo failed considerably.  I uploaded my 2mb file and then it just timed out. Tried it twice.


Preferences-system.svgGiving up on that I came across Delay’s XAP Shrinker.  The thing I didn’t like about this one is that it requires you to have a zip and unzip in the same folder.  This, though you can auto run after your build which is nice.

Preferences-system.svgThe third tool I came across, ReXapper, which used the same concept as Delay’s but had everything built in and you could run from visual studio. This is the source code, you can compile the etc..

I created a very small application called ReXapper.exe which can do exactly the same as Delay describes but there is no external archiving utility necessary. It uses the SharpZipLib to re-zip the file. So there's just a tiny (124 kb) command-line executable.”  

However, upon using this my xap file actually GREW in size!! (XAP file is rexapped, old size: 2120567, new size: 2120605, time: 439) wtf lol scary.  So back to the drawing board.  I’ve read about using PNG compressors also to shrink your images down.

Nuvola apps edu languages.gifAlso found a good post on it here.

Optimizing Pages that use Telerik Controls. Mainly RadGrid


I was watching a webcast on Telerik TV, it’s called Optimizing RadGrid for ASP.NET Ajax.  There is a lot of useful information there. I summarized a bunch of it.

On my test page I…

  • Added Browserfile...
    • Compressing ViewState for RadTelerik controls  (Dropped viewstate considerably from sample page, 50,776 bytes to 5,428 bytes)
  • Added RadCompression for AJAX Calls to drop traffic size on ajax post-backs (Not handled by IIS compression)
  • Reduce Request using StyleManager and RadScriptManager
    • Added RadStyleSheetManager to MasterPage (Combines all CSS sheets into one download to limit requests)
    • Switched to RadScriptManager on Masterpage instead of ScriptManage
      • Request dropped from 71 to 47


Summarized Tips

  • Bind Grid Data on PreInit event, this will keep data from going to the ViewState and cut down on page size
  • If the Grid is ReadOnly and no editing takes place, then turn off viewstate for the Grid. EnableViewState="False"
    • Features that will NOT work when viewstate is off
      • Custom Edit Forms (User Control or Form Template)
      • Filtering
      • Grouping
      • Using Cached Data and Paging Together
    • Features that WILL work when view state is off
      • Indexes of Selected Items
      • Indexes of Edited Items
      • Group-by Expressions and Settings (but not the expanded state of grouped items)
      • Sort Expressions
      • Style Properties (But not if applied to a single cell or row in ItemDataBound event)
      • Column Order and other column properties
      • All settings concerning hierarchy structure (but not the expanded state of the items)
  • Optimized Column Editors on Grid
    • Used Shared Data Picker for Date columns in your grid
      • This requires a hidden data picker on page, and template column with textbox that uses js to talk to the datepicker with client-api (See Example Here)
    • Use Template column for comboxes and use Load-On-Demand
  • Ajaxify the Grid
    • Compresses Ajax calls which IIS misses, use RadCompression to drop traffic size
    • Use StyleManager and ScriptManager to bundle all css and scripts into one call each to server
  • More Tips Here
  • Other Ways to Optimize
    • Client-side Binding
    • Custom Paging
    • Virtual Scrolling
    • Caching Data server-side
    • Hierarchy Load modes
    • Group load modes
    • Filtering
    • .NET 3.5 + Linq
    • Upgrade from IE6


Other Controls

  • Other Controls
    • Use Shared Data Picker
    • Use RadInputManager if you want Validated or Stylized instead of using the the RadNumeric or RadTextbox controls
    • Use Load-On-Demand RadComboboxes
    • On RadMultiPage set RenderSelectedPageOnly = True
    • Hide Grid's with Visible="False" not with surrounding Div's set to display none.
      • Hiding the Grid itself, it doesn't render or get bound, grid will get data when visible is set to true again.
  • Add App_Browsers folder with a file that has.. (This one is HUGE, dropped my page significantly)
    • Create a file and add
    • <browsers>
          <browser refID="Default">
                  <!--<adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" />-->
                  <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />

EventID 4625 on Windows 2008 IIS7 Windows Authentication Error

I was having wierd authentication issues on a Windows 2008 server with IIS7. I was trying to use Windows Authentication.  Worked fine from a remote location but failed when local on the server.

An account failed to log on.

    Security ID:        NULL SID
    Account Name:        -
    Account Domain:        -
    Logon ID:        0x0

Logon Type:            3

Account For Which Logon Failed:
    Security ID:        NULL SID
    Account Name:        xxxxxx
    Account Domain:        xxxxxx

Failure Information:
    Failure Reason:        An Error occured during Logon.
    Status:            0xc000006d
    Sub Status:        0x0

Process Information:
    Caller Process ID:    0x0
    Caller Process Name:    -

Network Information:
    Workstation Name:    xxxx-xxxxxx
    Source Network Address:    ###.###.###.###
    Source Port:        49597

Detailed Authentication Information:
    Logon Process:       
    Authentication Package:    NTLM
    Transited Services:    -
    Package Name (NTLM only):    -
    Key Length:        0

This event is generated when a logon request fails. It is generated on the computer where access was attempted.

The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.

The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).

The Process Information fields indicate which account and process on the system requested the logon.

The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.

The authentication information fields provide detailed information about this specific logon request.
    - Transited services indicate which intermediate services have participated in this logon request.
    - Package name indicates which sub-protocol was used among the NTLM protocols.
    - Key length indicates the length of the generated session key. This will be 0 if no session key was requested

I found the solution on the MS Support site, Q89681.  Which suggested to turn off the LoopbackCheck.

To set the DisableLoopbackCheck registry key yourself, follow these steps:

  1. Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:

    281308 Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name

  2. Click Start, click Run, type regedit, and then click OK.
  3. In Registry Editor, locate and then click the following registry key:


  4. Right-click Lsa, point to New, and then click DWORD Value.
  5. Type DisableLoopbackCheck, and then press ENTER.
  6. Right-click DisableLoopbackCheck, and then click Modify.
  7. In the Value data box, type 1, and then click OK.
  8. Quit Registry Editor, and then restart your computer.

Texting In Public

If you're in a situation where you'd excuse yourself to go to the bathroom, you should also excuse yourself before reaching for your phone.  Otherwise, go ahead without asking.  Either way, don't play with your phone longer then you'd stay in the bathroom. - Farhad Manjoo (www.Tampabay.com)