This is a migrated thread and some comments may be shown as answers.

DataPortal.Fetch failed

3 Answers 735 Views
TFS Integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
M
Top achievements
Rank 1
M asked on 11 Oct 2010, 08:49 PM
I have just installed TFS Work Item Manager Beta version 3 from 6th of April on my Windows7. However when starting the TFS Work Item Manager an exception occured.

The error message is:
DataPortal.Fetch failed (This file is currently not available for use on this computer.)

Any suggestions on what is missing and where I can get it?

3 Answers, 1 is accepted

Sort by
0
Joel
Telerik team
answered on 14 Oct 2010, 09:11 AM
Hello,

We have not seen this error before and unfortunately that error message on its own doesn't give us enough information to diagnose the problem.  Can you post the log file, either in whole or in part, to the forum?

The log file can be found here: {My Documents}\Work Item Manager 2010\WIM-log.txt

I do have a couple questions though.  Is your "My Documents" folder on a network share?  If so, are you connected to the network when this problem occurs or is the network somehow unreachable?  My gut tells me that for some reason the UserSettings.xml file that WIM looks is not currently accessible.  Does the app continue to function after receiving this error?

Thanks,
Joel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
M
Top achievements
Rank 1
answered on 20 Dec 2010, 02:43 PM
Hi,

Here is an extract from the WIM-log.

First connect to a team project where Telerik manages to find the work item queries. Then I connect to the team project in which I work where I get the error.

2010-12-20 10:10:53,353 [5068] [1] INFO  IRC.Gear.WorkItemManager.Data.SourceControlManager - Source Control Get Result (1264 - CFDs and Listed products): No Action Needed=True, Resolvable Warnings=False, Conflicts=0, Failures=0, Operations=0, Warnings=0.  
2010-12-20 10:10:54,022 [5068] [1] INFO  IRC.Gear.WorkItemManager.Data.Planning.IterationPlanningSession - Could not find iteration planning session file for 1264 - CFDs and Listed products. (\\mid.dom\dfs1\home\mep\My Documents\Work Item Manager 2010\tfs\DefaultCollection\1264 - CFDs and Listed products\IterationPlanningSession.xml).  
2010-12-20 10:11:11,464 [5068] [1] INFO  IRC.Gear.WorkItemManager.Data.SourceControlManager - Source Control Get Result (TP): No Action Needed=False, Resolvable Warnings=False, Conflicts=0, Failures=0, Operations=1, Warnings=0.  
2010-12-20 10:11:11,496 [5068] [1] INFO  IRC.Gear.WorkItemManager.Common.TfsConnection - TFS Connection error.  Csla.DataPortalException: DataPortal.Fetch failed (This file is currently not available for use on this computer.
) ---> Csla.Reflection.CallMethodException: DataPortal_Fetch method call failed ---> System.IO.IOException: This file is currently not available for use on this computer.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
   at IRC.Gear.WorkItemManager.Data.Metadata.ProjectMetadata.DoFetch(String filePath)
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   --- End of inner exception stack trace ---
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
   at IRC.Gear.WorkItemManager.Data.Metadata.ProjectMetadata.DoFetch(String filePath)
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Server.SimpleDataPortal.Fetch(Type objectType, Object criteria, DataPortalContext context)
   --- End of inner exception stack trace ---
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
   at IRC.Gear.WorkItemManager.Data.Metadata.ProjectMetadata.DoFetch(String filePath)
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Server.SimpleDataPortal.Fetch(Type objectType, Object criteria, DataPortalContext context)
   at Csla.DataPortal.Fetch(Type objectType, Object criteria)
   at Csla.DataPortal.Fetch[T](Object criteria)
   at IRC.Gear.WorkItemManager.Data.Metadata.ProjectMetadata.GetProjectMetadataForCurrentProject()
   at IRC.Gear.WorkItemManager.Infrastructure.ApplicationData.Refresh()
   at IRC.Gear.WorkItemManager.Wpf.MainWindow.OnProjectChanged()
   at IRC.Gear.WorkItemManager.Common.TfsConnection.OnProjectChanged(Project oldProject, Project newProject)
   at IRC.Gear.WorkItemManager.Common.TfsConnection.ConnectToTeamFoundationServer(String serverAddress, String projectName)

What file is it looking for? 

0
Joel
Telerik team
answered on 04 Jan 2011, 03:51 PM
Hello,

From the stack trace provided it looks like your 'My Documents' folder is stored on a network share.  When this is the case, you cannot store shared settings for WIM on the TFS server.  To change this, go to Application Button > Options > Project Settings and make sure that the option for "Use Server Settings" is unchecked for all projects.

I have logged this as a bug and in the future we will try to handle this situation better by allowing you to choose a local folder for storing your WIM settings.  For the time being though you will have to work around the issue by not using shared settings.

Kind regards,
Joel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TFS Integration
Asked by
M
Top achievements
Rank 1
Answers by
Joel
Telerik team
M
Top achievements
Rank 1
Share this question
or