namics SharePoint Weblog
Mit Windows SharePoint Services (WSS v3) und Microsoft Office SharePoint Server 2007 (MOSS 2007) zur professionellen eCollaboration Plattform
namics @ www.flickr.com

LINKS

  • namics Weblog
  • about:namics
  • namics Website

AKTUELLE ARTIKEL

  • Windows Server 2008 Hyper-V RC1 available
  • Custom List Form WebPart erscheint nicht (Lösung)
  • Logging in WebParts
  • Running Silverlight on Apache
  • BDC Explorer in Word 2007

KATEGORIEN

  • Business Intelligence
  • Document Management
  • Kollaboration
  • MOSS 2007
    • Berechtigungen
  • Microsoft Community
  • Office 2007
  • Silverlight
  • Tools und Applikationen
  • Virtualization
  • Visual Studio
  • Web Content Management
  • Windows Live
  • Windows Server 2008
  • Windows SharePoint Services v3
  • Workflow

ARCHIVE

  • August 2008
  • Juli 2008
  • Juni 2008
  • Mai 2008
  • April 2008
  • Februar 2008
  • November 2007
  • Oktober 2007
  • September 2007
  • Juni 2007
  • Mai 2007
  • April 2007
  • März 2007
  • Februar 2007
  • Januar 2007
  • Dezember 2006
  • November 2006
  • Oktober 2006
  • September 2006
  • August 2006

XML UND MUMBO JUMBO

  • Subscribe with Bloglines
  • Add to My Yahoo!
  • Add to Google
  • Atom Feed
  • RSS 2.0 Feed
  • Creative Commons License
    Dieses Weblog untersteht der Creative Commons Lizenz.
  • Powered by Movable Type 3.35
« April 2008 | Übersicht | Juni 2008 »
20
Mai
Windows Server 2008 Hyper-V RC1 available
gepostet von Andreas Glaser am 20.05.2008 um 21:40

Yeah... can't wait until RTM...

Hyper-V

The update "provides improvements to security, stability, performance, user experience, forward compatibility of configurations, and the programming model."

Update for Windows Server 2008 x64 Edition (KB950049)
As written in the KB article "This package includes the following items:

  • Updated version of Hyper-V technology
  • Updated version of the Hyper-V Manager console and of the Virtual Machine Connection remote connection tool for x64-based versions of Windows Server 2008
  • Updated version of the Integration Services for the following operating systems:
    • Windows Server 2008, x86-based versions and x64-based versions
    • Windows Server 2003 Service Pack 2 (SP2), x86-based versions and x64-based versions
    • Windows Vista Service Pack 1 (SP1), x86-based versions only
    • Windows XP Service Pack 3 (SP3), x86-based versions only"

Update for Windows Server 2008 (KB950049)
As written in the KB article "This package includes an updated version of the Hyper-V Manager console and the Virtual Machine Connection remote connection tool for x86-based versions of Windows Server 2008."

If you are looking for improvements over RC0 please read the post of Taylor Brown from the Hyper-V test team.

0 Kommentar(e), 0 Trackback(s)
Kommentar abgeben / anzeigen
16
Mai
Custom List Form WebPart erscheint nicht (Lösung)
gepostet von Reto Seiz am 16.05.2008 um 19:54
Hatte vor kurzem gerade ein seltsames Problem. Vielleicht erspare ich mit diesem Artikel jemandem die Suche nach der Ursache.
Beim Erstellen einer eigenen Eingabemaske für eine SharePoint Liste wollte das „Custom List Form“ nicht auf der Seite erscheinen. Der Vollständigkeit halber nochmals den Ablauf:
  • Die Seite mit dem SharePoint Designer 2007 öffnen
  • Zur Liste navigieren, „NewForm.aspx“ öffnen und mittels File > Save As… unter einem neuen Namen speichern
  • Löschen des „List Form Web Part“ • Einfügen der neuen Eingabemaske mittels Insert > SharePoint Controls > Custom List Form
  • Auf dem erscheinenden Popup die Liste mit den gewünschten Einstellungen selektieren und mit OK bestätigen  Nun erscheint der „Data Form Web Part“ auf der Seite
    (hier passierte bei mir nichts, keine Fehlermeldung und auch kein Control erschien auf der Seite)
  • In dieser Ansicht kann die Eingabemaske den eigenen Wünschen angepasst werden.
    (Felder die Ausgefüllt werden müssen nicht entfernen. Sonst kann der Benutzer das Form nicht speichern ;-)
  • Speichern

Die Lösung zu dem Problem ist einfach, aber nicht gerade Offensichtlich. Man muss die Seite mit einer URL öffnen welche in der Central Administration als „Alternate Access Mappings“ eingetragen ist. Direkt mit der IP auf den Server funktioniert also ziemlich sicher nicht. Auch der vollständige Pfad zum Rechner geht nur falls er eingetragen ist.
0 Kommentar(e), 0 Trackback(s)
Kommentar abgeben / anzeigen
16
Mai
Logging in WebParts
gepostet von Reto Seiz am 16.05.2008 um 15:00
There are several possible ways to keep track of how your WebParts are doing. Since it is in most cases not possible to debug on a live system we write messages to logfiles. The tool we most often use in our WebParts is log4net.

Log4Net is very flexible, but what if you want to use an interface to make it possible to switch the logging implementation in a later phase of your software? Without recompiling code? Well, if you asked yourself this question you came to the right spot. :-)

The solution I’m going to show is to use “Common Infrastructure Libraries for .NET”. Common Logging and Log4Net is a great team. Because log4net is very fast and supports many frameworks and common logging supports many adapters.
But enough of the talk, you came here to see code and config right? ;-)

An example with a textfile and the eventlog as a logging-target.

Your settings in the web.config:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <configSections>
    ...
    <!-- START Defining the sections -->
    <sectionGroup name="common">
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging, Version=1.2.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e" />
    </sectionGroup>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1B44E1D426115821" />
    <!-- END Defining the sections -->
  </configSections>
  ...
  <!-- START configuration of common.logging to use log4net -->
  <common>
    <logging>
      <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=AF08829B84F0328E">
        <arg key="configType" value="INLINE" />
      </factoryAdapter>
    </logging>
  </common>
  <!-- END configuration of common.logging to use log4net -->
  <!-- START configuration of log4net to use the eventlog and a rolling file -->
  <log4net debug="true">
    <!-- rolling file -->
    <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="C:\\Log4Net_Logs\\LogRoll.txt" />
      <appendToFile value="true" />
      <rollingStyle value="Size" />
      <maxSizeRollBackups value="10" />
      <maximumFileSize value="10MB" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
      </layout>
    </appender>
    <!-- eventlog -->
    <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
      <threshold value="ERROR" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="An error ocurred in the MOSS application (please check the logfile for further information):%newline%newline %message" />
      </layout>
    </appender>
    <!-- default logging config -->
    <root>
      <level value="ALL" />
      <appender-ref ref="RollingLogFileAppender" />
      <appender-ref ref="EventLogAppender" />
    </root>
  </log4net>
  <!-- END configuration of log4net to use the eventlog and a rolling file -->
  ...
</configuration>

Make sure that the webserver has the right to write to the configured destination of the logfile.


The code:

...
using Common.Logging;
...
namespace namics.SharePoint.WebPart.AwesomeWebPart
{
    public class CommonLog : Microsoft.SharePoint.WebPartPages.WebPart
    {
        ILog log = LogManager.GetLogger(typeof(AwesomeWebPart));
        ...
        protected override void Render(HtmlTextWriter writer)
        {
                // Log an debug level message
                if (log.IsDebugEnabled) log.Debug("begin render.");
                ...
        }
        ...
    }
}

Those of you who are already using log4net can see that the code with the common.logging looks like the log4net code. Of course there are many other possible combinations of frameworks and tools. This is just one of them. And in many cases using log4net directly instead of using an interface is good enough.
0 Kommentar(e), 0 Trackback(s)
Kommentar abgeben / anzeigen
12
Mai
Running Silverlight on Apache
gepostet von Andreas Glaser am 12.05.2008 um 14:34

Since a Silverlight application runs in the client´s browser you can use an Apache HTTP Server to deliver your application to the client. You can test it by yourself in a few minutes:

Get a free copy of Xampp Lite, consisting the Apache HTTP web server as well as some other software like MySQL.

German version
English version

Download the zip file and extract it to any folder you want. After that run the "setup_xampp.bat" in order to set some absolute paths to the install directory. Now you can run the „xampp-control.exe“ where you can start your web server.

Apache

Note: If you have the Internet Information Services installed you first have to stop the „World Wide Web Publishing Service".

IIS Service

Now you can deploy your silverlight application to the“ xampp\htdocs“ folder like in the picture shown below:

Deploy

After that you can browse the folder using „http://localhost/silverlight“:

Content

Note: If the Url is not working try „http://127.0.0.1/silverlight“. After opening the „TestPage.html“ Silverlight is running in your clients browser.

Silverlight

0 Kommentar(e), 0 Trackback(s)
Kommentar abgeben / anzeigen
08
Mai
BDC Explorer in Word 2007
gepostet von David Morf am 08.05.2008 um 11:18

Kürzlich habe ich mir das OBA Reference Toolkit Image heruntergeladen. Ziel ist es mir über die Funktionen und den Nutzen einen Überblick zu gewinnen.
Dabei sind mir einige Add-ins aufgefallen, welche für Word und Outlook 2007 zur Verfügung stehen.

BlogADDINS.jpg

Ich bin mir nicht sicher, ob die schon vorher verfügbar waren, aber sicherlich ein Blick wert, für diejenigen, welche sie nicht kennen.
Darunter ist mir das Business Data Catalog Add-in (Statera.BDCWordAddIn.vsto) aufgefallen, welches erlaubt, Daten über BDC im Word 2007 anzuzeigen und auch zu integrieren.

Dabei wird die jeweilige Liste mit den gewünschten Feldern erstellt. Ausgewählte Felder können direkt als Tabelle im Word integriert werden.

BlogBDCExpl.jpg


Der Vorteil liegt klar darin, dass die externen Datenquellen, welche auch im SharePoint zur Verfügung stehen, auch im Word "umfassend" aufgerufen werden können.

0 Kommentar(e), 0 Trackback(s)
Kommentar abgeben / anzeigen