Thursday, December 20, 2007

Unable to find script library '/aspnet_client/system_web/1_1_4322/web UI Validation.js'

Error encountered: Unable to find script library '/aspnet_client/system_web/1_1_4322/web UI Validation.js' Try placing this file manually or reinstall by
running 'aspnet_regiis.c'.

I created a new website in IIS, not a new virtual directory under the default website. It seems that non-default websites could not access the aspnet_client in wwwroot. Therefore just copy the aspnet_client folder from C:\inetpub\wwwroot then paste it inside the folder of the new website. Voila!

Thursday, October 11, 2007

Both DataSource and DataSourceID are defined

I was displaying data to a GridView via DataSet when the webpage returned this error:

Both DataSource and DataSourceID are defined on 'gvConfig'. Remove one definition.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Both DataSource and DataSourceID are defined on 'gvConfig'. Remove one definition.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[InvalidOperationException: Both DataSource and DataSourceID are defined on 'gvConfig'. Remove one definition.]
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +367
System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +35
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3037


However upon debugging the problem, I got this exception message:
The IListSource does not contain any data sources.

True to the exception, the DataSet I was getting from the WebService had no tables defined, thus no data, thus the error.

Still I don't understand why I encountered such error on the webpage despite it not being relevant to the true exception. (Or perhaps I'm just too daft.)

Monday, September 3, 2007

Where is the MOSS Upgrade Pre-scan Tool?

Upgrading from SharePoint Portal Server 2003 to Microsoft Office SharePoint Server (MOSS) 2007 entails a lot of pre-upgrade, upgrade, and post-upgrade steps.

Part of the pre-upgrade tasks is to run the pre-scan tool (prescan.exe). You can get this tool via:

  1. Microsoft Downloads;
  2. Or from the file system of the server where you have installed MOSS (%PROGRAMFILES% \Common Files\Microsoft Shared\web server extensions\12\BIN). You can run the tool directly from this file path if you have not run the SharePoint Products and Technologies Configuration wizard yet; otherwise, just copy and paste the tool to another location and run it there.

Notes:

  1. You must be a member of the Administrators group on the local computer to run this tool.
  2. You will also need the preupgradescanconfig.xml file, which can be located from the same sources mentioned above.

Related links to understand the pre-scan tool better:

Your Ad Here