Sharepoint user group in Grand Rapids MI

The new position I recently took has me learning more WSS and MOSS.  As with other products, I’ve found the best information comes from the community.   If you have more information on MOSS / WSS in the Michigan area, feel free to contact me at steve AT iislogs.com


https://www.wmspug.org/Home/default.aspx


Steve Schofield
Microsoft MVP – IIS

How to setup and use FTP User Isolation with Active Directory

This post is targeted at helping IIS Administrators understand how to setup FTP User Isolation and Active Directory together.   There has been forum posts @ http://forums.iis.net regarding user isolation and Active Directory.  It is pretty straight forward, there are some initial configuration steps and a couple concepts to understand.


Here is the article link


Steve Schofield
Microsoft MVP – IIS

PS: There is a lot of good information on how to setup and use the FTP 7.0 service here
http://learn.iis.net/page.aspx/356/ftp-7-for-iis-70/

New site theme on www.iislogs.com, lessons learned from deployment.

For several years, I try to do something ‘geeky’ during the holidays.  This year I wanted to update the theme (and a few other things) on www.iislogs.com.  It took a couple months off / on working through tweaks.  I was able to get the new site implemented between Christmas and New Years.  Thanks to God and Steve Smith (www.aspalliance.com fame) for publishing Aspalliance SimpleCMS   I’ve wanted for several years to have a website that controls the layout in a single file and database driven.   SimpleCMS uses a HTTP module architecture where all content is stored in a database, the HTTP module retrieves the webpage from a database.  Besides the CSS file, MasterPage, web.config and some programming files in ‘/bin’ folder.  There are no other required files on disk.


If I want to update content, there is a simple web-based interface using FreeTextBox.  You may ask, why didn’t I use Community Server, Dotnetnuke or Graffiti CMS?  They are all great packages I’ve used in separate websites.  For my needs, SimpleCMS makes it easy to implement and maintain.  I didn’t need a RSS feed, post comments on articles for example.  Probably the main reason was having my own theme. I probably could skin them real easy, but a master file was easy to adjust.


Here are a few lessons learned when I was implementing the updated www.iislogs.com site.


1) Have a backup of the original site
2) Test on a local box before publishing to production
3) Add 404 / 500 error trapping to catch later obvious errors
4) Turn on error coding <customErrors> or whatever you use to log errors.
5) If you are using a urlrewrite module, urlscan make sure the module is installed on your dev / test systems.
6) Verify if your host supports remote delegation in IIS 7 with IIS manager
7) Don’t have absolute image links to external images.  Causes suspious activity in IE


Regarding point #7, we use PayPal to process orders.  On our purchase page, there were several links to external images hosted by PayPal.  When I would browse the page, the following error would be displayed.



To correct the issue, I copied the images local and update the links so they were relative.  I didn’t want someone to suspect an issue with our site, including our purchase webpage.  I didn’t get this error in FireFox 3.0.  The error was isolated to IE 7, I didn’t test in IE 6.


Some additional information about my implementation. 


1) The site is hosted by ORCS Web using Windows Server 2008 / IIS 7.0


2) IISLogs application pool uses Integrated mode, the new application pool introduced in IIS 7.0


3) I added an additional folder called AdminMySite, disabled Anonymous Authentication module and updated the web.config so the SimpleCMS administration section was secure.  I also needed to update the web.config to support AdminMySite folder.


4) Here is an article I published on getting SimpleCMS published on IIS 7


I’ve not had a chance to do a website change since running ASPFree.com, it was nice to implement things like Master Pages, HTTP modules using Integrated pipeline.  This architecture allows me to expand in the future.   The real goal of IISLogs is to market the component I wrote in 2004 (currently on version 2.0).  It’s always fun to share some tips / tricks learned.  I looked at using the MVC framework.  It seemed a little too much for my requirements.  I’ve always tried to use the latest technology so I could keep up-to-date. 


I hope you find this article useful.   And remember, if you are tired of messing with log files, misc files left over from 3rd party applications, you can use IISLogs to help manage the files.  🙂


Take care,


Steve Schofield
Microsoft MVP – IIS
 

Use AppCMD to change Request Filtering extensions

Go to Inetmgr > ServerName > Request Filtering > Filename extensions.  You can see all blocked extensions.


Open a command prompt and type


‘To allow
c:windowssystem32inetsrvappcmd set config
/section:system.webServer/security/requestFiltering -fileExtensions.[fileExtension=’.csproj’].allowed:true


‘To deny
c:windowssystem32inetsrvappcmd set config
/section:system.webServer/security/requestFiltering -fileExtensions.[fileExtension=’.csproj’].allowed:false


‘List all properties.
appcmd set config /section:system.webServer/security/requestFiltering -?
ERROR ( message:-allowDoubleEscaping
-allowHighBitCharacters
-fileExtensions.allowUnlisted
-fileExtensions.applyToWebDAV
-fileExtensions.[fileExtension=’string’].fileExtension
-fileExtensions.[fileExtension=’string’].allowed
-requestLimits.maxAllowedContentLength
-requestLimits.maxUrl
-requestLimits.maxQueryString
-requestLimits.headerLimits.[header=’string’].header
-requestLimits.headerLimits.[header=’string’].sizeLimit
-verbs.allowUnlisted
-verbs.applyToWebDAV
-verbs.[verb=’string’].verb
-verbs.[verb=’string’].allowed
-hiddenSegments.applyToWebDAV
-hiddenSegments.[segment=’string’].segment
-denyUrlSequences.[sequence=’string’].sequence
 )

Use Appcmd to set IIS compression level

Here are a few commands to set properties on IIS compression.   


‘This was run from cmd.exe
c:windowssystem32inetsrvappcmd set config -section:urlCompression /doDynamicCompression:true
c:windowssystem32inetsrvappcmd set config -section:system.webServer/httpCompression -[name=’gzip’].dynamicCompressionLevel:9
c:windowssystem32inetsrvappcmd set config /section:httpCompression -directory:E:DataIISTemporaryCompressedFiles -maxDiskSpaceUsage:100 -minFileSizeForComp:256
icacls E:DataIISTemporaryCompressedFiles /grant “NT AuthorityAuthenticated Users:(OI)(CI)(M)”


This was run from Powershell.  Note the slight syntax difference.
c:windowssystem32inetsrvappcmd set config /section:urlCompression /doDynamicCompression:true
c:windowssystem32inetsrvappcmd set config /section:system.webServer/httpCompression -[name=”‘gzip'”].dynamicCompressionLevel:9
c:windowssystem32inetsrvappcmd set config /section:httpCompression /directory:E:DataIISTemporaryCompressedFiles /maxDiskSpaceUsage:100 /minFileSizeForComp:256
icacls E:DataIISTemporaryCompressedFiles /grant “NT AuthorityAuthenticated Users:(OI)(CI)(M)”


Properties on the httpCompression section
ERROR ( message:-sendCacheHeaders
-expiresHeader
-cacheControlHeader
-directory
-doDiskSpaceLimiting
-maxDiskSpaceUsage
-minFileSizeForComp
-noCompressionForHttp10
-noCompressionForProxies
-noCompressionForRange
-staticCompressionDisableCpuUsage
-staticCompressionEnableCpuUsage
-dynamicCompressionDisableCpuUsage
-dynamicCompressionEnableCpuUsage
-staticTypes.[mimeType=’string’].mimeType
-staticTypes.[mimeType=’string’].enabled
-dynamicTypes.[mimeType=’string’].mimeType
-dynamicTypes.[mimeType=’string’].enabled
-[name=’string’].name
-[name=’string’].doStaticCompression
-[name=’string’].doDynamicCompression
-[name=’string’].dll
-[name=’string’].staticCompressionLevel
-[name=’string’].dynamicCompressionLevel
 )


Side note.  I ran into some ‘slight’ syntax issues when running appcmd in Powershell 1.0.  I needed to change the dashes “-” to slashes “/”.   I suppose we’ll look at using the Powershell provider one day,

Logging levels in Sharepoint and STSADM

While I was working on the last post.  I wondered how to set the logging via command line back to the defaults.   Here is an article I found on how to do logging via of stsadm – http://technet.microsoft.com/en-us/library/cc288075.aspx


‘This gives you the current settings
stsadm.exe -o listlogginglevels


Run this before doing any changes on a machine.  It’s always good to know the original settings before making changes.

‘This set the logging to Medium / Error.  
stsadm -o setlogginglevel -tracelevel Medium -windowslogginglevel Error


//full path
“C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12binstsadm” -o setlogginglevel -tracelevel Medium -windowslogginglevel Error

The two services listed below are in a Monitorable / Error State.  I’ll see if I can figure out the syntax for just these two.  The output listed below was from another box that the logging hasn’t been adjusted.
A) MS Search Advanced Tracing                Monitorable Error                  
B) MS Search Query Processor                 Monitorable Error       


DiagnosticsService:
  Category Name                             Trace Level Event Level           
——————————————————————————-
  Administration                            Medium      Error                 
  Backward Compatible Administration        Medium      Error                 
  Backward Compatible Site Object Model     Medium      Error                 
  Business Data                             Medium      Error                 
  Content Deployment                        Medium      Error                 
  Document Management                       Medium      Error                 
  Excel Calculation Services                Medium      Error                 
  Excel Services Administration             Medium      Error                 
  Excel Services Cache                      Medium      Error                 
  Excel Services External Data              Medium      Error                 
  Excel Services Session                    Medium      Error                 
  Excel Services Web Front End              Medium      Error                 
  Excel Web Access                          Medium      Error                 
  Excel Web Services                        Medium      Error                 
  Forms Services Administration             Medium      Error                 
  Forms Services Conversion and Deployment  Medium      Error                 
  Forms Services Data Binding               Medium      Error                 
  Forms Services Data Objects               Medium      Error                 
  Forms Services Deployment                 Medium      Error                 
  Forms Services File Open                  Medium      Error                 
  Forms Services Object Model               Medium      Error                 
  Forms Services Rendering                  Medium      Error                 
  Forms Services Runtime                    Medium      Error                 
  Forms Services Runtime                    Medium      Error                 
  Forms Services Runtime – Business Logic   Medium      Error                 
  Forms Services Runtime – Data Connections Medium      Error                 
  Forms Services Runtime – Session State    Medium      Error                 
  Forms Services Validation                 Medium      Error                 
  Group Approval Enhanced Group Management Library Medium      Error                 
  Group Approval Enhanced Group Management Pages Medium      Error                 
  Group Approval Library                    Medium      Error                 
  Group Approval Pages                      Medium      Error                 
  Group Approval Schedules                  Medium      Error                 
  Group Approval SOAP                       Medium      Error                 
  Information Policy Management             Medium      Error                 
  Knowledge Network Server                  Medium      Error                 
  Launcher Service                          Medium      Error                 
  Load Balancer Service                     Medium      Error                 
  Long running operation infrastructure     Medium      Error                 
  MCMS 2002 Migration                       Medium      Error                 
  MS Search Propagation                     Monitorable Error                 
  Office Server General                     Medium      Error                 
  Office Server Shared Services             Medium      Error                 
  Project Server – General                  Medium      Error                 
  Project Server Active Cache Enterprise Resource Load Medium      Error                 
  Project Server Active Cache Load          Medium      Error                 
  Project Server Active Cache operations    Medium      Error                 
  Project Server Active Cache Save          Medium      Error                 
  Project Server Active Directory Synchronization Medium      Error                 
  Project Server Analysis Cube Building     Medium      Error                 
  Project Server Archive, Restore           Medium      Error                 
  Project Server Calendars                  Medium      Error                 
  Project Server Global                     Medium      Error                 
  Project Server Notifications              Medium      Error                 
  Project Server Portfolio Management       Medium      Error                 
  Project Server Provisioning               Medium      Error                 
  Project Server Queue                      Medium      Error                 
  Project Server Reporting                  Medium      Error                 
  Project Server Resource                   Medium      Error                 
  Project Server Security                   Medium      Error                 
  Project Server Server-Side Events         Medium      Error                 
  Project Server Sharepoint Integration     Medium      Error                 
  Project Server Status Reports             Medium      Error                 
  Project Server Summary Resource Assignments Medium      Error                 
  Project Server Task Statusing and Updates Medium      Error                 
  Project Server Timesheet                  Medium      Error                 
  Project Server-side Project Operations    Medium      Error                 
  Project Web Access                        Medium      Error                 
  Publishing                                Medium      Error                 
  Publishing Cache                          Medium      Error                 
  Publishing Provisioning                   Medium      Error                 
  Records Center                            Medium      Error                 
  Runtime                                   Medium      Error                 
  Session State Service                     Medium      Error                 
  Setup and Upgrade                         Medium      Error                 
  SharePoint Services                       Medium      Error                 
  Site Directory                            Medium      Error                 
  Site Management                           Medium      Error                 
  SSO                                       Medium      Error                 
  User Profiles                             Medium      Error                 
  WebParts                                  Medium      Error                 
  Workflow Features                         Medium      Error                 



SPDiagnosticsService:
  Category Name                             Trace Level Event Level           
——————————————————————————-
  Backup and Restore                        Medium      Error                 
  Communication                             Medium      Error                 
  Database                                  Medium      Error                 
  E-Mail                                    Medium      Error                 
  Feature Infrastructure                    Medium      Error                 
  Fields                                    Medium      Error                 
  General                                   Medium      Error                 
  IRM                                       Medium      Error                 
  MS Search Administration                  Medium      Error                 
  MS Search Advanced Tracing                Monitorable Error                 
  MS Search Indexing                        Medium      Error                 
  MS Search Query                           Medium      Error                 
  MS Search Query Processor                 Monitorable Error                 
  Runtime                                   Medium      Error                 
  Server Help                               Medium      Error                 
  Timer                                     Medium      Error                 
  Timer Job                                 Medium      Error                 
  Topology                                  Medium      Error                 
  Unified Logging Service                   Medium      Error                 
  Upgrade                                   Medium      Error                 
  Web Controls                              Medium      Error                 
  Web Parts                                 Medium      Error                 
  Workflow Infrastructure                   Medium      Error                 



Operation completed successfully.