LOAD-OF-PROGRAM re-loaded?
Hello SAPients.
It's supposed that the LOAD-OF-PROGRAM event should run only once in the very begining of the program, right? Do you know why it is running again when I go back to the selection screen? It's clearing some internal tables that I still need available.
Thank you in advance for your kind help.
LOAD-OF-PROGRAM.
Effect
This event keyword defines an event block whose event is triggered by the ABAP-runtime environment when an executable program, a module pool, a function group or a sub-routine pool is loaded in the internal session.
When calling a program through SUBMIT or through a transaction code, then, at every call, a new internal session is opened and the event block is executed once at every call. You can initialize global data objects of the program here.
At the first call of an external Procedure (sub-program or function module), the framework program of the called procedure is loaded into the internal session of the caller, thus triggering the event LOAD-OF-PROGRAM. The event block is executed before the called procedure. At any further call of a procedure of the same framework program by a caller of the same internal session, the event LOAD-OF-PROGRAM is triggered no longer.
Note
The event LOAD-Of-PROGRAM should mainly be used to initialize global data when calling external procedures or Transactions. If you call executable programs with SUBMIT, we recommend that you use the event INITIALIZATION, as the Starting values for parameter and selection criteria are set after LOAD-OF-PROGRAM
reward points if it is usefull ...
Girish
Similar Messages
-
I just bought this and was trying to load it for the first time and the circular icon just keeps flashing like it is trying to load and can't. Most elements come up but I am wondering why it is still flashing like it is trying to load.
At times, the drop down menus will not stay up. When I click on them, they flash and then disappear.
This is not a blank message.Not the help you're looking for -- sorry -- but I'm fighting a battle with Adobe tech support, too. They won't help me with an issue involving using the program, but their site seems to indicate that tech support is available for download, install, & setup. Check page: https://helpx.adobe.com/contact/what-contact-options.html and try calling them again. Good luck!
-
Error When Submitting WIP Mass load Concurrent Program (Work in Process)
Hi,
I am submitting WIP Mass Load concurrent program to get the data from WIP_JOB_SCHEDULE_INTERFACE table in to base tables.
The concurrent program is completed with Warning status.
My Package inserts the data into wip_job_schedule_interface table to create a WIP Job. After inserting the data in to wip_job_schedule_interface table, it submits a concurrent program (WIP Mass Load) (Standard concurrent program) to create a WIP job automatically from the data inserted into wip_job_schedule_interface table.
This concurrent is errored out with the following warning message:
===========================================================
Group ID: 7026 Report Date: 23-OCT-2007 12:26
Job and Schedule Interface Report Page: 1 of 1
Create Discrete Jobs
Source Code: XXEXT019
Organization: DVR
Process Process
Job Job Type Assembly Quantity Start Date Completion Date Kanban Card Phase Status
6094-3 Non-standard DEV-GA-1 1.00 23-OCT-07 11:57 23-OCT-07 11:57 Validation Error
Error: Invalid or insufficient Completion Subinventory/Locator information.
Check that you have entered valid subinventory/locator information based on the organization and assembly
that you have chosen.
0 out of 1 jobs were successfully loaded
=========================================================
I populated locator information in to the interface, then too its saying the same.
Can you please me know where exactly i am going wrong. Help Appreciated.
ThanksHave a look to the Metalink note "Note:207646.1", which deals with the error "WIP_ML_ORA_ERROR (ERROR_CODE=-1653)".
-
How do you stop Audigy programs from loading at start
I posted yesterday regarding my sound card (Audigy 2 ZS Platinum) taking up a large amount of CPU.
I went into my BIOS and basically assigned every free IRQ to my PCI cards and yet again changed the slot that the card sits on. Everything is back to normal and I think I might know why, which is where my question comes in.
Thankfully, XP allows me to use the card without rebooting. If I do reboot, I have a feeling 3 things will happen.
. A pop up window will appear at the top of my screen that allows me to control certain aspects of the card.
2. A program will appear in my task bar (white with blue headphones) which allows me to run Creative Programs.
3. My CPU will jack up again.
Because I didn't have to reboot when i re-installed the card, these two programs are not running.
My question is, how do I stop those two programs from loading at start up? I've closed them down in the past after a reboot and it does not help, so obviously something is loading with them.
Any help would be greatly appreciated.
Thank you.
AMD Athlon XP (.8), 52MD RAM, XP SP2, ATI Radeon 9700 ProThat is not part of Firefox, but appears to be an add-on. You appear to have this add-on installed - https://addons.mozilla.org/firefox/addon/3481/
For details of how to uninstall the add-on see the [[uninstalling add-ons]] article. -
This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
=== Pre-bind state information ===
LOG: User = Andrew-VAIO\Andrew
LOG: DisplayName = msshrtmi
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: msshrtmi | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
[HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
Note that the dev machine is x64 Win7.
I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
Removing the PlatformTarget element from the project file has no effect
Removing the msshrtmi.dll file from the bin directory of the website project ends up with
'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
which is the model project - presumably because to run on my x64 machine I need the 64bit version?
I really need to be able to debug and then publish some changes ASAP.
AndrewHi,
Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
Allen Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Error while loading java program using loadjava
Hi
I have oracle 8.1.7 in NT server. When I try to load a java program with load java it gives me the error like this
Error while resolving class EchoInput
ORA-00904: invalid column name
loadjava: 1 errors
Why this is happening. How can I resolve this. Any help is appreciated
Thanks
SanthoshYou need to install teh jserver component.
have your dba review this and run all java enabling scripts.
look for it in the doc as initjvm.sql. -
Hi Experts,
while i am doing MIGO(Goods Issue to Production Order, I am getting the below ABAP Error:
Please give solution, It is urgent requirement.
THE ERROR IS:
Short text
Illegal interruption of the event LOAD-OF-PROGRAM.
What happened?
Error in the ABAP Application Program
The current ABAP program "/MRSS/SAPLRAP_INT_OB" had to be terminated because it
has come across a statement that unfortunately cannot be executed.
Error analysis
During the flow of the event LOAD-OF-PROGRAM (event for the
initialization of an ABAP program), a condition occurred under which
the event was to be left early. This is not permitted as it would
result in an inconsistent status in the ABAP program.
Trigger Location of Runtime Error
Program /MRSS/SAPLRAP_INT_OB
Include /MRSS/LRAP_INT_OBF00
Row 34
Module type (FORM)
Module Name GLOBAL_INIT
Source Code Extract
Line SourceCde
4
5 *&---------------------------------------------------------------------*
6 *& Form global_init
7 *&---------------------------------------------------------------------*
8 * text
9 *----------------------------------------------------------------------*
10 FORM global_init.
11
12 * local data
13 DATA lv_badi_impl_exists TYPE flag.
14
15
16 * get ref to BAdIs
17 CALL METHOD cl_exithandler=>get_instance "#EC CI_BADI_GETINST
18 CHANGING
19 instance = gv_ref_badi_inter_company.
20 * CALL METHOD cl_exithandler=>get_instance
21 * CHANGING
22 * instance = gv_ref_badi_rap_back.
23 * CALL METHOD cl_exithandler=>get_instance
24 * CHANGING
25 * instance = gv_ref_badi_ps_int.
26 CALL METHOD cl_exithandler=>get_instance "#EC CI_BADI_GETINSTHi Rob thanks for your response. I thought about doing an OSS note however; I would think I would need to get the problem in config corrected first as it contradicts each other. The problem I am talking about is how they are to return material to vendor....I have never even seen this as a process in my 10 years....
Process.....when the PO is a return to vendor PO they go to migo and choose the goods receipt and mvmt type 101 and the system will default the 161 in the item level....the two are inconsistent. If I try to change the top level to a 161 mvmt (as this is what I am used to seeing) it gives the error that the PO is not a stock transport order... Would you agree that I should correct that problem first before creating an OSS note? -
I downloaded OS X 10.9.5 and when I attempt to load the program from OS X 10.7.5 I click on the install icon and nothing happens. How do I install the upgrade? Can I upgrade from Lion to Mavericks? Here are my specs:
MacBook Pro
15 – Inch Core 2 Duo
Processor 2.33 GHz Intel Core 2 Duo
Memory 4 GB 667 MHZ DDR2 SDRAM
Graphics ATI Radeon X1600 256 MB
Serial Number W8****W0L
Software Mac OS X Lion 10.7.5 (11G63)
Is my system capable of running the new upgrades?
<Personal Information Edited by Host>kar89 wrote:
I downloaded OS X 10.9.5 and when I attempt to load the program from OS X 10.7.5 I click on the install icon and nothing happens. How do I install the upgrade? Can I upgrade from Lion to Mavericks? Here are my specs:
Sounds like you downloaded the OS X Mavericks 10.9.5 Update or Combo Update. Neither will work on a version of OS X prior to OS X Mavericks. Those are only used to update an existing install of OS X Mavericks. The Combo will update any version from 10.9.0 thru 10.9.4. The Update will only update version 10.9.4.
You need the full installer of OS X Mavericks from the App Store. However, the App Store no longer offers OS X Mavericks. Yosemite is the new FREE OS X. -
I can not open the Safari browser in the operating system ( os x Mavericks ) ?
due to load a program of site>!!!!
please help me .
thank youTry this.
Force Quit .
Press command + option + esc keys together at the same time. Wait.
When Force Quit window appears, select Safari if not already.
Press Force Quit button at the bottom of the window. Wait.
Safari will quit.
Relaunch Safari holding the shift key down. -
After instaling Mavericks, my Mac has slowed down so much, when I turn on my Mac it takes forever to load, and after it loaded, takes longer (then what it did before) to load any program.
Any help please?
My specs: MacBook PRO 13" late 2011, 4Gb RAM, Intel i7 2.8Ghz System most of the times shows 90-97% on idle (yet slow).Check activity monitor, if a keener activity is taking a lot of CPU resources then Try this link http://www.rdoxenham.com/?p=259
You will have to keep an eye on your temperature, but that's it. -
AP PRE_PAYMENTS custom concurrent program to load pre-payment invoices
is there any concurrent program to load pre-payment invoices.if not how to create
THanks for the suggestion MIke. I tried changing both the element name and the value to upper case, tthen I tried removing the..
<property name="xml_tag_case" value="upper" /> ..line altogether, yet it still isn't returning any records..
THanks
Steven -
LOAD-OF-PROGRAM IS EXECUTED AT EVERY PBO
Dear All:
I'm working with a ECC6 system, which was upgraded from a 4.6C.
Concerning to LOAD-OF-PROGRAM: When an ABAP program is loaded in an internal session, the runtime environment triggers the LOAD-OF-PROGRAM event, and the corresponding event block is executed.
This means that LOAD-OF-PROGRAM should be executed only once.
But I have different behaviour. In my system is executed at every PBO.
I have this test code:
REPORT ztest .
PARAMETERS: p_gjahr TYPE gjahr.
LOAD-OF-PROGRAM.
BREAK-POINT.
START-OF-SELECTION.
WRITE:/ 'Hello'.
When I run this program, the break-point is triggered. This is correct.
After that, I press F8, to skip the break-point, and F8 to launch the report.
The system shows 'Hello'.
But when I press back, the break-point located in load-of-program is triggered again, which is incorrect.
Has someone faced the same problem?
Thanks in advance.When I run this program, the break-point is triggered. This is correct.
After that, I press F8, to skip the break-point, and F8 to launch the report.
The system shows 'Hello'.
But when I press back, the break-point located in load-of-program is triggered again, which is incorrect.
No, which is not Incorrect. It is correct. Even if you try to put the INITIALIZATION event and put a break-point system will go it both the time as it went in the LOAD-OF-PROGRAM.
That means when you come back from the List to selection screen, system will load the program using the LOAD-OF-PROGRAM and that's why all your global data is being cleared everytime your run the program from the selection screen.
Regards,
Naimesh Patel -
ABAP program to load an infocube
Hello All,
I am new to BW and have learnt the basic concepts only. I now have to write an ABAP program to load one of the infocube after receiving the data in the form of a flat file from an external system. Any ideas on how I can go about this will be greatly appreciated and rewarded! Thanks in advance.
Regards
VeenaHi,
I guess you can try to raise an event to trigger the PC or IP to load the cube.
You should raise the event through your ABAP code and schedule the PC or IP to run once this event is raised.
Create event in tcode SM62
Use FM: BP_EVENT_RAISE to raise an event
Use after event in the start variant of the process chain.
You create user events in SM62. In SM62, next to "User even names", click on Maintain and press Enter. Click on the Create icon to create a new event (let's call it ZEVENT).
Next, in your process chain, change the Start variant to be scheduled "After event", and put in ZEVENT for the event name. Also, click on the "Periodic job" at the bottom. This will automatically reschedule the jobs for the process chain after it executes.
Next, create an ABAP program (let's call it Z_EVENT_RAISE) to call the function module BP_EVENT_RAISE. You're code can look like this:
codeREPORT Z_EVENT_RAISE.
PARAMETERS: P_EVENT LIKE TBTCO-EVENTID.
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = P_EVENT.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.[/code]
This ABAP program will prompt for an event name, so you will need to create a variant (let's call it ZEVENT) which will save the value of the event name (also ZEVENT). You will need the variant name to be able to trigger the event in a batch job.
Now all you need is the batch job. Use tcode SM36 to create a batch job where you call the ABAP program (Z_EVENT_RAISE) using the variant (ZEVENT).
Raise an event to trigger process chain in BI
http://sapbwneelam.blogspot.com/2007/09/how-to-start-process-chain-through.html
how do we raise an event to trigger process chain in BI
Hope this helps.
Thanks,
JituK -
How can i exit in "LOAD-OF-PROGRAM" event?
Hi, experts.
I want to know how to exit in "load-of-program event".
Recently our system was upgraded from 4.6c to ecc 6.0.
Some programs have a coding as follows.
LOAD-OF-PROGRAM.
IF SY-TCODE = 'XXXXX' OR SY-TCODE = 'YYYYY'.
IF SY-UNAME = 'AAAAA'.
MESSAGE E000 WITH TEXT-001.
ENDIF.
ENDIF.
CLEAR ............
PERFORM ..............
It's running well in 4.6c but occurred error in ecc 6.0 as follows.
Runtime Errors SYSTEM_LOAD_OF_PROGRAM_FAILED
Short text
Illegal interruption of the event LOAD-OF-PROGRAM.
During the flow of the event LOAD-OF-PROGRAM (event for the
initialization of an ABAP program), a condition occurred under which
the event was to be left early. This is not permitted as it would
result in an inconsistent status in the ABAP program.
I think that used a option "message type;e" in the load-of-program event.
For example, it's ok with "s,i,w" options...
Teach me how to exit in load-of-program. Thanks.
p.s That programs' type is module-pool.
Regards.
ytkim.Thank you for your answer.
But my question has not been answered yet.
It still occured a error as follows.
Runtime Errors SYSTEM_LOAD_OF_PROGRAM_FAILED
Short text
Illegal interruption of the event LOAD-OF-PROGRAM.
Error in the ABAP Application Program
The current ABAP program "YT_TEST06" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
During the flow of the event LOAD-OF-PROGRAM (event for the
initialization of an ABAP program), a condition occurred under which
the event was to be left early. This is not permitted as it would
result in an inconsistent status in the ABAP program.
I think that i maybe use the keyword "exit"... -
On our build system, we use the global setting to code analyze all projects. One of our projects is a C# WIX custom action. This projects causes the build to fail with:
EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format.
The ...CA.Dll target seems to be created by a WIX custom action. Does anybody have already encountered this issue and found a workaround?
Full build output:
<target name="ContractDeclarativeAssemblyCS" success="false">
<message level="normal"><![CDATA[Build Declarative Contract Assembly for C# D:\EA_MAIN_DB\AMI\bin\Debug\GEHealthcare.Isip.EACustomInstallActions.dll]]></message>
<message level="high"><![CDATA[C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /pdb:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.pdb /errorreport:prompt /warn:0 /define:DEBUG;TRACE;CONTRACTS_FULL;CODE_ANALYSIS /reference:"C:\Program Files\Windows Installer XML v3\SDK\Microsoft.Deployment.WindowsInstaller.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.ConnectionInfo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Management.Sdk.Sfc.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Smo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.SqlWmiManagement.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /addmodule:D:\EA_MAIN_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll /debug+ /debug:full /filealign:512 /keyfile:..\..\Common\EAKeyPair.snk /optimize+ /out:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.dll /target:library /warnaserror- ..\..\Common\GlobalAssemblyInfo.cs CustomAction.cs Properties\AssemblyInfo.cs Resource1.Designer.cs SqlServersSelector.cs SqlServersSelector.designer.cs "C:\Program Files\Microsoft\Contracts\Languages\CSharp\ContractDeclarativeAssemblyAttribute.cs"]]></message>
<error code="CS0009" file="CSC"><![CDATA[Metadata file 'd:\EA_Main_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ']]></error>
</target>This problem appears to be ongoing 5 years after this thread was started. I have just run into it.
When WiX builds a custom action, the build proceeds as normal and produces a managed code output, say MyCustomActions.dll. Windows Installer doesn't support managed code in custom actions, so the managed code has to be wrapped in an unmanaged native code
wrapper, so in a post-build step, it injects the managed output into the unmanaged wrapper and _that_ then becomes the project's build output and will be named MyCustomActions.CA.dll. I believe that Code Contracts may be trying to open the unmanaged wrapper
file and discovering that it is not managed code ("invalid format").
In order for CCRewrite to work here, it would need to run on the managed code _before_ it gets wrapped in the unmanaged wrapper. I am not sure how we can hook into the build process to get that to happen.
It might be possible to somehow make a WiX Custom Action project by creating a standard C# class library, which would work correctly with CCRewrite, then somehow performing the WiX packaging as a post-build step. I'm not sure what is required though, exactly.
Any ideas?
--Tim Long
Tim Long
Maybe you are looking for
-
Advantages to using iMessage?
Hi, are there any advantages to using iMessage if you're on a plan with unlimited taik and text? iMessage uses data on the 4GLTE network if one is not on a Wi-Fi connection, so why use iMessage when you have unlimited text messages? I'm curious; I li
-
I re-installed Aperture after a computer erase and disk repair. Reinstalled from my back-up hard drive using migration assitant. Now it will not open. The message I get is this: Aperture cannot b opened because of a problem. Then goes on to say "chec
-
The buttons at the right top corner of firefox that are used to close all programs disappeared. What can I do?
-
Embeded Flash file .. need to center
After creating a dynamic site via Flash, I'm experiencing issues with centering it on the html page. I've tried all of the regular fixes of <align = center>...but it's not reading it. Someone told me that it takes a bunch of code to do..but I don't r
-
Architecture of Flex application
Are there any tutorials for decomposition of a large flex application into smaller components that are easier to handle? Integration of the components?