Solved

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

Posted on 2004-09-23
12
2,224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
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
 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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