RE: Can't print from rdlc.
- From: Herb <stullhe104@xxxxxxxxxxxxxxxx>
- Date: Fri, 18 Jul 2008 07:30:00 -0700
Steven, thanks for the suggestion. I have created a new project and
everyrthing works! But I am a little confused.
My older project and my new project have different Properties Pages! The new
one has a page of tabs labelled; Application, Compile, References, etc. The
old one has a treeView on the left with values of; References, Build,
Accessibilty, etc.
With the new project I can select Build...Publish MyNewApp... and select
"All files in the source project folder" from the Copy section. If I do this,
my new app works.
Is the difference in Properties/Property Pages because the projects were
created differently? I may have created the older project as a "Create...Web
Site" from the Start Page instead of "Create...Project" (of type ASP.NET
Application).
In any case, I will create a new project and recreate my application. I will
keep you informed.
--
stullhe104
"Steven Cheng [MSFT]" wrote:
Thanks for your followup Stullhe,.
As you said, the error message now became the following one:
================
"Server Error in '/MyProg' Application." The error refers to "Unable to
cast object of type 'System.Net.FileWebRequest' to type
'System.Net.HttpWebRequest'.
================
I'm a bit confused at this since "WebRequest" component is used for network
access and FileWebRequest is the FTP components, has your application or
pages used it? I think the web project context here may have made the
troubleshooting quite difficult. Would you consider the following steps to
isolate the issue:
1. Put aside the current problem project. Create a new empty ASP.NET web
site project and add a page to use a local report in reportviewer(not
necessaily the same report as in the problem project) and deploy it to
target server to see whether it works.
2. If a very simple local report also fails, try using a server report(if
you have any SQL Server reporting service report available for test) to see
whether you can get reportviewer control(webform) working on that target
server machine.
Also, it's important that during the test, make the page/project as simple
as possible so as not to involve other potential problems.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
-------------------
Subject: RE: Can't print from rdlc.
Date: Thu, 17 Jul 2008 10:43:02 -0700
interface
Thanks for the reply. I am familiar with the properties interface you
mention, but this is a website so I am not sure the same Properties
is there.section
I can access the Property Pages which has a References section. That
refers to the Microsoft.ReportViewer.Common and Webform, but not thecan't
ProcessingObjectModel. Although ProcessingObjectModel is in the GAC, I
seem to add a reference to it.
For some reason System.Windows.Forms is in my references. Not sure why.
Thanks,
--
stullhe104
"Rich P" wrote:
Hi Herb,
Go To Project/Properties window. Got To the Publish tab. In the middle
of this window you will see a few buttons. Click on "Application Files"
Here you should see
Microsoft.ReportViewer.Common.dll/Include/Required
Microsoft.ReportViewer.ProcessingObjectModel.dll/Include/Required
Microsoft.ReportViewer.Webform(or WinForm if a winform
application)/Include/Required
If you don't see all three of these there - then you are missing a
reference - need to go to the References tab and check these.
Then you see a "Prerequisites..." button. Makre sure .Net 2.0 is
checked and also Microsoft Visual Studio 2005 Report Viewer is checked.
Finally, go to the Solution Explorer window of your project and click on
your rdlc file. Look at the properties sheet below which will appear
when you click on your rdlc. Select Buil Action = "Content" and Copy
To Output Directory = "Copy Always"
HTH
Rich
*** Sent via Developersdex http://www.developersdex.com ***
- References:
- RE: Can't print from rdlc.
- From: Steven Cheng [MSFT]
- RE: Can't print from rdlc.
- From: Herb
- RE: Can't print from rdlc.
- From: Steven Cheng [MSFT]
- RE: Can't print from rdlc.
- From: Herb
- RE: Can't print from rdlc.
- From: Steven Cheng [MSFT]
- RE: Can't print from rdlc.
- From: Herb
- RE: Can't print from rdlc.
- From: Rich P
- RE: Can't print from rdlc.
- From: Steven Cheng [MSFT]
- RE: Can't print from rdlc.
- Prev by Date: Re: Help re RegEx
- Next by Date: Re: double
- Previous by thread: RE: Can't print from rdlc.
- Next by thread: RE: Can't print from rdlc.
- Index(es):
Relevant Pages
|