Search


Thursday, January 29, 2009

Download Sharepoint SDK

http://www.microsoft.com/downloads/details.aspx?FamilyId=6D94E307-67D9-41AC-B2D6-0074D6286FA9

Overview

The Microsoft Office SharePoint Server (MOSS) 2007 SDK is designed for solution providers, independent software vendors, value-added resellers, and other developers to learn about the new Office SharePoint Server 2007 enterprise application and platform. It features conceptual and "How to" articles, sample code, and programming references. What’s New in this Release for the Microsoft Office SharePoint Server SDK
  • Installation enhancements: You now have a choice of installation path when you’re installing the SDK. Browse to your preferred folder during setup. The default installation path for the Microsoft Office SharePoint Server SDK is <%Program Files%>\2007 Office System Developer Resources\.
  • Start menu navigation: This release features a new Start menu shortcut for quick access to documentation (compiled HTML Help, or CHM for short) files and the Welcome Guide (ReadMe.htm), which is a landing page with links to all the tools and samples. In Windows Server 2003, click Start, Programs, 2007 Microsoft Office System Developer Resources, Office SharePoint Server 2007 SDK to open: MOSS 2007 Technical Articles and Visual How-Tos, Office Forms Server SDK Documentation, Office SharePoint Server SDK Documentation, Welcome Guide, Windows SharePoint Services SDK Documentation. In Windows Vista, click the Windows Vista Start button, All Programs, 2007 Microsoft Office System Developer Resources, Office SharePoint Server 2007 SDK to open: MOSS 2007 Technical Articles and Visual How-Tos, Office Forms Server SDK Documentation, Office SharePoint Server SDK Documentation, Welcome Guide, Windows SharePoint Services SDK Documentation.
  • Offline experience improvements: All of the technical articles, visual how-to articles, and book excerpts are now packaged—plus the Excel Services and Excel 2007 Windows Compute Cluster Server 2003 Job Submission Developer Guide—into one searchable CHM file. Browse offline for content published on MSDN out-of-band with the SDK. (Known issue: Several links in the MOSSSDK_TechArticles.chm and WSSSDK_TechArticles.chm do not work in a strictly offline scenario. Also, WMV file screencasts or downloads associated with articles are not packaged in the CHM, to keep the download size manageable. Workaround: Browse to the content on MSDN online; for ease-of-use, the CHM file table of contents is the same as the MSDN Library table of contents.
  • New tools and samples included with the Microsoft Office SharePoint Server 2007 SDK: Developer tools and samples for the following areas of Office SharePoint Server development (new items in bold):
    • Business Data Catalog Samples and Utilities
      • Microsoft Business Data Catalog Definition Editor
      • Sample Pluggable SSO Provider
      • WSHelloWorld Web Service
      • WSOrders Web Service
      • Excel Services User Defined Function Sample
      • WSOrders Custom Proxy Sample
      • Amazon Web Service Sample
      • AdventureWorks Metadata Samples
      • SAP Sample
    • Document Management and Content Processing Samples
      • Comment Scrub Document Converter
      • Term Replacement Document Inspector
    • Search Samples
      • Sample Protocol Handler
      • Custom Content Source
      • Custom Federated Search Web Part with a Credentials UI (also available at MSDN Code Gallery)
      • Federated Search SQL Server Connector (also available at MSDN Code Gallery)
      • Federated Search HTML to RSS Connector (also available at MSDN Code Gallery)
      • Federated Search Virtual Earth Map Connector
      • (also available at MSDN Code Gallery)
    • Records Management and Policy Samples
      • De-Duplication Router
      • Document Integrity Verifier
      • Records Center Web Service Console Application
      • Search, Collect, and Hold Tool
      • Sample Custom Barcode Generator
      • IRM Document Protector
    • Workflow Samples
      • Custom Workflow Report Query Generator
      • Custom Workflow Report XLSX Injector
      • Visual Studio Workflow Templates
      • Enterprise Content Management Workflow Activities
      • List Item Activities
      • Hello World Sequential Workflow
      • State Based Approval Workflow
      • Modification Workflow
      • Replication and Contact Selector Workflow
      • Intersystem Purchase Order
      • Confidential Approval Workflow
      • Group Approval Workflow
      • Approval Workflow Sample
      • Multi-Stage Workflow
      • Server-side Collect Signatures Workflow
http://www.microsoft.com/downloads/details.aspx?FamilyId=6D94E307-67D9-41AC-B2D6-0074D6286FA9

Monday, January 26, 2009

C# 3.0

If you are interested in C# 3.0, there is both a technical article and a Word Document with much of the detail covering:

Tuesday, January 20, 2009

Using Application block 3.1.0.0 in sharepoint

Using Application block 3.1.0.0 in sharepoint: - install application block 3.1.0.0 - put Microsoft.Practices.EnterpriseLibrary.Common.dll ,Microsoft.Practices.EnterpriseLibrary.Logging.dll, and Microsoft.Practices.ObjectBuilder.dll from C:\Program Files\Microsoft Enterprise Library 3.1 - May 2007\Bin to GAC (c:/windows/assembly) and sharepoint application bin (ex: C:\Inetpub\wwwroot\wss\VirtualDirectories\intranet.finance.com80\bin) ===================================================================================== modify web.config: add safe controls: ===================================================================================== - use "C:\Program Files\Microsoft Enterprise Library 3.1 - May 2007\Bin\EntLibConfig.exe" to modify web.config - add logging application block - in trace listerer folder, add listener (flatfile, email, database, or etc) ============= use the logger. - add following wrapper class to the infopath project. - add this line inside function to trace: MessageLogger.Log(Category.Trace);

Tuesday, January 13, 2009

Open Source Logging Tools in C#.

Open Source Logging Tools are free, open-source logging tools in C#.

AppLog
AppLog is a simple application logging utility. It is written in C#, and makes use of the ByteFX MySQL data access library.
C# Logger
The C# Logger (CSharp Logger) is designed after the log4j project by apache. It is a logging tool that can be used to write events such as debug, info, warn and error messages to the Windows event log.
C# .Net Logger
C# .Net Logger (CSharp Dot Net Logger) is an extensible .NET Logger written in C# with advanced message queuing allowing for completely asynchronous use.
log4net
log4net is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime.
Logger.NET
Logger.NET is a logging framework which enables you to include code which contains logging information.
logthis
The logthis .NET logging framework is a C# logging framework as a drop-in logging tool module for .Net applications.
LogZipper.NET
LogZipper.NET is a console application which rotates log files according to several command-line switches to allow scheduling.
NLog
NLog is a simple logging library similar in concepts to log4net, designed with simplicity and flexibility in mind.

shell execute in C#

http://www.codeproject.com/KB/shell/csdoesshell2.aspx

Monday, January 12, 2009

deployment administrator-approved infopath form templates

General deployment procedure uploading, upgrading, and removing administrator-approved form templates : http://technet.microsoft.com/en-us/library/cc262921.aspx

Tuesday, January 6, 2009

sharepoint web services lists

WSS Web Services

Web Reference URL

Administration

http://www.MyServer:Port_Number/_vti_adm/Admin.asmx

Alerts

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/alerts.asmx

Copy

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/copy.asmx

Document Workspace

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/dws.asmx

Forms

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/forms.asmx

Imaging

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/imaging.asmx

List Data Retrieval

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/dspsts.asmx

Lists

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/lists.asmx

Meetings

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/meetings.asmx

People

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/people.asmx

Permissions

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/permissions.asmx

Search

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/search.asmx

Site Data

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/sitedata.asmx

Sites

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/sites.asmx

Users and Groups

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/usergroup.asmx

Versions

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/versions.asmx

Views

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/views.asmx

Web Part Pages

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/webpartpages.asmx

Webs

http://www.MyServer/[sites/][MySite/][MySubsite/]_vti_bin/webs.asmx

How to get the full name of the user who is logged in to a asp.net website using integrated authentication

to get the full name of the user who is logged in to a asp.net website using integrated authentication need to add reference to System.DirectoryServices.dll

    private string GetFullName(string strLogin)

    {

        string str = "";

        // Parse the string to check if domain name is present.

        int idx = strLogin.IndexOf('\\');

        if (idx == -1)

        {

            idx = strLogin.IndexOf('@');

        }

 

        string strDomain;

        string strName;

 

        if (idx != -1)

        {

            strDomain = strLogin.Substring(0, idx);

            strName = strLogin.Substring(idx + 1);

        }

        else

        {

            strDomain = Environment.MachineName;

            strName = strLogin;

        }

 

        DirectoryEntry obDirEntry = null;

        try

        {

            obDirEntry = new DirectoryEntry("WinNT://" + strDomain + "/" + strName);

            System.DirectoryServices.PropertyCollection coll = obDirEntry.Properties;

            object obVal = coll["FullName"].Value;

            str = obVal.ToString();

        }

        catch (Exception ex)

        {

            str = "";

            Trace.Write(ex.Message);

        }

        return str;

    }