473,761 Members | 6,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sharePoint

JFB
Hi All,
I'm trying to do a simple app in windows form vb.net to connect to a
sharepoint server.

Imports Microsoft.Share Point
Overloads Sub Main(args() As String)

Dim siteCollection As New SPSite("http://Server_Name")
Dim sites As SPWebCollection = siteCollection. AllWebs
Dim site As SPWeb

For Each site In sites

Dim lists As SPListCollectio n = site.Lists

Console.WriteLi ne("Site: " + site.Name + " Lists: " +
lists.Count.ToS tring())

Next site

Console.WriteLi ne("Press ENTER to continue")
Console.ReadLin e()

End Sub 'Main

My sharepoint server is in different box so I copy microsoft.share point.dll
to my project but I'm getting this error:

An unhandled exception of type 'System.IO.File NotFoundExcepti on' occurred in
system.windows. forms.dll

Additional information: File or assembly name Microsoft.Share Point, or one
of its dependencies, was not found.

Anyone can help me with this?
Tks in advance.
JFB

Jan 30 '06 #1
0 1338

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

Similar topics

0
2281
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or recommended and b) if there is another way. I want to add the projects under the sharepoint site as I want authentication but do not want my users to have to login everytime they access a net app from within the sharepoint site. Ideally, they...
6
2149
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default companyweb sharepoint site on Microsoft SBS 2003. I've tried various suggestions I've seen in other posts but no luck. I've also tried giving every single user/group full permissions to the directory and files but still no luck. The page works...
0
3585
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from the web service. I am setting the Timeouton the webservice proxy before calling the webservice method. Iam not getting the results I expected. Below is the code andthe exception I get. ... Results results = null; try { MyWebService mws =...
3
1929
by: Robin | last post by:
I am trying to get a virtual directory ASP.Net application to work on a Windows 2003 server that has Sharepoint 2003. I have followed the Microsoft knowledgebase but the error message below still occurs. http://support.microsoft.com/default.aspx?scid=kb;en-us;828810 What other changes are required to get the virtual directory use its own web.config file? Configuration Error
15
3506
by: (PeteCresswell) | last post by:
Got a sample of MS's "Advisor Guide To Microsoft Access" in the mail today - accompanied by a sample "Advisor Guide To Microsoft SharePoint". I skimmed both, but the SharePoint explanation is too abstract - it's going right over my head. Can somebody explain, in simple/concrete terms what MS SharePoint is? -- PeteCresswell
1
4238
by: getobject | last post by:
I am building an ASP.Net site and wish to use a SharePoint to hold the information. I am trying to add an entry to a list using Sharepoint webservices and keep getting a SOAP exception. I have know its not a credential problem because I have been successful in using the GetList to bind a list to a gridview. I am running Windows Sharepoint Services 3.0 I created an empty list and wish to use the UpdateList webservice to add an item (row)...
8
2111
by: GaryDean | last post by:
I was advised by a Microsoft speaker at a local .Net conference that "SharePoint" had a lot to offer for asp.net developers. I've spent a few hours hunting down links on Sharepoint Services in Server2003 and also SharePoint Portal Server Product. Whenever I try to learn the details of what the SharePoint services have to offer for asp.net developers all roads lead to a video, recorded in 2003 that has to do with "asp.net" and sharepoint....
20
2757
by: Neil | last post by:
What is Sharepoint, and should I care?
2
1703
by: =?Utf-8?B?S2plbGw=?= | last post by:
Is this the tight place for Sharepoint issues? for example SharePoint Services 3.0 Kjell
0
1601
by: ivandatasync | last post by:
I have read about both Plone and Alfresco being considered as alternatives to Sharepoint and unfortunately they may not be enough if you require everything Sharepoint has too offer. Plone and Alfresco are both great applications but out of the box they are too focused to be complete replacements. Sharepoint is quite the Monolithic beast when it comes to both features and complexity. I have done some Sharepoint development and customization...
0
9345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9957
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.