Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Updating a sharepoint site from web application in .Net

Updating a sharepoint site from web application in .Net

Scheduled Pinned Locked Moved SharePoint
csharpasp-netsharepointxmlhelp
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajesh Khubchandani
    wrote on last edited by
    #1

    I have a requirement of updating a document libraray or a web part with certain infomration from my asp.net web applicaiton. I tried finding out the way but couldnt get anything on the web. One artical available says that I need to user Microsoft.SharePoint.dll into my asp.net web application to do so. but when i tried downloading this dll from microsoft site, an xml file is being downloaded and not dll. can somebody please help me in this regard asap. Thanking you in anticipation and quick reply.

    Regards, Rajesh Khubchandani

    Y C 2 Replies Last reply
    0
    • R Rajesh Khubchandani

      I have a requirement of updating a document libraray or a web part with certain infomration from my asp.net web applicaiton. I tried finding out the way but couldnt get anything on the web. One artical available says that I need to user Microsoft.SharePoint.dll into my asp.net web application to do so. but when i tried downloading this dll from microsoft site, an xml file is being downloaded and not dll. can somebody please help me in this regard asap. Thanking you in anticipation and quick reply.

      Regards, Rajesh Khubchandani

      Y Offline
      Y Offline
      yuanyuyuyu
      wrote on last edited by
      #2

      Microsoft.SharePoint.dll is at your system disk for examlpe :C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI you can find Microsoft.SharePoint.dll at there

      R 1 Reply Last reply
      0
      • Y yuanyuyuyu

        Microsoft.SharePoint.dll is at your system disk for examlpe :C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI you can find Microsoft.SharePoint.dll at there

        R Offline
        R Offline
        Rajesh Khubchandani
        wrote on last edited by
        #3

        Hey, Thanks for the reply but I double checked it the Microsoft.SharePoint.dll is not available. just to inform you that i havent installed sharepoint on my machine. I am sure there must be someway or the other to interact with SharePoint site thru web application of .Net which i am not able to find out till now.... If somebody can tell me ..it will be of great help.

        Regards, Rajesh Khubchandani

        H P 2 Replies Last reply
        0
        • R Rajesh Khubchandani

          Hey, Thanks for the reply but I double checked it the Microsoft.SharePoint.dll is not available. just to inform you that i havent installed sharepoint on my machine. I am sure there must be someway or the other to interact with SharePoint site thru web application of .Net which i am not able to find out till now.... If somebody can tell me ..it will be of great help.

          Regards, Rajesh Khubchandani

          H Offline
          H Offline
          Hulicat
          wrote on last edited by
          #4

          If you're going to be updating a doc library or list than there is a SPS environment available to you? Can't you or someone else copy the DLL?

          Regards, Hulicat

          1 Reply Last reply
          0
          • R Rajesh Khubchandani

            Hey, Thanks for the reply but I double checked it the Microsoft.SharePoint.dll is not available. just to inform you that i havent installed sharepoint on my machine. I am sure there must be someway or the other to interact with SharePoint site thru web application of .Net which i am not able to find out till now.... If somebody can tell me ..it will be of great help.

            Regards, Rajesh Khubchandani

            P Offline
            P Offline
            Pawan Jajoo
            wrote on last edited by
            #5

            You can get the Microsoft.SharePoint.dll from the machine where SharePoint is installed. Then you need to add the reference of that dll into your ASP.NET application. But you won't be able to debug your code without SharePoint instance.

            Y A 2 Replies Last reply
            0
            • P Pawan Jajoo

              You can get the Microsoft.SharePoint.dll from the machine where SharePoint is installed. Then you need to add the reference of that dll into your ASP.NET application. But you won't be able to debug your code without SharePoint instance.

              Y Offline
              Y Offline
              yuanyuyuyu
              wrote on last edited by
              #6

              it is right! and you must deploy your application on MOSS machine

              1 Reply Last reply
              0
              • R Rajesh Khubchandani

                I have a requirement of updating a document libraray or a web part with certain infomration from my asp.net web applicaiton. I tried finding out the way but couldnt get anything on the web. One artical available says that I need to user Microsoft.SharePoint.dll into my asp.net web application to do so. but when i tried downloading this dll from microsoft site, an xml file is being downloaded and not dll. can somebody please help me in this regard asap. Thanking you in anticipation and quick reply.

                Regards, Rajesh Khubchandani

                C Offline
                C Offline
                Chak
                wrote on last edited by
                #7

                Here is my approach Create a Webservice proxy in your machine to Use the standard OOTB Sharepoint Web service to update a document library or web part http://www.crsw.com/mark/sharepoint/Wiki Pages/SharePoint Web Services.aspx or Write your Webservice in the MOSS Server to update the MOSS site using the Sharepoint DOM Object If you use your custom web service you may not need sharepoint dll in your machine. Not sure about the standard web service chak

                Chakrapani Ramachandran

                1 Reply Last reply
                0
                • P Pawan Jajoo

                  You can get the Microsoft.SharePoint.dll from the machine where SharePoint is installed. Then you need to add the reference of that dll into your ASP.NET application. But you won't be able to debug your code without SharePoint instance.

                  A Offline
                  A Offline
                  Alain Lord
                  wrote on last edited by
                  #8

                  Hi, Does your .NET application is running under the same physical server as your SharePoint site? If not, you can use SharePoint Web Services to achieve some basic functions (working with librairies, etc.) but I'm not sure you'll be able to work at a web part level; you may have to write your own web service that will wrap your actions using the SharePoint object model. This web service needs to be deployed on the same IIS server as SharePoint. Even if you have access to the Microsoft.SharePoint dll, if you need remote access, it will not help you in this scenario. This DLL usually runs within a SharePoint server (or farm). Regards, Alain Lord MVP SharePoint Server SharePoint Quebec User Group Lead

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups