Fatal error C1189: #error : WINDOWS.H already included.

Hi,
Can someone please explain why the following cpp file can get a compile error below?
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
As you can see, there is only one include statement for afxwin.h.  I cannot think of any reason for this error.  Could you please help?  Thanks in advance.
JD
#include <afxwin.h>
//#include "resource.h"
//#include <atlbase.h>
//#include "CAData_i.h"
class CCADataModule : public CAtlDllModuleT< CCADataModule >
public :
 DECLARE_LIBID(LIBID_CADataLib)
CCADataModule _AtlModule;
// Used to determine whether the DLL can be unloaded by OLE
STDAPI DllCanUnloadNow(void)
    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    return (AfxDllCanUnloadNow()==S_OK && _AtlModule.GetLockCount()==0) ? S_OK : S_FALSE;
// Returns a class factory to create an object of the requested type
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
    return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
// DllRegisterServer - Adds entries to the system registry
STDAPI DllRegisterServer(void)
    // registers object, typelib and all interfaces in typelib
    HRESULT hr = _AtlModule.DllRegisterServer();
 return hr;
// DllUnregisterServer - Removes entries from the system registry
STDAPI DllUnregisterServer(void)
 HRESULT hr = _AtlModule.DllUnregisterServer();
 return hr;

Hi Rajesh,
But, as you can see, I didn't include "stdafx.h" in the cpp file.  As I mentioned, there is only one include statement.  Another evidence is to add the 3 marco statements you recommended as below.  I get the same error.  The
middle macro statement is de-highlighted.  It means _windows_ is not defined.  So, somehow, in this case, afxwin itself causes this error.  I really cannot explain.  Any thought?  Thanks.
JD
#ifdef __windows__
#undef __windows__
#endif
#include <afxwin.h>
//#include "resource.h"
//#include <atlbase.h>
//#include "CAData_i.h"

Similar Messages

  • Afxwin.h(112): fatal error C1189: #error : MFC requires use of Winsock2.h

    I am trying to build libfreenect lib files.After,successfully making the solution file using Cmake (Following all the procedure as described in Openkinect); while I am trying to build the solution,I am getting the following error.
    afxwin.h(112): fatal error C1189: #error : MFC requires use of Winsock2.h
    Can anyone give me some ideas about resolving this? I am using visual studio 2010.

    Hi 07_SMAH,
    Thanks for posting in MSDN forum.
    But I suggest you ask this issue to Openkinect since people in here don't talk third party libraries or tools. Do you get any problem when you using vs 2010 compile and run your MFC project? If no, your post may off-top here.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to resolve build error C1189: #error PS SDK CS6 VS2013 SampleCode/SimpleFormat plugin?

    I have inherited a Photoshop CS6 format Plugin developed at my company.  This plugin was modeled after the SimpleFormat project found in the adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat folder.
    I believe the plugin was originally developed under Visual Studio 2010 and then ported to Visual Studio 2012 on the same machine.
    The solution/project currently compiles in Visual Studio 2012 on the original machine.  The Project Properties General Platform toolset is set to Windows7.1SDK on the original machine.
    I have a brand new laptop.  I have just installed Visual Studio 2013.  I pulled the solution from our repository and opened it in Visual Studio 2013.  When prompted if I wanted to port the 2012 project to 2013 I answered yes.  The Project Properties General Platform toolset is now set to Visual Studio 2013 (v120).
    When I build the project, I get several C1189: #errors.
    I also tried building the SimpleFormat example in 2013 and also get the C1189 errors.
    Error
    3
    error C1189: #error :  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\Common\SimpleFormatScripting.cpp)
    c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h
    250
    1
    SimpleFormat
    Error
    6
    error C1189: #error :  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\..\..\common\sources\PIWinUI.cpp)
    c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h
    250
    1
    SimpleFormat
    1>------ Build started: Project: SimpleFormat, Configuration: Debug Win32 ------
    1>  Compiling PiPL resource...
    1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
    1>  Copyright (C) Microsoft Corporation.  All rights reserved.
    1> 
    1>  SimpleFormat.r
    1>  CnvtPiPL. Release Version 13.0, Oct 25 2011 18:03:33.
    1>  Copyright 1992-2010 Adobe Systems Incorporated.
    1>  All rights reserved.
    1>  SimpleFormat.cpp
    1>  SimpleFormatScripting.cpp
    1>  SimpleFormatUI.cpp
    1>  FileUtilities.cpp
    1>  FileUtilitiesWin.cpp
    1>  PIDLLInstance.cpp
    1>  PIUSuites.cpp
    1>  PIWinUI.cpp
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(197): warning C4005: 'false' : macro redefinition (..\Common\SimpleFormatScripting.cpp)
    1>          c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(224) : see previous definition of 'false'
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(232): warning C4005: 'true' : macro redefinition (..\Common\SimpleFormatScripting.cpp)
    1>          c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(220) : see previous definition of 'true'
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(250): fatal error C1189: #error :  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\Common\SimpleFormatScripting.cpp)
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(197): warning C4005: 'false' : macro redefinition (..\..\..\common\sources\PIWinUI.cpp)
    1>          c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(224) : see previous definition of 'false'
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(232): warning C4005: 'true' : macro redefinition (..\..\..\common\sources\PIWinUI.cpp)
    1>          c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(220) : see previous definition of 'true'
    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(250): fatal error C1189: #error :  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\..\..\common\sources\PIWinUI.cpp)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Thank you for responding ☺
    The SimpleFormatScripting.cpp file seems to be failing due to the #include path.    SimpleFormatScripting.cpp includes 1 .h file, #include "SimpleFormat.h".   The SimpleFormat.h includes 5 .h files.  The 3rd file included is PIUtilities.h.   PIUtilities.h  #includes PITypes.h
    If I comment out the section in PITypes.h that defines TRUE true FALSE false as shown below, then I no longer get compile errors for C1189 or the warnings for C4005 for redefinition of true, false.
    #ifndef TRUE
    #define TRUE 1
    #endif
    #ifndef FALSE
    #define FALSE 0
    #endif
    #ifndef true
    #define true       TRUE
    #endif
    #ifndef false
    #define false      FALSE
    #endif
    I do get several new warnings:
    Warning                                                           2 warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification                                                                            C:\adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat\win\SimpleFormat. obj                                                                            SimpleFormat
    Warning                                                           1 warning LNK4075: ignoring '/INCREMENTAL' due to '/RELEASE' specification                                                                            C:\adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat\win\LINK                                                                             SimpleFormat
    Warning                                                           3 warning LNK4237: /SUBSYSTEM:NATIVE specified when importing from 'KERNEL32.DLL';  Use /SUBSYSTEM:CONSOLE or /SUBSYSTEM:WINDOWS.                                                                             C:\adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat\win\kernel32.lib( KERNEL32.dll)                                                                            SimpleFormat
    Warning                                                           4 warning LNK4237: /SUBSYSTEM:NATIVE specified when importing from 'USER32.DLL';  Use /SUBSYSTEM:CONSOLE or /SUBSYSTEM:WINDOWS.                                                                             C:\adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat\win\user32.lib(US ER32.dll)                                                                            SimpleFormat

  • Error C1189: #error : ERROR: You must use a GNU Compiler.

    Hi everyone!
    I have just ran into an error in which I don't know how to resolve. I'm trying to compile some code I have but it gives me the following : error C1189: #error :  ERROR: You must use a GNU Compiler.
    Before receiving this error I had received one stating that the header file "_mingw.h" was missing. I located that file and placed it in the correct folder. I also updated the project properties to locate the header file. The error itself says
    that I must use a GNU Compiler but I'm not exactly sure how to do this.I do have mingw installed on the PC though
    The error points to this part of the code :
    #define __MINGW32_VERSION           3.2
    #define __MINGW32_MAJOR_VERSION     3
    #define __MINGW32_MINOR_VERSION     20
    #define __MINGW32_PATCHLEVEL        0
    #ifndef __GNUC__
    #error ERROR: You must use a GNU Compiler.
    #endif
    #if (__GNUC__ < 3 || !defined(__GNUC_MINOR__) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) || (__GNUC__ == 3 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ < 5))
    #error ERROR: You must use a GNU Compiler version >= 3.4.5.
    #endif
    Also to note, I have the most recent version 4.8.4.1 of the compiler.
    Any ideas on what I should so to fix this? Did placing the _mingw.h file in the folder have anything to do with it?
    I would appreciate any help!! :-)

    It appears that the author of the code you are compiling intended it to be compiled with the GNU compiler, not the Visual C++ compiler.  So they manually inserted an error message (guarded by the #ifndef __GNUC__ check) so that if you compiled it on
    Visual Studio, you'd be alerted to that fact.
    I'm afraid you are now faced with either porting this code or finding a Windows distribution of it that is compatible with Visual Studio.
    *NOT RECOMMENDED*, but to begin the process of porting it , simply delete the #error line from the source code and recompile with visual studio.  You can expect millions of specific issues will need further attention.  After all, it's probably
    there for a reason.  If you are new to this, that's probably NOT what you want to do.
    On the other hand, what were you trying to compile that needed _mingw.h?  That's the piece that needs to be configured correctly.  You are likely not building it as the author intended.

  • When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    after perusing other subjects with playback issues: 
    this is the fix: 
    -Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
    -Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok.

  • Windows 8.1 Installed now I received a Fatal Device Hardware Error

    Windows 8.1 kept popping up to install update.  I would refuse it.  Then recently it updated itself.  After that, i noticed it took a little longer for my laptop to boot.  It would show a blue screen for a little bit then it would boot.  Yesterday, I received an error (can't remember what it said) needed to restart because of an error.  I ran the Hard Disk Test and Quick and then the extensive test.  it stops at one sec remaining and noting happens.  I did get a fatal device hardware error.  Can the update to Windows 8.1 cause this to happen?
    This question was solved.
    View Solution.

    Hi,
    That's what it looks like to me too.
    You may be able to find a replacement drive for your notebook from the HP Parts Store.
    I worked on behalf of HP.

  • Error : CONFIRMATION window is already open

    Hello,
    I have a sceanrio where i have to open a same dynpro application with different set of  values. Let say I have service order with 2 operation. User can do confirmation against these operations. List of service orders are displayed in ALV list. once user selects a service order  and clicks on enter confirmation. once he completes confirmation against operation, he gets op up info as service is order is confirmed.
    on Ok button clock of this pop up , i need to search if there is another operation availale in this service order then display the next operation details in the current window else window should be closed.
    here i am using lr_window = l_window_manager->create_window(
                WINDOW_NAME = 'CONFIRMATION'
    lr_window->open( ).
    but its giving me error , CONFIRMATION window is already open.
    Pl suggest how to do this.
    thanks,
    Sharada

    Hi Sharada
    there is no need to open window second time.
    CREATE WINDOW
    OPEN WINDOW
    View in window POP is now active and remains active until closed.
    ACTION 1,
    ACTION 1,...
    .... keep using POP window...
    FINALLY
    button for Action CLOSE call method controller to raise event
    CLOSE WINDOW (in caller via method that is controller Event handler)
    regards
    Phil

  • CF11 is crashing ( application pool suffered a fatal communication error with the Windows Process Activation Service)

    I have a cluster of 2 IIS web servers on Windows Server 2008 R2. They had been running on CF10 for over a year (if not two) with no problems. I upgraded one server to CF11 and now that server is crashing while the CF10 servers is still running fine.
    In the Windows event log I'm seeing 4 instances of this error:
    "A process serving application pool '******' suffered a fatal communication error with the Windows Process Activation Service. The process id was '4652'. The data field contains the error number."
    Then finally:
    "Application pool '******' is being automatically disabled due to a series of failures in the process(es) serving that application pool.".
    Looking at the application pool in the IIS admin it is stopped. Restarting will resolve but it will eventually crash.
    What could be the issue?
    -Phil

    I'm seeing in the CF logs leading up to the crash:
    Jun 04, 2014 11:11:31 AM org.apache.coyote.ajp.AjpProcessor getRealPathFromServer
    SEVERE: Error in getRealPathFromConn
    java.net.SocketException: Connection reset by peer: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(Unknown Source)
      at java.net.SocketOutputStream.write(Unknown Source)
      at org.apache.coyote.ajp.AjpProcessor.getRealPathFromServer(AjpProcessor.java:402)
      at org.apache.coyote.ajp.AbstractAjpProcessor.getRealPath(AbstractAjpProcessor.java:1276)
      at org.apache.naming.resources.FileDirContext.doGetRealPath(FileDirContext.java:202)
      at org.apache.naming.resources.BaseDirContext.getRealPath(BaseDirContext.java:424)
      at org.apache.catalina.core.StandardContext.getRealPath(StandardContext.java:4660)
      at org.apache.catalina.core.ApplicationContext.getRealPath(ApplicationContext.java:432)
      at org.apache.catalina.core.ApplicationContextFacade.getRealPath(ApplicationContextFacade.ja va:333)
      at coldfusion.runtime.ServletContextWrapper.doGetRealPath(ServletContextWrapper.java:184)
      at coldfusion.runtime.ServletContextWrapper._doGetRealPath(ServletContextWrapper.java:116)
      at coldfusion.runtime.ServletContextWrapper.getRealPath(ServletContextWrapper.java:98)
      at coldfusion.filter.FusionContext.getRealPath(FusionContext.java:999)
      at coldfusion.filter.FusionContext.getRealPath(FusionContext.java:937)
      at coldfusion.runtime.RuntimeServiceImpl.resolveTemplatePath(RuntimeServiceImpl.java:866)
      at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:420)
      at cfApplication2ecfc1835967654.runPage(C:\Data\http\domain\apps\Application.cfc:3)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
      at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
      at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java: 538)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:248)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159)
      at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:120)
      at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:138)
      at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:84)
      at coldfusion.runtime.AppEventInvoker.<init>(AppEventInvoker.java:64)
      at coldfusion.filter.PathFilter.resolveApplicationScope(PathFilter.java:195)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:124)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
      at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
      at coldfusion.CfmServlet.service(CfmServlet.java:219)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
      at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36)
      at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79)
      at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53)
      at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

  • 7.1 Error: transaction type SMIN has already been included in the categoriz

    Hello Experts,
    I'm getting the following error while running a program AI_CRM_CREATE_CAT_SCHEMA:
    Error: transaction type SMIN has already been included in the categorization schema - SAP_SOLUTION_MANAGER_TEMPLATE.
    Please remove SMIN from application area of SAP_SOLUTION_MANAGER_TEMPLATE and then run this report again.
    Can you please advice how to resolve this?
    Thank you,
    123

    I invite the colleagues that if they do not have a solid answer to a question, please do not bother on answering it.   Even the guide does not say how to get rid of that error.  The guide on page 17 says "Please ensure that there is no active categorization schema for the transaction types listed above before you run the report".   Well, how do you do that?   Also the guide says to create a version of the schema, and release that new schema, but that still does not work.  You go into the new schema version to delete all entries related to SMIN, but even after that you still get the same error trying to run the report AI_CRM_CREATE_CAT_SCHEMA.
    I am writting all this because from the answers above:
    Answer 1, the SAP Note:  They do not mention anything about schema.
    Aswer 2 and 3.                 Already answered.  The implementation guide does not help as mentioned above.
    Answer 4.                        This error has nothing to do with copying SMIN into ZMIN.
    Please accept my complaint and do not get offended.  We all know we are trying to help one another, although it is nicer to save time getting to the correct answer faster.
    Thanks,
    Juan

  • Sharepoint application pool suffered a fatal communication error with the Windows Process Activation Service

    I am using form based Sharepoint servers and received below error.  Is there any way to solve this?
    Sharepoint 2010 in Windows 2008 R2 Server.
    A process serving application pool 'Sharepoint-2' suffered a fatal communication error with the Windows Process Activation Service. The process id was '11516'. The data field contains the error number.

    I don't see any number provided in the event log. I got this through Sharepoint diagnostic tool.  below is the log.
    Log Name:      System
    Source:        Microsoft-Windows-WAS
    Date:          12/17/2013 5:16:34 AM
    Event ID:      5011
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      525531-WEB03.dfw.intensive.int
    Description:
    A process serving application pool 'Sharepoint-2' suffered a fatal communication error with the Windows Process Activation Service. The process id was '8180'. The data field contains the error number.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
        <EventID Qualifiers="32768">5011</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-12-17T10:16:34.000000000Z" />
        <EventRecordID>23515</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>System</Channel>
        <Computer>525531-WEB03.dfw.intensive.int</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="AppPoolID">Sharepoint-2</Data>
        <Data Name="ProcessID">8180</Data>
        <Binary>6D000780</Binary>
      </EventData>
    </Event>

  • Internet Explorer 9 not showing as not installed when using Windows Update - Error: Code 9C48 Windows Update encountered an unknown error.

    I built a few new Windows Server 2008 R2 with SP1 VMs today and ran into a problem where Windows Update is not detecting the fact that Internet Explorer 9 is already installed. Internet Explorer 9 keeps showing up as an available update when
    using Windows Update. When I try to install it as a test I get the error message: Code 9C48 Windows Update encountered an unknown error.
    My normal build procedures include applying all the patches for the OS prior to any other work on the servers. The way I like to do the patching is to do every update other then IE9 in the begininng and once all the other updates have been
    completed, install IE9 and then patch it if there are updates available. I followed this procedure on every build for the last year and I have not run into any issues until today. The only difference today is the latest patches that were released yesterday
    April 10th, 2012. To test the theory that it may be one of the latest patches, I reinstalled Windows from scratch making sure to format the disks and then I installed IE9 right after the OS install without any other updates. Once the
    server was rebooted, I checked Windows Update and Internet Explorer 9 still showed up as update (Not the Cumulative Update which normally shows up after an IE9 install) and yes, I did make sure to click the 'Check for Updates' link before I looked just
    in case. My next test was to patch a couple of the servers I had built prior to April 10th, 2012. Those servers did not have any issues with the latest updates and they are not experiencing the same behavior as the newly built servers.
    I ended up comparing the IE9 Version on the cleanly install OS (No updates were installed except IE9) and the servers I built last week which were patched. The versions are exactly the same.
    My findings above lead me to believe that there is a problem with the latest IE9 install package (which includes the latest cumulative update) and the Windows Update detection component.
    I guess I am looking for someone to report this up the chain to get this fixed so no one else runs into this problem. I know in some cases we may not be able to see additional IE9 updates until this is resolved.

    I just started having the same problem.
    I was creating a new VM in Vsphere from our 2008 R2 SP1 image and it hasn't been updated and repacked in a while, so i have to install about 60 updates, including IE9.
    I went through my normal setup as i had just created 2 VMs and updated them on Monday with no problem.
    I got the same error code as you. The install looks like it installed IE9, but the update is still showing up as available in Windows Update.
    I deleted the VM, created a new one, chose all updates except IE, then did that and it still shows up again.
    Then i deleted the VM, installed just IE 9 and it still shows up as available on reboot.
    I have a script that i can use to reset/clear WSUS cache on the computer, (Software distribution folder, and the windows update log, and recreates a certificate), so i tried that and then rebooted and it still showed up.
    I then decide ok, maybe the Image got messed up somehow, so i started creating a new 2008 R2 install from scratch last night and chose to update just IE9 as the first install. I did that, rebooted and it didn't show up in Windows Updates, so i though GREAT.
    I proceed to kick off the 100+ downloads needed before i left and left the console up.
    When i got in to work this morning, the updater seemed stuck on 31 of 102 updates, this one in particular: KB288516. I rebooted the computer, because it wouldn't stop and just seemed stuck since last night, which these updates should only have taken about
    an hour to install at most. I log back in and sure enough, it now shows Internet Explorer 9 at the bottom of the update list as being needed for install.
    I believe this is Patch Tuesday week, so maybe they screwed up something with the Windows Update detection engine, because it worked fine on Monday when i had to update IE9 on 2 VMs that i created.

  • OBIEE 11.1.1.3 - Fatal NI connect error 12157

    Hi,
    I installed OBIEE 11.1.1.3 on linux 64 bit machine. I am not able to start the scheduler process. The scheduler is not able to connect to the database for some reason. I get following error in my sqlnet.log.
    Fatal NI connect error 12157, connecting to...
    I ensured that tnsnames.ora file in Oracle_BI1/network/admin has the correct sid defined.
    I also entered valid connection settings in coreapplications/deployment/scheduler page in the Enterprise manager.
    If I turn on tracing in my sqlnet.ora file, I get
    1083935040) [18-OCT-2010 15:13:14:905] niotns: niotns failed to create NS ctx, error code 12157
    (1083935040) [18-OCT-2010 15:13:14:905] niotns: Couldn't connect, returning 12157
    If I try to run tnsping from Oracle_BI1/bin directory, i get error
    TNS-12538: TNS:no such protocol adapter
    even though the protocol has been specified correctly as tcp.
    Any, ideas what may be wrong ? Here are my scheduler page settings in enterprise manager
    Database     Oralce 11g
    Call Interface OCI 10g R1/R2
    Data Source     mytnsentry
    Username     myusername
    Password     xxxx
    Confirm Password     xxxx
    Note that my database is Oracle 11g but I am using OCI 10g R1/R2 as that is the max oci version available in the dropdown. Can this be my problem? If yes, can anybody tell me how to let scheduler use different set of drivers ?

    H:\>lsnrctl statusLSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-DEC-2008 11:04
    :45
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12541: TNS:no listener ....
    It seems you don't have a listener service.
    H:\>lsnrctl startLSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-DEC-2008 11:05
    :00
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    Failed to start service, error 1053.
    Because you still don't have a service, this error is thrown. But this statement SHOULD create a listener service,check control panel.
    Since you don't have a listener.ora port 1522 is useless (until you tell Oracle to listen on a non-default number dynamically), but port 1521 can be used by default. Obviously your excel application connects sometimes to port 1522 and fails (it was already asked is this a RAC environment?). In such an environment you definitely need a working listener.ora.
    Werner

  • INI instrument driver and fatal run time errors

    Hey everyone, I'm experimenting with the INI instrument driver and running into a fatal run time error.  Here's what I know so far:
    The runtime error only happens during the very first Ini_Putxxx
    It only happens if the target INI file does not yet exist.  After the file is created with a Ini_WriteToFile, then the program will proceed with all my Put functions without any errors.
    Ideas?
    Solved!
    Go to Solution.

    Are you sure about that? I just tried calling these functions in the Interactive Execution window without errors (the destination file wasn't there before the call and has been created without errors):
    #include "inifile.h"
    static int error = 0;
    static IniText T = 0;
    T = Ini_New (0);
    Ini_PutString (T, "General", "Item 1", "Test string");
    Ini_PutInt (T, "General", "Item 2", 123);
    Ini_PutDouble (T, "General", "Item 3", Pi ());
    error = Ini_WriteToFile (T, "C:\\test.ini");
    Ini_Dispose (T);
    Ini_PutXX functions do not make any disk access, they work entirely in memory; the only functions where the instrument accesses the disk are Ini_WriteToFile and Ini_ReadFromFile. Which error are you receiving? Can you post a sample code that exhibits the error?
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Compile occi error LNK2019 on windows XP SP2 with VC7 command line

    I try to compile a cpp file from command line under Windows XP SP2 environment with:
    - Microsoft Visual Studio .NET 2003
    - Oracle 10g 10.1.0.2.0 client (admin) installed
    , but I encountered error on the code "env = Environment::createEnvironment (Environment::DEFAULT);" as follows:
    occiclient1.obj : error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl
    oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),
    void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void*))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1
    I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "public: __thiscall occiclient1::occiclient1(void)" (??0occiclient1@@QAE@XZ)
    I have already included necessary e.g. oraocci10.dll, oraociei10.dll for the %PATH% and %LIB% environment variables, and have tried many times but still fail, are there something I done wrong or missing?
    The command line I used to compile the program is "cl -GX occiclient1.cpp"

    hi!
    My partition has c: 40GB ( i dumped sap software in this drive) and d: 120GB. And i hav e: drive for CD Drive.
    Actually, the drives set "AUTO Mount". i removed the mount. it will work. i was given all all input parameters of Central Instance......
    After start the Central instance,
    step 2, File system check/adapt (post processing) , i got same problem. Even i tried windows XP and Win 2003 also.
    i logged as administrator user only......... i installed jdk........ and i chek it's working fine........
    what was the solution...
    regards
    raghu

  • FATAL NI CONNECT ERROR 12203  CONNECTING TO :

    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=ORACLE80)
    (ARGV0=ORACLE80ORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')))
    (CONNECT_DATA=(SID=ORACLE)(CID=(PROGRAM=D:\DEV60\BIN\IFDBG60.EXE)(HOST=DEVELOPER)
    (USER=DEVELOPER)))
    VERSION INFORMATION
    TNS FOR 32-BIT WINDOWS : VERSION 8.0.6.3.3 -PRODUCTION
    ORACLE BEQUEATH NT PROTOCOL ADAPTOR FOR 32-BIT
    WINDOWS: VERSION 8.0.6.3.3 -PRODUCTION
    PLEASE TELL ME HOW CAN I SOLVE THIS PROBLEM AND WHAT IS REASON FOR SUCH PROBLEM

    I didn't know enough to answer your question myself, so I visited http://groups.google.com and searched using the following keyword (including quotes):
        "FATAL NI CONNECT ERROR 12203"
    This search returned the following archived USENET post from Sybrand Bakker (I trust this guy ;) ):
       From:   Sybrand Bakker
       Date:   Fri, Feb 9 2001 3:33 pm
       Email:  "Sybrand Bakker" <[email protected]>
       Groups: comp.databases.oracle.tools
       Beq is acronym for bequeath which is a variant of interprocess
       communication. This works locally on the server only.
       If I understand your situation correctly you are not on the server
       12203 unable to connect to destination means sqlnet can't establish low
       level communications to the host.
       You need to setup an ordinary tcp/ip connection.
       Hth,
       Sybrand Bakker, Oracle DBA If you are not on the server, then the above likely explains your problem.
    Hopefully this helps,
    Eric Adamson
    Lansing, Michigan

Maybe you are looking for