G
Guest
Okay...this is my last post for the week!! I've been follwoing the examples
in BOL/MSDN and yet I'm encountering issues constantly. This one is actually
occuring when I'm in VS and trying to create the actuall script. Here are the
steps I'm taking:
1. Create a new empty VB project called Project3
2. Add a web reference to the Reporting Services web service. This succeeds.
The reference appears in my solution explorer.
3. I ADD a new item - a VB codefile.
4. I add the following code to the code file:
Imports Project3.RSWebReference
Public Shared Sub Main()
Dim rs As New ReportingService2005()
Dim items() As CatalogItem
items = rs.ListChildren("/", True)
Dim item As CatalogItem
For Each item In items
Console.WriteLine(item.Name)
Next item
End Sub
5. Intellisense picks everything up. However, when I try to debug this code,
I get the following:
'Sub Main' was not found in 'Project3'
As you can see, Sub Main IS in the project. I have also verified that Sub
Main is chosen as the Start Up Object in Project Properties.
I seriously don't get it...what am I missing??
in BOL/MSDN and yet I'm encountering issues constantly. This one is actually
occuring when I'm in VS and trying to create the actuall script. Here are the
steps I'm taking:
1. Create a new empty VB project called Project3
2. Add a web reference to the Reporting Services web service. This succeeds.
The reference appears in my solution explorer.
3. I ADD a new item - a VB codefile.
4. I add the following code to the code file:
Imports Project3.RSWebReference
Public Shared Sub Main()
Dim rs As New ReportingService2005()
Dim items() As CatalogItem
items = rs.ListChildren("/", True)
Dim item As CatalogItem
For Each item In items
Console.WriteLine(item.Name)
Next item
End Sub
5. Intellisense picks everything up. However, when I try to debug this code,
I get the following:
'Sub Main' was not found in 'Project3'
As you can see, Sub Main IS in the project. I have also verified that Sub
Main is chosen as the Start Up Object in Project Properties.
I seriously don't get it...what am I missing??