Remote Web part debugging
이 글은 원격 컴퓨터의 웹파트를 디버그하고 개발하는 방법을 소개합니다.
내용은 MSDN의 내용을 발췌하였습니다.
Developing and Debugging from a Remote Computer
To use a remote computer to develop and debug, follow these steps.
Note To follow these steps, you must have a client computer running Visual Studio .NET (Computer_A) and a server computer running Windows SharePoint Services (Server_B).
- On Server_B, share the directory that hosts the SharePoint virtual server. By default, the Windows SharePoint Services virtual server is mapped to the following directory:
local_drive:\InetPub\wwwroot
- Ensure that you have Read and Write permissions for this directory and its sub-directories.
- On Server_B, share the directory in which the Microsoft.SharePoint.dll file is located. By default, the Microsoft.SharePoint.dll file is located in the following directory:
local_drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\ISAPI
- Make sure that you have Read permission for this directory.
- On Computer_A, follow these steps:
- Click Start, point to All Programs, point to Microsoft Visual Studio .NET, and then click Microsoft Visual Studio .NET.
- On the File menu in Visual Studio .NET, click Open.
- Browse to the Web Part project that you want to debug, and then click Open.
- Right-click the project name, and then click Properties.
- In the navigation tree, double-click Configuration Properties.
- Under Outputs, verify that the value for Output Path matches the following line:
remote_drive_on_Server_B:\InetPub\WWWRoot\bin\
- In Windows Explorer, browse to the following folder:
remote_drive_on_Server_B:\InetPub\WWWRoot\bin\.
- Double-click the Web.config file.
- In the Web.config file, search for the
<SafeControls>
tag. - Verify that your assembly is listed as a Safe Control. If not, add the following line to the Safe Controls list.
<SafeControl Assembly="assembly_name, Version=assembly_version, Culture=assembly_culture, PublicKeyToken=assembly_public_key_token" Namespace="assembly_namespace" TypeName="*" Safe="True"/>
- Save and close the file.
- On Server_B, install and configure the remote debugging services.
For more information about remote debugging, visit the following MSDN Web site: Visual Studio: Setting Up Remote Debugging.
Problems Saving Output
When you debug or modify an assembly, you may receive the following error message:
Unable to replace file_name.dll after compilation.
This behavior may occur if the W3wp.exe process locks the old copy of the assembly located in the InetPub\WWWRoot\bin directory. To resolve this issue, use Task Manager to end the W3wp.exe process, recompile the assembly, and then resume the debugging process.
Conclusion
Web Parts for Windows SharePoint Services are ASP.NET server controls. Therefore, the process for debugging Web Parts is similar to the process for debugging ASP.NET server controls.
댓글
이 글 공유하기
다른 글
-
MOSS 웹파트 연결 예제
MOSS 웹파트 연결 예제
2008.05.21http://www.sharepointcustomization.com/extend.htm Microsoft Office SharePoint Server의 개발 관련된 예제나 팁 등을 제공하고있습니다. 웹파트와 웹파트 사이의 연결(Connection, Connected Web Parts)을 이용하는 예제도 확인할 수 있습니다. 아래는 위 사이트의 원문에서 발췌해온 내용이므로 위 사이트 직접 접근하셔서 보셔도 무방하겠네요~ Demos and Presentations Creating and Manipulating SharePoint Site Content, Structure, and Templates from Code By putting the WSS object model to work, a great ma… -
MOSS2007과 Community Server 사용자 DB의 통합
MOSS2007과 Community Server 사용자 DB의 통합
2007.11.23이하 문서는 MOSS 2007과 Community Server의 사용자 DataBase를 통합하는 방법을 제공한다. 기본적으로 ASP.NET SQL Membership Provider를 이용하는 방법으로 통합을 진행한다. http://msdn2.microsoft.com/en-us/library/bb892784.aspx http://blogs.msdn.com/sharepoint/ http://blogs.msdn.com/sharepoint/archive/2006/08/16/702010.aspx http://msdn2.microsoft.com/en-us/library/x28wfk74.aspx http://msdn2.microsoft.com/en-us/library/x28wfk74.aspx http://comm… -
MOSS STSADM의 명령어 목록
MOSS STSADM의 명령어 목록
2007.11.09STSADM 명령어 목록 http://technet2.microsoft.com/Office/en-us/library/a8ae94e2-0866-4790-a8f4-4a75de6e885b1033.mspx?mfr=true 그 중에 참조한 AddUser 명령어 http://technet2.microsoft.com/Office/f/?en-us/library/5aa833a2-fe8a-4d8c-9724-94a2ec5940bf1033.mspx Operation name: Adduser Description Adds a user account to the specified site collection and assigns it to the specified group or role. Use the siteadmin par… -
임지훈 - ezEKP.net 설치 및 구성 세미나
임지훈 - ezEKP.net 설치 및 구성 세미나
2007.11.08장소 : 가온아이(KAONI) 회의실 1 시간 : 10시 (20분 지연) 발표자 : 임지훈 내용 : ezEKP.net 설치 및 구성 세미나
댓글을 사용할 수 없습니다.