Solved

ASP.Net + Crystal Reports , Need help. URGENT !!!!!!!

Posted on 2004-09-23
12
2,183 Views
Last Modified: 2008-01-09
This is the error I am getting for last 3 days....

=============================================================================
Server Error in '/' Application.

Access to the path "dynamic_images" is denied.

Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[UnauthorizedAccessException: Access to the path "dynamic_images" is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
   System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632
   System.IO.Directory.CreateDirectory(String path) +195
   CrystalDecisions.Web.ReportAgentBase.get_ImagePhysicalPath() +250
   CrystalDecisions.Web.ReportAgentBase.p() +39
   CrystalDecisions.Web.ReportAgent.v(Boolean `) +40
   CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Page.ProcessRequestMain() +1499

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
=============================================================================

Background:
I designed few pages in ASP.Net. The website is running just fine. Now I added crystal reports in them. They are running perfectly in my developement machine. Problem happens when I transfered them into the server.

Developement Machine:
XP Pro.  IIS 5.1. ASP.Net (VS.Net 2002). Framework SDK 1.1.

Server:
Windows Server 2003. IIS 6.0. Framework SDK 1.1.

Additional information:
I added image to the report at design time. I am passing logon info for the tables perfectly. I even removed the images and tried , but still getting the error.

Most important information:
I am gonna kill myself if I don't find any solution ASAP.

-Baan
0
Comment
Question by:DotNetLover_Baan
  • 6
  • 5
12 Comments
 
LVL 10

Expert Comment

by:ebolek
ID: 12160648
How are you loading the images to the report. Is it done runtime

Regards
Emre
0
 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12172148
No, I have inserted the image at design time. But the "Build Action" is set to "Embedded Resource".
-Baan
0
 
LVL 10

Accepted Solution

by:
ebolek earned 500 total points
ID: 12173283
ok then in the deploymeny package the picture should be copied in the application as well. What about the dlls.
this document is very good. Shows what to add in your application for deployment.
support.businessobjects.com/communityCS/FilesAndUpdates/cr_net_2003_mergemodules_en.zip.asp
0
 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12173421
ya Emre,
I have added the picture in the setup package.
Any way, I solved it basically. I found that the problem wasn't with the picture. Rather it was a logon issue. In IIS we have a virtual directory named "CrystalReportformViewer", created by the framework. If you expand that you will see another folder "dynamic_images". What my report was doing earlier, is, it couldn't log in to the database with the logon parameters I set through my program. Now, instead of showing any "Logon failed" error, somehow it was giving access level error for "dynamic_images" folder.
Just half n hour back, I decided to set the logon info in a different way. I did that and it's working. If you want you can take a look and let me know if you liked it. :))
http://www.worldprojects.com/ssab.aspx

-Baan
0
 
LVL 10

Expert Comment

by:ebolek
ID: 12190617
It is good news baan. :) Yes crystal is not good with the error messages. Folder permissions will do that. Remember thoughdont give too much access to the folders because that would be bad for your web security. It is better to use sql authentication in your reports if designing web for that reason. Whatever i got too far from the subject. :) I tries to check the web site but it prompts user name and password and guess what i dotn have one.
Regards
Emre
0
 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12191210
oops.. sorry about that.
username: testSSAB
pwd: testSSAB

Please take a look. The issue I am having now, is with the "LogOut" button. It is not working. I don't know why.
        Session.Clear()
        Server.Transfer("Start.aspx")
        'Response.Redirect("Start.aspx")
This is what I have inside the click event. Can you check that for me ?

-Baan
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12191298
some more info: the "LogOut" thing is working perfectly alright in my developing machine. But NOT when I put it in server. :((
-Baan
0
 
LVL 10

Expert Comment

by:ebolek
ID: 12191315
I went there and was able to log out . It directed me back to the login page. So I dont see any problem there
0
 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12191421
really ? try to create any report , then log out. Let me know if it is successful.
0
 
LVL 18

Author Comment

by:DotNetLover_Baan
ID: 12195448
Anyway, I fixed it. I saved myself from a definite "Self Destruction". :))... n e way, thanks for sticking with me though.. I will give you the points.
-Baan
0
 
LVL 10

Expert Comment

by:ebolek
ID: 12199249
Thanks for the kindness.
0
 

Expert Comment

by:jude_444
ID: 14524998
I am having UNBELIEVABLE trouble getting rid of 'Access to Dynamic_Images denied' error, on win2003; I cant find any info above to help me!! All works fine when deploying to 2000 or XP, but I cant fix issue on 2003; tried on 2 seperate servers, anyone who can help please?

I am working on the data using ASP.NET, and am able to work with my site no problem until I try to run a report!!

ANY help would be GREATLY appreciated!!!

Thanks in advance
David Crone
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now