Crystal Report not working in azure. [Resolved]

Posted by Debendra256 under ASP.NET on 4/13/2016 | Points: 10 | Views : 4175 | Status : [Member] | Replies : 1
I have created a web api where i have integrated a crystal report.On a particular api call i am creating a report and sending to user mail.It works fine in locally but where uploaded to azure it shows me the following error.


{
"Message": "An error has occurred.",
"ExceptionMessage": "Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at .............................
}


Debendra Dash


Responses

Posted by: Rajnilari2015 on: 4/13/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Hello @Debendra256 Sir,

Its not loading Crystal reports DLL

GO to the bin folder and then for every dll, click on the dll so in the properties windows you will get the properties of the dll .

The there is a property that will show Copy Local by default it is false make it true and then publish the website and replace the website on the server.

Finally , publish the site once again. This should do the trick.

Hope that helps

--
Thanks & Regards,
RNA Team

Debendra256, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response