Create a WSS Application

Source: Internet
Author: User
ArticleDirectory
    • Add the MIME type to IIS
    • Create a web application
    • Add Windows SharePoint Services Assembly reference
Add the MIME type to IIS

Since IIS V6 disables requests to. tmp files, if you are using Visual Studio. NET version 7.0.NNNNYou need to define a MIME type in IIS before you can create a custom web application on a Sharepoint web site through the Visual Studio. net IDE. to define the MIME type, perform the following steps:

  • On the windowsStartMenu, pointAdministrative ToolsAnd clickInternet Information Services (IIS).
  • In the left pane ofMicrosoft Management Console, Expand the branches of the console tree.
  • Right-clickWeb sitesAnd clickPropertiesOn the shortcut menu that appears.
  • InWeb sites PropertiesDialog box, selectHTTP headersTab, and clickMIME types.
  • InMIME typesDialog box, clickNew.
  • InMime TypeDialog box, type. TmpInExtensionText Box, and typeCommon/TypeInMime TypeText Box.
  • ClickOKIn each dialog box until you exitWeb sites PropertiesBox.
Create a web application

Creating a web application in Visual Studio. net from a remote computer involves an extra step in the procedure required for creating a web application in Visual Studio. net when it is installed on the server that is running Windows SharePoint Services. to create a custom web application within the context of a Sharepoint deployment, perform the following steps:

  • OnFileMenu, pointNewAnd then clickProject.
  • InNew projectDialog box, selectVisual Basic ProjectsOrVisual C # ProjectsInProject typesBox, depending on which language you prefer.
  • InTemplatesBox, selectASP. NET web application.
  • InLocationBox type the following path:

    Http ://SERVER_NAME/_ Layouts/Web_application_name

    This path includes des the name of your server, the layouts directory (_ layouts), and the name of your custom web application. creating the custom application in the _ layouts directory makes the project accessible to all sites on the server.

    NoteTo create a web application on the administrative port of the deployment, type the following path: http ://SERVER_NAME:Administrative_port _#/Web_application_name

  • Click OK .

    At this point, if you are working from a remote computer,Web Access failedDialog box appears, telling you that the file path does not correspond to the URL you previusly specified inNew projectDialog Box. perform the following steps:

      • UnderWhat wocould you like to do?, Ensure thatRetry using a different file share pathIs selected and type the following path inLocationBox:

        \\SERVER_NAME\Local_drive$ \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60 \ template \ layouts \Web_application_name

        NoteType the following path to create an application on the administrative port :\\SERVER_NAME:Administrative_port _#\Local_drive$ \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60 \ template \ admin \ 1033 \Web_application_name

      • ClickOK.
Add Windows SharePoint Services Assembly reference

After creating a new project, add a reference toWindows SharePoint ServicesAssembly in order to implement intelliisense features in the Object Browser and code editor. the process for setting a reference varies, depending on whether you are using Visual Studio. net on a remote computer or on the server running Windows SharePoint Services. to add a reference to the Assembly, perform the following steps:

  • In Solution Explorer , Right-click References Node and click Add reference On the shortcut menu.

    If you are using Visual Studio. NET on the server, perform the following steps:

      • On. NetTab OfAdd referenceDialog box, selectWindows SharePoint ServicesIn the list of components, clickSelect, And then clickOK.

    If you are using Visual Studio. NET on a remote computer, perform the following steps:

      • click browse , and in the select component dialog box, navigate to the local_drive \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60 \ ISAPI folder on the server running Windows SharePoint Services. you may instead prefer to first copy Microsoft. sharepoint. DLL from this folder to a local drive on the remote computer and then open this local copy of the DLL in the select component dialog box.
      • select Microsoft. Sharepoint. dll and then click open .
      • In the Add reference dialog box, click OK .

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.