Saturday, March 9, 2013

Referenced assembly does not have a strong name (How to sign Closed DLL)

Referenced assembly does not have a strong name (How to sign Closed DLL)


1- Open Visual Studio Command Prompt 
2- ildasm /all /out=MyLib.il  MyLib.dll    
3- sn -k mykey.snk
4- ilasm /dll /key=mykey.snk MyLib.il
5- Now your assembly has strong name and signed 

Tuesday, March 5, 2013

Crystal Report Viewer SharePoint 2010 Deployment , CrystalReportViewer in SharePoint 2010

How to Deploy Crystal Report in SharePoint 2010
CrystalReportViewer in SharePoint 2010

1- Install SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) :

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip

2- Inside "<SafeControls>"  Tag :


      <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />

3- Inside "assemblies" Tag Add :

 <!-- ========== Crystal ==============================-->
        <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.CrystalReports.Design, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
        <!-- ========== Crystal ==============================-->


4- Copy "aspnet_client" folder from "C:\>inetpub\wwwroot" and overwrite it on "C:\>inetpub\wwwroot\wss\VirtualDirectories\[Your Port]"


naadydev@gmail.com