SharePoint – deploying a Webform
October 22, 2009 1 Comment
I am new to this new and exiting world of sharepoint, and i like it so far (c: but no pain no gain ,..
so this my expirience so far. I installed the lates version of Sharepoint designer ,.. and this is where fun beguins
One of my fist challenges was to an asp.net 2.0 webform to sharepoint and this is what i did,..
1) start runing around like GRAZZZYY,,..
2) make your asp.net code,. when it works
3) Set up your version of SharePoint to display errors, if you don’t you’l end up with nothing but “An unexpected error has occurred”
3.a) in webconfic change <SafeMode MaxControls=“200“ CallStack=“false“… to <SafeMode MaxControls=“200“ CallStack=“true“…
3.b) <customErrors mode=“Off“/>
4)Next problem is how to you add code behind to your aspxes
4.a) Build your WebPart and copy dll to your sharoint solution bin folder.
4.b) In Sharepoint designer, create your aspx page and copy your code in to it.
4.c) Change Inherits if nead to,.. remember class first then assembly.
4.d) In Webconfic add folowing
<SafeControl Assembly=”myassembly.name” Namespace=”myNAMESPACE.name” TypeName=”*” Safe=”True” /> this enabeles all your aspxes which uses this namespace for sharepoint.
4.e) In Webconfic change CallStack=”false” to CallStack=”true” in <SharePoint><SafeMode>
4.f) In Webconfic add folowing to <SafeMode><PageParserPaths>
<PageParserPath VirtualPath=”/*” CompilationMode=”Always” AllowServerSideScript=”true” IncludeSubFolders=”true” />
this enabels all event handeling for buttons and others.
and this is it ,.. You have done it ,..
by the way thanks to Will for a briliant article it was a big help ,.. i can recomend you to read it ,..
http://blogs.vertigo.com/personal/willa/Blog/Lists/Categories/Category.aspx?Name=SharePoint%202007
over and out ..
Pingback: 401 UNAUTHORIZED – error when developing a costume login for sharepoint « maanehunden’s Blog