473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

An unhandled exception of type 'System.Net.WebException' occurred in system.web.services.dll

Hey guys - I'm really new to this .NET programming so please bear with
me ...

(vb.NET)
I'm trying to fill in the list contents of a combo box on the open
event of a form. this list will list all of the report from the
reporting server (sql server reporting services 2000).

to do this i have done:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.btnNewSub.Enabled = False
'we need to fill in the details of the combo box cmbReport

'this is to fill in the combo box of reports
_rs.Url = "http://SERVER_NAME/ReportServer/ReportService.asmx"

Dim items() As CatalogItem
items = _rs.ListChildren("/", True)
'populate the box now
Me.cmbReport.Items.Clear()
Dim item As CatalogItem
For Each item In items
If item.Type = ItemTypeEnum.Report Then
cmbReport.Items.Add(New ReportItem(item.Name,
item.Path))
End If
Next
cmbReport.DisplayMember = "Name"
cmbReport.ValueMember = "Path"
End Sub

ReportItem() is a private class that returns the Name and Path of the
item.

I am getting this error:
""An unhandled exception of type 'System.Net.WebException' occurred in
system.web.services.dll

Additional information: The request failed with HTTP status 401:
Unauthorized.""

Any idea how to fix this? get around it? The account that i'm using has
admin rights to every machine ( setup is as follows: IIS & SQL
Reporting Services is installed on one machine connecting to another
machine which holds the SQL database. I'm programming from my machine.)

Thanks in advance and let me know if i need to explain anymore!!
--rebekah

Sep 12 '06 #1
1 8702
Additional information: The request failed with HTTP status 401:
Unauthorized.""

Any idea how to fix this? get around it? The account that i'm using has
1. Allow anonymous access in IIS
2. Provide NetworkCredentials to the network classes.
--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------
Sep 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rafael | last post by:
Hi, I hope I can find some help for this problem IDE: Visual Studio.NET 2003 Developer Editio Language: C# Problem: "An unhandled exception of type 'System.NullReferenceException' occurred in...
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
0
by: Joe Bloggs | last post by:
I have a C# MRS application that uses the ReportingService's Render method to retrieve a byte array containing a report. The following error message occurs An unhandled exception of type...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
4
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
3
by: Anonymous | last post by:
What can cause this error from the following code? An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed:...
9
by: Supra | last post by:
i got error problem.......... An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of...
1
by: =?Utf-8?B?Wmlub24=?= | last post by:
Hello I have an ASP.NET 2 intranet application written in C#. I use Active Directory authentication and parts of the application uses AJAX. From time to time (about once every 200-300 accesses...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.