Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i am developing website using crystal report version is 13.0.2000.0

My developing machine spec is

Windows 7 32 bit
Crystal Report exe installed(V13.0.2...)
.net framework is 4.0
if i search for log4net in C:\Windows\assembly and find log4net Assembly name and process Arc is X86.
And in developing machine report work fine no problem

But when i deploy in server machine i got error like
"{"Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.":"log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"}"


Server machine spec is

Server 2012 64 bit
i install same version crystal report runtime msi
if i search for log4net in C:\Windows\assembly and find log4net Assembly name and process Arc is AMD64

When i publish website i use AnyCpu for target machine,but if i click any report i will get error "log4net Could not load file"

Pls reply me asap


Regards
Aravind
Posted
Updated 27-Mar-14 16:31pm
v2

1 solution

If your application is linked to the .Net Framework version 4, write in the configuration section of the config file:
XML
<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

Also make sure that the .Net runtime versions 2-3.5 are available on the server.
 
Share this answer
 
Comments
Aravindba 28-Mar-14 0:26am    
hi yes i am use framework version is 4.0,And i have a another doubt,i am developing crystal report in my machine ,and design report,for that i will use sql connection to my local sql server.Design crystal rpt fields form Database Expert for that i will give loacl db,username and password,then only can drag and drop fields form Field Explorer,but when deploy in server machine how it change to server sql database ? only we specify data sorce in web config file.
Aravindba 30-Mar-14 22:31pm    
yes,try like this ,but not work,is there anyway ?
Aravindba 30-Mar-14 23:31pm    
In some articles i read like if developer machine need to install crystal report exe and in deploying machine need to install crystal report msi .I if install exe in deploying machine then it work ?
pls read this forums
http://scn.sap.com/message/14046835#14046835

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