.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Error HRESULT E_Fail

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :ASP.Net


I created a simple page calling the DateTime.Now.ToString on a page ran the page it came up eventually but then when I went back to my .net page there is an error:

Error Creating Control - Label1

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

If I try to run the page again I get there is no problem but the error on the default.aspx page in design view still exists.

View Complete Post

More Related Resource Links

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

hello every one i see this error some times when i designed the page and close the program and came back.but this error do not stop debugging the page and hide all controls is my page and i cant use smart tag and see the controls.what should i do?

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


I have two small programs that I wrote in C# that are basically just executing calls to cuteFTP Pro 8 (a scriptable FTP client). 

Program #1: needs to connect to a remote server using standard FTP protocol.  This program works fine whether I run it or schedule it through the Windows Task Scheduler (Server 2003 Standard). 

Program #2:  needs to connect to a remote server using FTPS_IMPLICIT or FTPS, I've tried using either of these two protocols and the same result is produced.

If I run Program #2 on my user account while logged in to the server it works correctly, however if I schedule it through Windows Task Scheduler (in exactly the same fashion as Program #1) I get the COM error that I put in the thread title.  A stack trace shows that it happens


at ftpteLib.TEConnectionClass.Connect()

which is one of the cuteFTP methods.  For the sake of isolating the problem I removed most of the functional code in Program#1 and Program #2 so taht they are identical other than the fact that one connects to a remote server needing FTP and the other to one needing FTPS or FTPS_IMPLICIT.

Is there anything I can do to correct this?

Browsing a cube: Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft V


When I try to reconnect using the cube browser (in both Visual Studio and SQL Management Studio) I get the following error:

Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)
Program Location:
   at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.TranslatePivotTable()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdatePivotTable(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdateAll(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.ReconnectCanFail()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.SupportFunctionWhichCanFail(FunctionWhichCanFail function)

And when I try to drag stuff from the measure group (the left panel) I get:

Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)
Program Location:
   at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets()
   at Microsoft.AnalysisServices.Controls.PivotTableHash.get_FieldSetsEnumerator()
   at Microsoft.AnalysisServices.Controls.PivotTableHash.GetFieldSet(String uniqueName)
   at Microsoft.AnalysisServices.Controls.PivotTableBoundMetadataBrowser.GetPiv

Generation of designer file failed: Error HRESULT E_FAIL


started getting error

Warning 1 Generation of designer file failed: Error HRESULT E_FAIL has been returned from a call to a COM component. 

i am not even able to see the designer file 

Getting Error " Error occurred in deployment step 'Add Solution': Exception from HRESULT: 0x810702

i'm getting the following error when deploying my sharepoint project i've created 3 site templates by adding according to this article http://www.sharepointbits.com/blog/sharepoint-2010-custom-site-templates.html but when i deployed my project i got the following Error occurred in deployment step 'Add Solution': Exception from HRESULT: 0x8107026E

Error: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_


Hi guys,

I am new to SSIS and I am trying to run a script task, I have set up variables for username, password, etc in my script, but when I execute the task, it fails with the error System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

Can anyone suggest anyway to remedy this issue.



Installation of .NET Framework 2.0 SDK fails with error #1935 (HRESULT 0x800700C1)


I tried to install the .NET Framework 2.0 SDK on Windows 7 Pro x64 since I need some of those tools to localize files. Unfortunately, the installation soon fails with the following error

Error 1935. An error occurred during the installation of assembly 'Microsoft.VisualStudio.Zip,Version="",Culture="neutral",ProcessorArchitecture="MSIL",FileVersion="8.0.50727.42",PublicKeyToken="b03f5f7f11d50a3a"'. Please refer to Help and Support for more information. HRESULT: 0x800700C1.

Sometimes, this error appears before the one mentioned above (but not always):

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908.

 I have no idea why this happens and I could not find any answer to this problem on the web.



Delete document library throws "Exception from HRESULT: 0x80040E14" error


I am running WSS 3.0 SP2 running the Feb 2010 cumulative update. I have a particular document library I am attempting to delete. When I click on delete in the GUI, I get a page that says "Exception from HRESULT: 0x80040E14". Everything I've found so far on the web says this is caused by a SQL server that is out of space. That is not the problem in my case.

Additionally, I have looked at the logs in Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS and found the root cause. When I try to delete this document library, two errors are added to the log. They are

  • 06/16/2010 09:45:55.72     w3wp.exe (0x1798)                           0x0D44    Windows SharePoint Services       Database                          6f8g    Unexpected    Unexpected query execution failure, error code 8144. Additional error information from SQL Server is included below. "Procedure or function proc_SecGetI

List Item Update Exception from HRESULT: 0x80040E2F Unexpected query execution failure, error code 3


A thread somewhat simliar to this has been posted before as well, but i just wanted to detail out the issue and circumstances

We have a list with 53 columns and 2600 items(and growing. I know its rubbish, but thats the way it is at the moment). The list was created using SharePoint GUI  on a test server, saved as a template with data, and was then imported to the production environment. I can post the list columns and type if it helps.

Every one in a while, on updating an item, SharePoint throws up the very not so helpful error page with "Exception from HRESULT: 0x80040E2F".

We looked into the logs and found that for each suc error, there was a Database level error logged as well.

The error starts with Unexpected query execution failure, error code 3621. Additional error information from SQL Server is included below. "The statement has been terminated." Query text (if available): "BEGIN TRAN;DECLARE... and runs for many lines so i wont post the entire blurb here.

Each time, the item update is successful, despite this error. The list also has an Item Updated event handler attached to it. Every time the update error occurs, the event handler does not seem to be firing.

Anybody can shed light on what is happening. We have tried exporting the list template to another site and everything seemed to work

Getting "Exception from HRESULT: 0x80131904" error message



I intermitently received the "Exception from HRESULT: 0x80131904" error message on my Sharepoint site.  For example, it pops up when I try to add a folder in a document library.

What could be my problem?



No error message available, result code: E_FAIL(0x80004005).




I am importing data from Excel to SQL. It works perfectly Locally.... but when its been uploaded to the server it gives this error.

Another thing, when I use less data(in excel) and import, then it works. But when I import LARGE amounts of data, it gives the above error.


Any assistance would be greatly appreciated :)



SubscribeToEvents Server Method Error Hresult: 0x80070005 Access Denied


Hi there;

I am developping a smo app that uses the Server.Events.SubscribeToEvents Method and actually a have a

Access Denied Error if I use it local and I have a Hresult: 0x80070005 Access Denied if I use it remotly.

Are there somebody who can help me with these items????


PD. I hope that you forgive my english.



IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


Handling 404 page not found with Error page



      How do i handle 404 page not found?

Inserting personal error message in ValidationSummary



I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance

Sys.Net.WebServiceFailedException: The server method '' failed with the following error:



Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.

        public static string aaa(int i)
            return i.ToString();

        public static string aaa1(int i)
            return i.ToString();



        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <span id="displayspan"></span>
        <br />
        <input type="button" value=

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend