Skip to Content
0
Former Member
Feb 16, 2011 at 06:42 PM

targetFramework and inherits reference errors

27 Views

Since upgrading from Crystal Reports Distributable and CR2008 for VS2010 beta (version 14) to the final release (version 13), and redeploying my application, I am getting the following errors when I navigate to the website. (Note that the application runs perfectly in the development environment).

On the default aspx page - which is just a menu of hyperlinks, no viewer component - I get an Web.config error indicating that the targetFramework directive is not recognized, and I have to change:

<compiltion debug="false" strict="false" explicit="true" targetFramework="4.0">

to

<compiltion debug="false" strict="false" explicit="true">

Then the default page runs perfectly, but the subsequent viewer page reports "Could not load the assembly 'App_Web_u1d2wxho'. Make sure that it is compiled before accessing the page." The page will load if I remove the inherits tags, changing:

<%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_u1d2wxho" %>

to

<%@ page language="VB" autoeventwireup="false" %>

But when it loads, the Crystal Report Viewer is completely blank - apparently the report requested on the menu page is not being loaded into the viewer.

Any insights? Thanks in advance.