JavaScript Fun!

I was recently working with JavaScript and ran into some weird things I hadn’t ran into before.  While I’m sure the JavaScript masters of the world already know all about this stuff, hopefully this post can keep others from pulling out too much hair.  The first one deals with scoping: If you don’t explicitly var…

1

Custom WebPart Catalog

Trying to catch back up on my blogging, I have a list of topics to post on, just haven’t had time to get to them.  I wrote this article over a month ago…figured I would link it up from here. The default web part catalogs that are shipped with ASP.Net require you to configure the list…

0

System.InvalidOperationException: Mutex could not be created.

We’ve seen a few of these issues come through lately andwanted to get something posted so people can find it. If you created a custom account to run the process that ASP.NET is running in, you may encounter the following exception: System.InvalidOperationException: Mutex could not be created.Stack Trace: [InvalidOperationException: Mutex could not be created.]   System.Web.Compilation.CompilationMutex..ctor(String name,…

11

Vista + IIS 7 + Local IIS web site = error?

Finally got around to getting a clean install of Vista Beta 2 on my laptop and of course the first thing I install is Visual Studio 2005 and IIS 7 to see how the Local IIS option is going to play with the newly revamped IIS.  Well, if you choose the default options, this is…

8

ASP.NET tab forces restart of W3SVC

If you change the version on the ASP.NET tab that comes with the 2.0 Framework, the entire W3SVC process restarts.  If you make this type of change during a maintenance window, the impact may not be too bad, but if you have multiple application pools in IIS and need to make this type of change…

5

Session loss after migrating to ASP.NET 2.0

The HttpOnly attribute has been added to the Session cookie generated by ASP.NET 2.0.  This value is hardcoded and cannot be changed via a setting in the application.  While this is documented as a breaking change in the breaking changes document (linked below), it’s not clear the types of symptoms you will see in your…

2

Another SSL Termination/Acceleration gotcha in 2.0

In 1.1, we used the requireSSL attribute to ensure that the FormsAuthentication cookie has the secure attribute set.  In 2.0, if you have requireSSL set, we’ll remove the cookie from the incoming request if the web server receives the cookie over a non-secure connection. Client –> SSL –> Device –> Http –> Server Here’s the…

0

Nonsecure items message using Menu control over SSL

If you’re using the new menu control that ships with ASP.NET 2.0 and SSL Termination/Acceleration, you will run into this issue.   The behavior the end users will see is a warning in the browser stating something similar to: This page contains both secure and nonsecure items. Do you want to display the nonsecure items? The…

7

Debug javascript generated by webresource.axd

Ran across this the other day and thought someone else may find it useful.  Javascript for the ASP.Net 2.0 controls is typically generated by a request to webresource.axd.  For example when you add a menu control, you see the following in the page: <script src=”http://blogs.msdn.com/myapp/WebResource.axd?d=oTrMXXyr9lkT4MbMovPbCw2&amp;t=632681794331014707″ mce_src=”http://blogs.msdn.com/myapp/WebResource.axd?d=oTrMXXyr9lkT4MbMovPbCw2&amp;t=632681794331014707″ type=”text/javascript”></script> If you browse the above URL, you get…

4

Properties from Base Page Class missing in VS2005

There was a design change to the web sites in Visual Studio 2005 in which properties for custom base page classes are not parsed at design time. The result of this change is that the properties are not displayed in the Properties pane and you cannot debug any design time based code in your base…

1