Deploying FastReport.Net to Windows 2003 Server
I installed FastReport.Net on my Windows 7 development environment and was able to successfully develop several reports using Visual Studio 2005 and .Net 2.0. I am now trying to deploy these reports to my production application server (Windows 2003 SP2 w/IIS 6.0). When I access the ASPX page with my report, I receive the following ASP.NET error:
Has anyone else experienced this problem or have any suggestions on how I might fix it?
I have tried copying the FastReport dlls to the C:\Windows\Assembly folder, but this did not help.
Thanks!
Tom
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'FastReport' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPages/site.master" AutoEventWireup="true" CodeFile="TruckSlip.aspx.cs" Inherits="Reports_TruckSlip" Title="Untitled Page" %>
Line 2:
Line 3: <%@ Register Assembly="FastReport" Namespace="FastReport.Web" TagPrefix="cc1" %>
Line 4:
Line 5: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
Source File: /voa.website/BackOffice/TruckSlip.aspx Line: 3
Assembly Load Trace: The following information can be helpful to determine why the assembly 'FastReport' could not be loaded.
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = FastReport
(Partial)
LOG: Appbase = file:///C:/VOA_APP/
LOG: Initial PrivatePath = C:\VOA_APP\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\VOA_APP\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
Has anyone else experienced this problem or have any suggestions on how I might fix it?
I have tried copying the FastReport dlls to the C:\Windows\Assembly folder, but this did not help.
Thanks!
Tom
Comments
Try to copy FastReport dlls to the Bin folder of your web app.
I was just able to resolve my problem by doing a clean and rebuild all in visual studio, and then I republished the site to my server. I'm not sure what the problem was, but it is working now. Thanks for your suggestion.
Tom