Tommie 的个人资料: : Tommie照片日志列表更多 工具 帮助

日志


It didn't work as well as I thought...

Now I've tried to install the adapter and make it change the schema. Installing the adapter is not a problem. But making it update the schema is troublesome. You can see my source code in the previous post. It is expected that the Version Control Adapter will throw an exception when updating the warehouse. However, it is not expected that my own exceptions will be thrown. Here's what is happening in the event viewer when trying Run is performed from the warehouse web service:

Event Type:    Error
Event Source:    TFS Warehouse
Event Category:    None
Event ID:    3000
Date:        12/6/2007
Time:        7:21:07 AM
User:        N/A
Computer:    ORCASBETA2_TFSV
Description:
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 12/6/2007 3:21:07 PM
Machine: ORCASBETA2_TFSV
Application Domain: /LM/W3SVC/1747463155/Root/Warehouse-4-128414278681842144
Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
  Process Name: w3wp
  Process Id: 3044
  Thread Id: 3116
  Account name: ORCASBETA2_TFSV\TFSSERVICE

Detailed Message: TF51209: A run-time error System.Exception: Transaction failed. Could not make schema changes!
   at CodeMetricsAdapter.CMAdapter.MakeSchemaChanges()
   at Microsoft.TeamFoundation.Warehouse.AdapterWrapper.MakeSchemaChanges() occurred on adapter CodeMetricsAdapter.CMAdapter.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

As expected, there was nothing to be found at the URL provided (as it apparently is with most documentation on TFS).

Here is the place where it fails in the MakeSchemaChanges() method:

try { // This will add the new fact and new dimension to the warehouse. // If user wants to add new fields or measures to existing dimensions or facts in // warehouse, then use the IDataStore.Add* methods. IDataStore.Add(config) will not // work in that case. // Also note that the Add method only appends the new facts and dimensions from the // modified config. The current existing facts and dimensions will not get added twice. m_dataStore.Add(config); m_dataStore.CommitTransaction(); } catch { m_dataStore.RollbackTransaction(); throw new Exception("Transaction failed. Could not make schema changes!"); }

It is, I suppose, the Add method in the datastore object that fails. I do wonder why though.

I feel completely stuck.

评论 (1)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

10 月 20 日

引用通告

此日志的引用通告 URL 是:
http://tomfury.spaces.live.com/blog/cns!F58BF7D0B46F52B9!301.trak
引用此项的网络日志