Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to access the crystal report file, which I have to access from my local machine.
I am using MVC application using c#.Application is deployed on Azure cloud service.
The report file itself contains database connections,parameter definitions,etc.

What I have tried:

its working when i store the report file to my local storage.
Posted
Updated 17-Apr-18 20:12pm
v2

1 solution

Your MVC site will need access to the remote file.

If you are using IIS then you will need to look at the account running the Application Pool & give that account access to the remote location.
NOTE: Using a mapped drive is likely to fail, you will need to include the full path to the server and share.
Refer; Application Pools — ASP.NET documentation[^]
While this is for ASP.Net the information is still relevant

Kind Regards
 
Share this answer
 
Comments
Member 13783994 18-Apr-18 2:10am    
Thank a lot. Sorry but I forgot to mention that I am deploying my application on cloud Service. Is their any solution for cloud service?
an0ther1 18-Apr-18 17:12pm    
No idea, it would depend on the service.
If you cannot just copy the reports to a sub-folder on the MVC site then you may need to look at another solution.
For instance, do you actually need to view the report in the Crystal Viewer, if not you could create a class that retrieves the report in the format requested and returns a - for instance PDF - file to the client.

If you need the Crystal Viewer then your MVC site needs access to the report itself, this can be via the Crystal Reports Enterprise Server if that is on another machine but otherwise there doesn't seem to be a way of loading the report.

Kind Regards

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