A report runs well in Visual Studio environment. Once it is deployed to the local report server, got an #Error indication without an actual message. The report has an embedded code with a database connection in it. Any idea what the problem is?
Thank you very much!
Could be a security issue regarding the database connection. If i understand you correctly, you connect to a database in custom code? If you have trusted connection in your custom code, maybe it is not the same user that makes the database call when the report runs in ReportServer as in Visual Studio and you get an exception?|||Thanks for your response. I thought it could be a security issue too. So I enabled trusted connection and tried using specific uid and pwd too. Neither of them worked.
|||What dp you get if you do a try/catch and return the exception text to a textbox in the report?What does this custom code do? What does it do with the report? The reason i am asking is that there might be some other way to solve it.|||
The custom code retrieves and outputs another set of data based on the dynamic id outputted from the first set of data.
I'll see what text message I'll get if I use try/catch and let you know.
Thanks for your help.
|||I found out it has something to do with the Code Access Security in .NET. I did some research and found this article was very helpful: http://www.devx.com/codemag/Article/33656/1954?pf=true. Once I followed it step by step, the problem was resolved. Just wanted to share with the community, in case if there is anybody encountered the same problem as I did.
No comments:
Post a Comment