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

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
LVL 18
DotNetLover_BaanAsked:
Who is Participating?
 
ebolekConnect With a Mentor Commented:
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
 
ebolekCommented:
How are you loading the images to the report. Is it done runtime

Regards
Emre
0
 
DotNetLover_BaanAuthor Commented:
No, I have inserted the image at design time. But the "Build Action" is set to "Embedded Resource".
-Baan
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
DotNetLover_BaanAuthor Commented:
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
 
ebolekCommented:
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
 
DotNetLover_BaanAuthor Commented:
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
 
DotNetLover_BaanAuthor Commented:
some more info: the "LogOut" thing is working perfectly alright in my developing machine. But NOT when I put it in server. :((
-Baan
0
 
ebolekCommented:
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
 
DotNetLover_BaanAuthor Commented:
really ? try to create any report , then log out. Let me know if it is successful.
0
 
DotNetLover_BaanAuthor Commented:
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
 
ebolekCommented:
Thanks for the kindness.
0
 
jude_444Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.