Son of ....... SmartPart; Sharepoint & ASP.NET 2.0

Admittedly, I don't really know much about Sharepoint Services (WSS): My experience has been mainly in the area of ASP.NET.

All I really wanted to do was to write user controls for deployment in a Sharepoint site.

However, setting up the development environment was a real torture!

My setup is to be:

  • Windows 2003 Std. Ed.
  • SQL 2000
  • WSS 2.0 SP2
  • ASP.NET 2.0
  • SonOfSmartPart (to run user controls as webparts [http://www.smartpart.info])

For the most part, the installation of the operating system, database server and Sharepoint Services was a breeze. Hell began with ASP.NET 2.0...

Upgrading the Sharepoint website to use ASP.NET 2.0 causes all the webparts to show "Web Part Error"!

After ploughing through several posts, this was resolved by changing the trust level of the website.

Web.config:
<trust level="Full" originurl=""/>

(Note that this is probably not appropriate for a "live" site; but heck, I'm only setting up a development site...)

Whew! No more "Web Part Error"!

Next thing that happened was that all postback events generated errors (including adding new webparts, moving webparts, etc)

After ploughing through many more posts, this got resolved by disabling event validation for the website.

Web.config:
<pages EnableEventValidation="false"/>


Finally! Time to install SonOfSmartPart.....

Installation was a breeze (deja vu). The included examples worked well!

What a milestone! Major problems cleared! Hallelujah!

Started to develop my own user controls and deploy in WSS.

Oops! Another hitch! Postback with validation failed with javascript error!

Going back to the SonOfSmartPart website tells me that the WebResource.axd was "intercepted" by ISAPI filter of WSS.

To resolve this, I'll need to "add a new path" to be ignored by that filter.

  1. Login to SharePoint Central Administration site.
  2. Configure virtual server settings
  3. Define managed paths
  4. As follows:









To date, I've gone through hell with WSS but things are looking a lot brighter now :)

Comments

Popular posts from this blog

Understanding ITIL Service Management the UML way…

Apache Web Server Troubleshooting