Contents tagged with Tips and Tricks
-
Hosting ASP.NET for .NET Framework 3.5 Beta 2 in Medium or Partial Trust
If you're hosting the .NET Framework 3.5 (Beta 2) or planning on it, keep in mind there is some additional work required for the Beta 2 bits. The attached document describes two issues (and their corresponding workarounds) when hosting ASP.NET websites using .NET Framework 3.5 Beta 2 under Medium or partial trust. The issues and workarounds apply only to .NET Framework 3.5 Beta 2, and will be addressed in the final version of the product.
-
ASP.NET applications running out of memory?
One thing you can do to help save memory usage is to enable the WorkstationGC. The GC, or garbage collector, manages the memory for appDomains.
-
Using WMI to change the local administrator password for all servers in an OU or Container
Just sharing a nice little script to query all the computers in an OU and change the local Administrator password for each one. One thing to note, if your computers happen to be in the default Computers container, you need to change the LDAP query from "OU=Finance" to "CN=Computers" (CN indicates container).
-
Getting 64-bit or 32-bit applications working on IIS 6.0 x64
When running on x64 hardware, you have two options. First, to run in native 64-bit mode. This means all the applications running need to be 64-bit. The second is to run worker processes in 32-bit mode, which means all applications need to be 32-bit. This gives you good compatibility and performance is really good too.
-
SharePoint (WSS v3) Guidance for Shared Hosting
SharePoint v3 offers a lot of great features and functionality for hosters and this whitepaper talks about how to use these features to create a shared hosting solution. The whitepaper is built upon lessons learned from a dozen or so hosting partners conducted over the past several months. The guide includes things like ways to deploy SharePoint, how to use forms authentication with SharePoint, how to provision SharePoint sites, migration from WSS v2 to v3 and even a section about deployment issues in hosting scenarios.
-
Hosting IIS with UNC content - Network BIOS commands and other errors
IIS and UNC - everyone wants to know more. The ASP.NET 2.0 Deployment Guide already talks about configuring ASP.NET over UNC. So now, let's explore SMB work contexts and how they are a huge factor for IIS/UNC configurations.
-
Programmatically manage R2 quotas using cmd-line tools
Most folks are aware that Windows Server 2003 R2 offers directory-based quotas, a great new feature that is better for some hosters than the volume/user based quotas in Windows 2003 Server RTM and SP1.
-
SQL Server Management Studio - Limiting views on shared servers
Shared servers usually have many databases belonging to different customers, and MS SQL Server Management Studio (SSMS) will display all those databases when used by a valid login to connect to SQL Server 2005. If you seek to change that default behavior, you can do so with a SQL Server 2005 configuration change.
-
SQL Server Management Studio - Limiting views on shared servers
Shared servers usually have many databases belonging to different customers, and MS SQL Server Management Studio (SSMS) will display all those databases when used by a valid login to connect to SQL Server 2005. If you seek to change that default behavior, you can do so with a SQL Server 2005 configuration change.
-
Enabling WebPermission in Medium Trust
The goal of Code Access Security (CAS) is to reduce the attack surface by enabling applications to run with minimum required permissions to function. In ASP.NET 1.1 there were some limitations in enabling oleDB access in a partial trust setting based on medium trust, this limitation has been resolved in ASP.NET 2.0. For more general information about using CAS with ASP.net 2.0 see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/THCMCh19.asp.