Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error executing child request

Status
Not open for further replies.

Tom2

Programmer
Mar 3, 2002
11
AU
Hi,

I developed a Web application and followed the instructions to deploy it on another server using the Web Setup project.

The server I deployed it on was a Windows 2000 Advanced Server with the Final .NET Framework installed (no Visual Studio .NET).

I ran it on the other server and it all seemed to work fine until I tried to set the ReportSource of a crystal report viewer. Web forms load etc..

I went through the files and found that setting the ReportSource of the CrystalReportViewer was causing it to have the error (displayed in full below).

Here is the line of code:

CrystalReportViewer1.ReportSource = cr;

If I comment that line of code out, the CrystalReportViewer will appear as a grey box as usual.

The same code will work fine on my local machine where I developed it. Is it because I deployed it that it's not working? I included both "Content" and "Primary Output" for each project.

Any help would be appreciated. Thanks in advance.

Here is the error:

Error executing child request for Report_1_Crystal.aspx.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for Report_1_Crystal.aspx.

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:


[HttpException (0x80004005): Error executing child request for Report_1_Crystal.aspx.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1688
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +24
System.Web.HttpServerUtility.Transfer(String path) +77
RxSalesData.Forms.Report.Report_1_Form.btnSubmitClick(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
 
Ugh...I remember when I was developing a distributed vb app with a crystal report viewer, and that was teh pinnacle of DLL hell.

The Crystal DLL's will only install from Visual Studio. So unless you port those DLL's over to the new server as well, I'm guessing that's probably why its crapping out (you mentioned that the system with visual studio will run fine, but the new one won't...I'd bet its a missing dll issue)

Somthing to check out anyway.
:)

Jack
 
It used to run fine on the system without Visual Studio .NET. I created a solution on it and just compiled the source files on it each time I wanted to update it.

Could it be because the deployment package included some of its own crystal dlls? (I noticed when the package installs it installs to c:, the .NET framework is already installed on that box but it's on d:). Could it's own dlls have been registered and by registering them it stuffed own the dlls that were already registered on the box?

Just thinking out loud..

 
oh crap, yeah, you might want to do a search of both drives and see how many crystal dll's show up, and if duplicates do exist.

Are you running a dual boot sort of thing? Just wondering why the .NET stuff wouldn't be on C (assuming C is your main drive)

jack
 
No it's not dual boot. I just installed .NET Framework on D rather than C because I just wanted to keep C for windows.
 
hhhmmm... i've never used crystal report yet... but i often got those error messages.

Error executing child request for blabla.aspx.

usually it's because of i'm using Server.Transfer("URL");
and the URL i supplied is not correct, so it throw exception... perhaps it's something to do with the PATH... maybe you should try to check the path. this is my suggestion though :)... i haven't touched crystal report yet... so don't blame me if i'm wrong ^0^
 
It does say it is the Server.Transfer that is causing the error but if I go into the web form that has the crystal report viewer (the url of the Server.Transfer line) and comment out the following line:

CrystalReportViewer1.ReportSource = cr;

It will work fine. The page will load up, it'll just have a grey box instead of the crystal report.

So the url is working fine.

Thanks.
 

Even i received the same error. The solution is add ASPNET user to the directory and give execute permission. c:\program Files\microsoft visual studio .net\crystal reports\viewers
Right click on the properties and on the security tab click add and slect ASPNET user. Then give write permission to that user. This will work if you are deploying as i did

San
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top