Gorgo.Live.ToString()

Mariusz, Gorzoch tech Blog

Error HRESULT E_FAIL has been returned from a call to a COM component

leave a comment »

Recently I’ve develop MVC app to expose our TFS to our external customers thru really simplify interface (=Team web access is great, but let’s honest for no IT user it is to far complicated). After testing period on my box and ensuring that all security setup is ok (=we don’t want to show to our customers projects with do not concern them) I’ve deployed that app to one of our DMZ servers. Initially I’ve used one of standard TFS account to host it (the account used to host TFS web services). At that point everything was working fine, but of course that was temporary solution as on the end I preferred to use dedicated account. Unfortunately as soon I get such a account and grant proper access I’ve started to get error as below:

Error HRESULT E_FAIL has been returned from a call to a COM component.

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.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
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.

Resolution:

Just take your account and log with it on the server. That as I found is needed in order to create some temporary folder required by TFS API. Once I’ve did that and restarted IIS app pool hosting my app everything started to work correctly.

Advertisements

Written by Mariusz Gorzoch

3 March 2014 at 09:00

Posted in TFS

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: