{"id":25,"date":"2011-12-25T16:05:04","date_gmt":"2011-12-25T16:05:04","guid":{"rendered":"http:\/\/www.krmitblog.com\/?p=25"},"modified":"2024-04-01T18:16:01","modified_gmt":"2024-04-01T18:16:01","slug":"crystal-reports-in-net-4-windows-application","status":"publish","type":"post","link":"https:\/\/krmitblog.com\/?p=25","title":{"rendered":"Crystal Reports in .net 4 windows application"},"content":{"rendered":"<p>Ran into issues with my application not compiling due to the following error:<\/p>\n<p>&#8220;Could not load file or assembly &#8216;file:\/\/\/C:Program FilesSAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86dotnet1crdb_adoplus.dll&#8217; or one of its dependencies. The system cannot find the file specified.&#8221;<\/p>\n<p>Thanks to a post on msdn&#8217;s forum I found the following fix:<\/p>\n<p>1. Make sure your project framework is set to 4.0 framework, not the client<\/p>\n<p>2. Add this to the config file:<\/p>\n<div>&lt;startup useLegacyV2RuntimeActivationPolicy=&#8221;true&#8221;&gt;<\/div>\n<div>&lt;supportedRuntime version=&#8221;v4.0&#8243; sku=&#8221;.NETFramework,Version=v4.0&#8243;\/&gt;<\/div>\n<div>&lt;\/startup&gt;<\/div>\n<p>3.&nbsp; When distributing the app be sure to include the&nbsp; appname.config.exe file<\/p>\n<p>&nbsp;<\/p>\n<div class=\"signature\">\r\n<img decoding=\"async\" src=\"http:\/\/krmitblog.com\/wp-content\/uploads\/2013\/02\/krmsig1.png\" alt=\"signature\" \/>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Ran into issues with my application not compiling due to the following error: &#8220;Could not load file or assembly &#8216;file:\/\/\/C:Program FilesSAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86dotnet1crdb_adoplus.dll&#8217; or one of its dependencies. The system cannot find the file specified.&#8221; Thanks to a post on msdn&#8217;s forum I found the following fix: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/krmitblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":3,"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/krmitblog.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/krmitblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/krmitblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/krmitblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}