Solved

ReportViewer control (VB.NET)

Posted on 2008-10-24
2
710 Views
Last Modified: 2013-11-08
I am trying to create a web page that uses the ReportViewer control from Visual Studio 2008.
All is fine on my development machine and the report is displayed as I want. As soon as I put it onto my webserver and try to view it I get:

An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

I have read something about running ReportViewer.exe on the webserver so the relevant dlls would be in the right place!? Unfortunately this had no effect.

Thanks in advance
0
Comment
Question by:R2C
2 Comments
 
LVL 1

Accepted Solution

by:
jagwynn earned 500 total points
ID: 22800864
Check you connection string.  It sounds like the user that is used to connect to the data base does not have the correct permissions.  try changing the connection string to use basic authorization and hard code the user name and password.
0
 

Author Comment

by:R2C
ID: 22811153
Thanks very much, knew it would be something stupid
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 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