.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

Fatal error: Deployment error (4008) C# console

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :WPF


I have a C# Console application issue. I get an error "Fatal error: Deployment error <4008>" every time I run. However, this error does not cause the program to crash or trigger a try catch. It is happening when my main method calls the first submethod. Does anyone know where I can find more details on this. I tried a google search and can't seem to find any reference to it in C#, seems to happen in other languages though.

Thanks for the help

View Complete Post

More Related Resource Links

Event ID 1011 - DefaultAppPool World Wid Web Pub. Serv. fatal communication error

We have a Windows 2003 server running IIS6 1.1 Framework. We have also installed a DNS and Active Directory in the same machine.

We're randomly getting the error you can see below. Sometimes it causes the recycling of process w3wp.exe (which on my understanding represents the application pool worker processd) and other times results on this process hanging and not responding to any request. To do iisrest temporarly solves the problem.

We were pointed to a possible permissions problem between the user we were runnig the DefaultAppPool with and registry entries used by the iis. We noticed the default predifined user we used, Network Service, wasn't found in the Active Directory, so we changed it by the default configurable user, IWAM_MACHINE_NAME, which is under the IIS_WPG Active Directory Grupo, which, in theory has the correct permissions to run the application pool.

Well, none of this worked and we are still getting this error.

This is driving us crazy and think the problem might have to do with having the Domain Controller/Active Directory and the IIS6 running on the same machine. We'll try now uninstalling this DC pointing to another one to see what happens.

Any help would be appreciated.

Thanks in advance,


Event Type: Warning

LINK : fatal error LNK1104: cannot open file 'libirc.lib'

I am trying to build my project for 64 bit windows on a 32 bit windows machine. I am getting a linking error of the kind 15>LINK : fatal error LNK1104: cannot open file 'libirc.lib' Can someone tell me the resolution for this problem?

STOP: c000021a (Fatal System Error)" Error!

Dear All, I am having the same more or less problem with the rest of the people here. When booting to windows xp I get a blue screen and a message like this STOP: c000021a (Fatal System error) The windows subsystem system process terminated unexpectedly with a status 0xc0000005 (0x7c9106c3 0x0053ec24) The system has been shut down. I tried using the safe mode and removing the last program Microsoft SQL Express 2005 server that I've installed and after which I was getting this message but without any success. The system immediately crashes and i get the same blue screen. People do you have any ideas of what i could do to fix this??? It's kind of urgent so I would appreciate any quick responses. thank you all again eveve

Sporadic .NET application crash with "Fatal Execution Engine Error"

I have a .NET application that runs for several hours.  It is a multi-threaded app that does some calculations and saves the results to the database.   On one machine in particular, it has been crashing recently with the following exception recorded in the Event Log: .NET Runtime version 2.0.50727.4206 - Fatal Execution Engine Error (6C9D7B6E) (80131506) Faulting application AnalyzerConsole.exe, version, time stamp 0x4c76d28b, faulting module mscorwks.dll, version 2.0.50727.4206, time stamp 0x4bf4c6a7, exception code 0xc0000005, fault offset 0x0011627d, process id 0x%9, application start time 0x%10. Sometimes it runs for hours without crashing, but usually it will crash eventually. I have captured a dump, and this is the call stack: > ntdll.dll!_DbgBreakPoint@0()   mscorwks.dll!WatsonLastChance()  + 0x133 bytes   mscorwks.dll!EEPolicy::LogFatalError()  + 0x23c bytes   mscorwks.dll!EEPolicy::HandleFatalError()  + 0x47 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase3()  + 0x10dae2 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase2()  + 0x20 bytes   mscorwks.dll!CLRVectoredExceptionHandler()  + 0xb7 bytes   mscorwks.dll!CPFH_RealFirstPassHandler()  + 0x8ac bytes   mscorwks.dll!_COMPlusFrameHandler()  + 0xb9 bytes   ntdll.d

deployment error on x64 when compiled as x64

I have a service application that I compile as x86, x64, and any CPU.  It installs correctly on x86 using either x86 or any cpu.  It installs correctly on x64 if I compile as x86 or any CPU but if I include the wrong DLL the any CPU version crashes so I have to be careful where the any CPU version is installed.  If I compile the x64 it gives me a BadimageForamtException during install. I would prefer to only have the two installs x64 and x86 which limits the odd errors when using the any CPU version but I need to resolve the BadimageForamtException first. I know the problem is more than likely one of the related DLL is 32 bit only my problem is finding it.  Is there a quick way of determining if a DLL is 32 or 64 bit?  It would be nice if this detail was displayed in the list of properties in VS when you click on the references. John J. Hughes www.functioninternational.com/

Error occurred in deployment step 'Retract Solution': Attempted to perform an unauthorized operati

Hi, Is there any reason why I got the error above in my dev machine? It works perfectly fine if I login using the service account. So permission do I need for a regular account? Thanks in advance.

Problem when deployind ContentType: Error occurred in deployment step 'Activate Features': Field t

Im getting this error when i try to Deploy my ContenType: Error occurred in deployment step 'Activate Features': Field type GUID is not installed properly. Go to the list settings page to delete this field Does someone know how to fix this error? The ContentType is defined as: <     Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!--Site columns--> <Field Name="Test" DisplayName="Customer Subject ID" ID="{38A9E5BA-62FF-4F3B-90E3-F9961FEABE20}" Type="Text" Required="FALSE" /> <!--Parent ContentType: Item (0x01) --> <ContentType ID="0x01004317ec735b25468583d7470aa17c36ae" Name="NextContentTypes - NextCustomerContentType" Group="Next Content     Types"Description="NextCustomerContentType" Inherits="TRUE" Version="0"> <FieldRefs> <!-- References to field difinitions --> <FieldRef ID="{38A9E5BA-62FF-4F3B-90E3-F9961FEABE20}" Name="Test"></FieldRef> </FieldRefs> </ContentType> </     Elements>

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

AppDomain unloading causes Fatal Execution Engine Error

After resolving my previous problem (by working around it, actually), I came to the point where I need to unload the AppDomain. After cleaning up all fibers that were created to be run in this AppDomain, my (C++/CLI) code runs AppDomain::Unload(_scriptDomain);, however, it terminates the process with a very, very bad error, according to the event logs: .NET Runtime version 2.0.50727.4927 - Fatal Execution Engine Error (7117851A) (80131506) The VS debugger crashes with a 'system error' in Debugger::HandleIPCEvent, which a web search shows as being no help. The (confusing) WinDbg stack trace is posted below: WARNING: HUGE STACK DUMPS FOLLOW (edit: removed due to falseness) [snip] I hope someone with more debugging experience than me can find out what's wrong with my program... I always get annoying issues when hacking on this! :(

Import Error: Could not process the file Documents/Application Deployment.mht as a Single File Web P

Hi there everyone, Version: Windows Sharepoint Services 3.0 with Cumulative Update June 29, 2010 applied. I am having issues importing an exported site into a different domain. I've overcome most of the issues and actually got most of the site to import, however, the import process get's stuck on import a Single File Web Page document from a document library. I believe the original cause of this error is http://support.microsoft.com/kb/980079 The issue I face now is, I already have a large number of .mht files in my document library which I do need to import into the test environment (or that I might need to restore in a DR scenario). Does anyone have any information on either: forcing the import commmand to "on error resume next" (ie. not stop processing when it encounters an error) fixing the already corrupt .mht files in the database easily The error text from the import command is: Error: Could not process the file Documents/Application Deployment.mht as a Single File Web Page document. at Microsoft.SharePoint.Library.SPRequest.CreateOrUpdateFileAndItem(String bstrUrl, String bstrWebRelativeUrl, Guid& docId, Object varDoc, Int32 docLength, Int32 exists, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Int32 iVersion, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String checkInComment, Int3

Fatal Error in Process

Not sure if this is the best place to ask, but here goes: I have a SQL Server Alert set up for Fatal error 20 on our production server.  If there is a fatal error of 20, I get emailed.  Ocassionally, this happens, and I get the following message: DESCRIPTION:   The client was unable to reuse a session with SPID 118, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.  Of course, the SPID is usually different... My problem is, I can't track down any other information about this error.  There's nothing else in the SQL logs, or the Windows application logs.  I would like to use profiler, but the error only happens every couple days, and I don't really want the overhead of running profiler all the time.  If I run a trace on our production server without using the profiler GUI, and store the output to a file on a different server, what would be the impact on our production server? Any help is much appreciated!Clint

Error while using ssis deployment manifest on target computer

Hi, I have just copied across my Deployment folder for my SSIS package to a target SQL Server box to deploy it there.  However, when I try to deploy it there by double clicking on the manifest file, I get the following error.  Can someone please help me out?  I have done this before but never had this issue. Cheers TITLE: Package Installation Wizard ------------------------------ Unexpected error occurred. ------------------------------ ADDITIONAL INFORMATION: Error while parsing deployment manifest: The 'DTSConfiguration' element is not declared. (DTSInstall) ------------------------------ The 'DTSConfiguration' element is not declared. (System.Xml) ------------------------------ BUTTONS: OK ------------------------------

WCF REST deployment Error: "Resource Does not exist"

I am trying to access http://localhost/TestServiceHost/TestService.svc and I am getting the following error: Error Description: 'Resource does not exist' This may be because an invalid URI or HTTP method was specified. Please see the service help page for constructing valid requests to the service. The funny thing is that http://localhost/TestServiceHost/TestService.svc/help is working fine. Not only that, all my endpoints are working fine. I am using IIS 7.5 (Win 2008 R2). Application developed using .NET 4.0.  Following is the code (extracted from my prototype) and configuration:   <ServiceContract()> Public Interface ITestSvc <OperationContract()> <Description("")> <WebInvoke(Bodystyle:=WebMessageBodyStyle.Bare, Method:="POST", UriTemplate:="GetCodes")> Function GetCodes(ByVal oReq As ReqGetCodes) As RespGetCodes End Interface Public Class TestSvc Implements ITestSvc Public Function GetCodes(ByVal oReq As ReqGetCodes) As RespGetCodes Implements ITestSvc.GetCodes Dim o As New RespGetCodes Dim lstGetCodes = New List(Of ClassGetCodes) From { New ClassGetCodes With {.App_Code = "a1", .SystemFlag = True}, New ClassGetCodes With {.App_Code = "a2", .SystemFlag = False}, New ClassGetCodes With {.App_Code = "a

Error occurred in deployment step 'Activate Features': Invalid field name.

Hi, I've a empty sharepoint project where i've added a content type that looks like this: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Field ID="{45067EC7-078C-46A1-A075-E422C000215E}" Name="Schedule" DisplayName="Schedule" Group="Custom Fields" Type="Choice" Required="TRUE"> <CHOICES> <CHOICE>Minute</CHOICE> <CHOICE>Hour</CHOICE> <CHOICE>Day</CHOICE> </CHOICES> <Default>Hour</Default> </Field> <Field ID="{938CAAA4-C1AD-4E39-93D8-9C463391E006}" Name="Interval" DisplayName="Interval" Group="Custom Fields" Type="Integer" Required="TRUE" /> <Field ID="{3AD33CEA-6382-4BEE-8BB2-1C0902F13472}" Name="LastRun" DisplayName="Last Run" Group="Custom Fields" Type="Text" MaxLength="255" Required="FALSE" ReadOnly="TRUE" ShowInDisplayForm="TRUE" /> <!-- Parent ContentType: Document (0x0101) --> <ContentType ID="0x010100c293443c01ed4ac893ea199180df0244" Name="My Content Type" Group="Custom Content Types" Description=&quo

MOSS 2007 Content Deployment Error

I have trouble with a staging environment that I recently set up.  I went through the error logs and finally got the staging environment functioning without errors, but previous to working through those errors, we successfully made a content deployment path and job and ran it.  Now, the Destination central Admin is giving permissions issues.  I changed and restarted some services and some component services..  Are there any specific things I should check related specifically to content deployment as far as services on the server? 



Either the URL for the destination Web application is not valid, or you do not have permissions to the Central Administration site on the destination server farm.

Error details: The remote Web service request failed with this message : 'Exception has been thrown by the target of an invocation.'.

Content Type Deployment Error


I got this error

Error occurred in deployment step 'Activate Features': The content type with Id [GUID] defined in feature [GUID] was found in the current site collection or in a subsite.

Any ideas???


.NET Runtime version 2.0.50727.3082 - Fatal Execution Engine Error (000006427F44A4EE) (80131506) aft


This is a new server, which has the latest security updates and Microsoft SQL Server 2008 Management Objects (for the application to connect to a remote SQL Server DB):

  • Windows Server 2003 R2 SP2
  • .NET Framework 2.0 (x64): (as a part of the SMO package install)

After install the Microsoft update KB951847, we are unable to start our application (It's a service application).

Error from the Event:

Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1023
Date:  9/11/2010
Time:  4:09:03 PM
User:  N/A
Computer: FLUFFY
.NET Runtime version 2.0.50727.3082 - Fatal Execution Engine Error
(000006427F44A4EE) (80131506)

From the Add/Remove program, the following were installed after the KB951847:

  • .NET Framework 2.0 SP2
  • .NET Framework 3.0 SP2
  • .NET Framework 3.5 SP1

I was unable to apply the patch KB913384 because, I think, the .NET 2.0 is at level SP2.   My only solution was to uninstall ALL of them (3.5 sp1, 3.0 sp2, and 2.0 sp2), then install back the base .N

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