View Edwin Vriethoff's profile on LinkedIn

This product requires ASP.NET v2.0 to be set to ‘Allow’ in the list of Internet Information Services (IIS) Web Server Extensions

January 29, 2008   11:38


This product requires ASP.NET v2.0I’m currently performing a migration process and during the Moss installation the following error message is presented:

“This product requires ASP.NET v2.0 to be set to ‘Allow’ in the list of Internet Information Services (IIS) Web Server Extensions. If it is not available in the list, re-install ASP.NET v2.0.”

But on my machine Visual Studio 2005 and .NET2 are installed, so that’s a bit strange. Checking out the IIS extensions panel is indeed not showing the v2.0 version.

To solve the issue open your command prompt en navigate to:
%drive%\Windows\Microsoft.NET\Framework\v2.0.nnnnn
where nnnnn is the least significant version number of ASP.NET 2.0.

Now run the following command at the command prompt:
“aspnet_regiis.exe -iru -enable”
and the issue should be fixed.

Source: Office online - Windows SharePoint Services 2.0 IT Documentation

Tags: , , , , , .





Remember hidden original values in a gridview

July 4, 2007   9:07


Set the DataKeyNames property of the gridviewMost of the time I use optimistic concurrency (with a check on all fields) to update a database row. While using a gridview to update rows in a table, problems arise when you don’t show or use all database fields of that table in your grid.
Running an automatic update command with optimistic concurrency is bound to fail because the grid cannot supply all original values.

To solve this issue you have to set and extra property and you have to supply some code to the Rowupdating event of the gridview. The property you have to set with the field names that you are not using is the DataKeyNames property of the gridview. For example:

DataKeyNames=”UniqueId,VersionId”

Now you can add the missing information to the OldValues and NewValues collection in the RowUpdating event.

Protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
 IDictionaryEnumerator restoreOldValues = e.Keys.GetEnumerator();
 while (restoreOldValues.MoveNext())
 {
  e.OldValues.Add(restoreOldValues.Key.ToString(),   restoreOldValues.Value.ToString());
  e.NewValues.Add(restoreOldValues.Key.ToString(),   restoreOldValues.Value.ToString());
 }
}

The gridview now has all the required information to run a successful update.

Tags: , , , , , .









The content expressed in this blog are those of Edwin Vriethoff and do not represent his employer's view in anyway. The contents of this blog has been carefully put together, but Edwin Vriethoff is not responsible in any way for any direct or indirect harm caused by individuals or organizations using the content of this blog in any way.