Click here to Skip to main content
15,889,874 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have web setup project installer program. And windows application. I am calling windows application during installation time by using override Install() function in installer.

In windows application I am executing sql script. Suppose if I run the windows application script is executing in sql server perfectly.

When its working with setup file I am getting the following error.

"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

Actuall this error i am getting when i am executing only windows application. So i modified in app.config file as follows:

configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <supportedruntime version="v4.0">

But now when this windows application work with istallation (I mean during installation i am calling windows application) its not working. Its throwing the error as mentioned above

And one more issue: In windows form i have folder browse dialog control and file browse control. If i execut only windows application its working. But in setup file installation times its not working.

Please guide me how to acheive it.

Thanks
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900