Tuesday, June 12, 2012

DeploymentItem things not Deploying for Unit Test

Unit Test deployment can be enabled/disabled with a Solution Item file. Find the details on MSDN here: http://msdn.microsoft.com/en-US/library/ms182475(v=vs.90).aspx#EnableDisableDeploy.

Wednesday, September 7, 2011

The following items could not be matched up to hosts due to name and/or trust level mismatches

I'm working on fixing this error. I know it is a simple fix but I keep running into it and forgetting exactly what the fix is so I'm going to post it here.

TITLE: Import Bindings
------------------------------

Failed to update binding information. (mscorlib)

------------------------------
ADDITIONAL INFORMATION:

Cannot update receive port "WcfReceivePort_SAPBinding_Idoc_x002F_AFS_x002F_DELVRY04V3R701_Custom". (Microsoft.BizTalk.Deployment)

------------------------------

Cannot update receive location "WcfReceiveLocation_SAPBinding_Idoc_x002F_AFS_x002F_DELVRY04V3R701_Custom". (Microsoft.BizTalk.Deployment)

------------------------------

The following items could not be matched up to hosts due to name and/or trust level mismatches:
Item: 'WcfReceiveLocation_SAPBinding_Idoc_x002F_AFS_x002F_DELVRY04V3R701_Custom' Host: 'CSC.ESB.IDocsToFile' Trust level: 'Untrusted'
You must do one of the following:
1) Create hosts with these names and trust levels and try again
2) Re-export the MSI without the binding files and have a post import script apply a suitable binding file. (Microsoft.BizTalk.Deployment)

------------------------------
BUTTONS:

OK
------------------------------

Tuesday, October 5, 2010

Couple Notes on Configuring IIS 6.0

Find the file MetaBase.xml on your web server. In my case it is located at: C:\WINDOWS\system32\inetsrv\MetaBase.xml.

DisallowOverlappingRotation


When DisallowOverlappingRotation is set to False the new worker process will be created while the existing one continues. Then once the new one is ready the old will be shut down. Setting it this way has the least impact on your end users.

When DisallowOverlappingRotation is set to True the old worker process is shut down before the new one is created. This will cause your site to be down longer while the worker process is being recycled. Setting it this way may be required if an application in the application pool doesn't tolerate multi-instancing.

Logging Application Pool Recycling Events in IIS 6.0


You can change which Application Pool Recycling Events get logged by modifying the LogEventOnRecycle attribute in the IIsApplicationPools node. The available flags are:
  • AppPoolRecycleTime

  • AppPoolRecycleRequests

  • AppPoolRecycleSchedule

  • AppPoolRecycleMemory

  • AppPoolRecycleIsapiUnhealthy

  • AppPoolRecycleOnDemand

  • AppPoolRecycleConfigChange

  • AppPoolRecyclePrivateMemory
Include a pipe delimited list of these flags in the key value pair to enable logging of these events. In this example I'm logging each available events: LogEventOnRecycle

Resources:

Wednesday, January 13, 2010

Sitecore Log - WARN Counter category 'Sitecore.System' does not exist on this server. Using temporary internal counter for...


I'm working with a Sitecore 6.1 implementation on a Windows Server 2003 R2 box. I'm up against an error that necessitates I turn to the Sitecore logs. My Sitecore logs are riddled with warnings. This post will provide you with information on how to resolve these "WARN" log items. In order to access many of the links from this post you will need to have "Sitecore Development Network: Developer Section" security permissions to http://sdn.sitecore.net.

The Warning Messages:


The warning messages read "WARN Counter category 'Sitecore.[Caching|Data|Jobs|Presentation|Security|Sytem]' does not exist on this server. Using temporary internal counter for..." followed by one of many class names.

A few of the classes include:
  • Reflection.MethodsInvoked
  • Logging.AuditsLogged
  • Threading.ThreadDataModified
  • Pipelines.PipelinesAborted

The Fix:

  1. Access the FAQ titled "Sitecore log filling up with warnings."
  2. Download the SitecoreCounters.zip.
  3. Unzip SitecoreCounters.zip on your Sitecore server.
  4. Execute SitecoreCounters.exe. A console window will open and it will scroll through information about which counters it is creating. This took about a minute to run in my environment.
  5. You can hit any key in the console window to close it.
That's it. You should stop getting the "Counter category does not exist on this server" warnings.

My Journey


I am new to Sitecore development. I became a Certified Sitecore Web Site .NET Developer last month. I have appreciated the amount of documentation that Sitecore has around their offerings but find referencing it to be difficult.

In trying to resolve these warnings in my logs I found a Sitecore CMS 6 Installation Troubleshooting pdf. Section 3.10 is titled "Counter Category Does Not Exist On This Server." However it is significantly lacking details. In the section you'll only find:

You may see any of the following messages in the Sitecore log if Sitecore is unable to update performance counters in the Windows registry.
Counter category does not exist on this server
Using temporary internal counter

Use the tool on the Sitecore Developer Network provides a tool to register the performance counters.14
The footnote references Sitecore log filling up with warnings though. Make sure you scroll down past all the white space and read the footnote.

On Sitecore log filling up with warnings it reads that the FAQ is "Valid for Sitecore 5.3, 5.2" and makes no mention of 6.x. It is working for my Sitecore 6.1 implementation.

Monday, February 23, 2009

Tuesday, February 3, 2009

Undo Pending Changes in Visual Studio Team System

If something is checked out by someone else you can undo their changes and release the lock with a Tf Command Line Utility "UNDO" Command. You must have admin rights on the Team Foundation Server box.

Syntax: tf undo [/workspace:workspacename[;workspaceowner]][/server:servername] [/recursive] itemspec [/noprompt]

Resource:

Monday, February 2, 2009

ASP .NET AJAX 3.5 and the AJAX Control Toolkit 3.5

Unlike previous version of .NET, .NET 3.5 has AJAX built into it. With earlier versions of .NET you could download ASP .NET AJAX 1.0 as a seperate download. ASP .NET AJAX 2.0 is included with the .NET 3.5 download.

The AJAX Control Toolkit remains a seperate download. The AJAX Control Toolkit team has rebuilt the Control Toolkit to target ASP .NET AJAX 2.0. It is available for download here.

For information on how to add the AJAX Control Toolkit 3.5 to your toolbar read this post.

Resources: