SharePoint Learning Essays

Source: Internet
Author: User
Tags mstsc

2011.6.16

How to help and use SharePoint Server 2007:

http://cnsh-10apl1:9929/_layouts/help.aspx?lcid=2052&cid0=MS%2EOSS%2Emanifest&tid=MS%2EOSS% 2eha10021564

1. Debugging:

(1) on vs Toolbar: Set breakpoints, tools-attach to process, open Web site (published), Start debugging.

(2) Installation tool Wspbuilderextensions1.4vs2010.exe: Set breakpoints, Web site-wspbuilder-attach to IIS Worker processes, open Web site (published), Start debugging.

(3) The Eventhandle Event processing DLL is added to the GAC before the Eventhandle can be debugged. Use tool: Osseventmanager.

Note: The debug premise is consistent with the release version and the test version. The point is not interrupted, possibly because the assembly cache, restart the computer can.

2. Backup command:

SharePoint backup command:
Iisreset/stop


:: Back up it site
:: "C:/Program files/common files/microsoft shared/web Server extensions/12/bin/stsadm"-O backup-urlhttp://localhost- FileName//192.168.1.99/dept_private/itss/itss/sharepoint/offline/80-%date:~0,10%_aa1.bak-overwrite

:: Backup Sspconfig
:: "C:/Program files/common files/microsoft shared/web Server extensions/12/bin/stsadm"-O backup-urlhttp://localhost : 81-filename
//192.168.1.99/dept_private/itss/itss/sharepoint/offline/81-%date:~0,10%_aa1.bak- Overwrite

:: Backup MySite
:: "C:/Program files/common files/microsoft shared/web Server extensions/12/bin/stsadm"-O backup-urlhttp://localhost : 82-filename
//192.168.1.99/dept_private/itss/itss/sharepoint/offline/82-%date:~0,10%_aa1.bak- Overwrite
:: Backup QA PM
"C:/Program Files/common files/microsoft shared/web Server extensions/12/bin/stsadm"-O backup-urlhttp://localhost:88 -filename D:/88-%date:~0,10%_aa1.bak-overwrite

Iisreset/start
Pause

Method Two:

Sitebackup.cmd

@for/F "tokens=1,2,3 delims=/"%%a in (' date/t ') do @set bb=%%a-%%b-%%c
@echo is backing up the site http://localhost:8080/to E:\CabinAppbak\PartyConst_SiteBak\PartyConst%bb%.bak
@ "C:\Program files\common Files\Microsoft Shared\Web Server Extensions\14\bin\stsadm.exe"-O backup-url http:// localhost:8080/-filename "E:\CabinAppbak\PartyConst_SiteBak\PartyConst%bb%_8000.bak"
@pause

Siterestore. cmd

@echo Restoring site to http://172.20.32.152:2000
@ "C:\Program files\common Files\Microsoft Shared\Web Server Extensions\12\bin\stsadm.exe"-O restore-url http:// 172.20.32.152:2000/-filename "%userprofile%\desktop\sitebak\143partyconst2011-04-18.bak"-overwrite
@pause

3.CMD command, enter c:/windows/assembly, then xcopy Gac_msil c:/temp/e
This gets the DLLs, sorted by namespace.
If you want to separate DLLs from the collection, use the Xcopy GAC c:/temp/e

4. The error of "not setting an object reference to an instance of an object" appears, typically the following reason:

1, the ViewState object is null.

2, Dateset is empty.

3, the SQL statement or datebase causes DataReader empty.

4. When declaring a string variable, the variable is applied without null value.

5, the object is not initialized with new.

6, the Session object is empty.

7, when you assign text values to the control, the value does not exist

8, when using Request.QueryString (), the acquired object does not exist, or when the value is empty, the initial value is not assigned

9, when using FindControl, the control does not exist but does not do preprocessing

10. Duplicate definitions cause an instance error that does not set an object reference to an object

5. The terminal server exceeds the maximum allowable number of connections
Mstsc-console
Mstsc/admin

6.list list hidden fields:

First, open the content Type feature of the list library: "Settings" → "List settings" → "Advanced settings" in general settings, "Allow Managing Content Types" Select Yes.

Then you go to the Settings page of the project content type (Figure 1) In the List Settings page, in the column (Figure 2), select the field you want to hide (field1), go to the Settings page, change the "column settings" to "hidden" (Figure 3), and click OK.

Figure 1

Figure 2

Figure 3

7.list list hidden fields (using tools):

Download tool: Spcamleditor1[1].1 (spcamleditor), double-click spcamleditor.exe--Open, find on the menu to open site--Enter site address--Find the name of the site to modify (iacenter)-- List name (AR)--Fields (title)--schemaxml--Add showineditform= "false" showinnewform= "false" in file, then click the Save button.

<field type= "Choice" displayname= "Site" required= "false" format= "Dropdown" fillinchoice= "false" id= "{ 71C8475A-6109-4943-B752-8D33A77B0C7A} "sourceid=" {7062cf53-2a10-47db-ada7-55ad4fc07d44} "StaticName=" Site "Name=" Site "Colname=" NVARCHAR4 "rowordinal=" 0 "showineditform=" false "showinnewform=" false "version=" 4 ">

Insert-sharepoing Control-Custom-List form-(remove toolbar) modify Newforms

8. View List Modify History:

View list history: Ar-setting-list setting-general settings-versioning settings-yes (Item version History)

Splistitem.update ();

Showineditform= "false" showinnewform= "false" >

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.