Difference between revisions of "User:Minooz/CanTire"

From CDOT Wiki
Jump to: navigation, search
(Resources)
(Notes / Error / Challenge)
 
(19 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
:  [http://sptraining.sharepointsite.net/default.aspx Tutorial video]
 
:  [http://sptraining.sharepointsite.net/default.aspx Tutorial video]
 
: Sharepoint Guide @ \\PRD422\cl_serv\Net\sharepoint 2007\
 
: Sharepoint Guide @ \\PRD422\cl_serv\Net\sharepoint 2007\
 +
: Good Videos @ : Good Videos @ http://www.microsoft.com/click/sharepointdeveloper/
  
 
* How to create InTireNet in a development environment
 
* How to create InTireNet in a development environment
 
: \\PRD422\cl_serv\Net\InTireNet\Development Environment\How to...
 
: \\PRD422\cl_serv\Net\InTireNet\Development Environment\How to...
  
== Error / Challenge ==
+
== Notes / Error / Challenge ==
 
* [http://planview.corp.ad.ctc/planview/login/body.asp Plan view] still not working
 
* [http://planview.corp.ad.ctc/planview/login/body.asp Plan view] still not working
 +
* In Continuing Education project in Visual Studio, when I tried to open the .aspx page in the Desing mode instead of Source, it took a long time to refresh because it needed to render all the controls. '''So, never open it in Design'''
  
== Note ==
 
 
* stsadm.exe can be found here:
 
* stsadm.exe can be found here:
 
: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
 
: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
 
+
: Added to the PATH using mossAdmin
* DLLs for SharePoint can be found here:
+
* DLLs for SharePoint can be found here:(InTireNet)
 
: E:\Inetpub\WWWRoot\wss\VirtualDirectories\22223\bin
 
: E:\Inetpub\WWWRoot\wss\VirtualDirectories\22223\bin
 +
* Create a Web application
 +
: Create an empty site using the given port
 +
: Go to application Managment in 'Central Admin' While the selected web application is yours, then 'Create Site Collection' using any template and use 'mossAdmin' as the admin of the site. (Titles->MyApps, Url->/Sites/VNSuperAlert)
 +
* For deploying a solution again
 +
: Instead of retracting the solution, deletesolution from command line would work with -override option then deploy again (go to the .wsp file location, then -> stsadm -o deletesolution -name whatever.wsp -override)
 +
* Applying a change to the solution
 +
: Change something in the code (VS), then build the solution, drag and drop the created .dll file from the /bin to the GAC -> (C:\Windows\Assembly)
 +
: Restart IIS through admin
 +
: Replace the .aspx page in: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\CanTire.ContinuingEducation\ with the one in the project
 +
: When the changes are fine and need to deploy, create the .wsp file again and deploy it
 +
* To Deploy Continuing Education
 +
: Craete a web application -> use default
 +
: Create Site Collection -> name:Home, admin: mossAdmin
 +
: Run the new application -> Create -> Sites -> name:Continuing Education, url:/ContinuingEducation
 +
: Upload the site template -> ContinueEd.stp
 +
: Deploy the solution to the Central Admin
 +
* To add a default item to a list in asp.net
 +
: [http://www.4guysfromrolla.com/webtech/073101-1.shtml use item.Insert(position, value)]
 +
: Do it after DataBind()
 +
* To debug a webpart
 +
: Do the change in both .cs and .aspx pages -> e.g. ContinuingEducation.Layouts.ApplicationNew.aspx
 +
: Build the solutiom and drag the new .dll file to the GAC (Assembly)
 +
: Copy the aspx page from the project and paste it to the solution package in the Sharepoint -> e.g. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\CanTire.ContinuingEducation\
 +
: Restart IIS
 +
: Click on Debug -> Attach to process -> w3wp.exe
 +
: Run the application on IE -> the breakpoints will be hit
 +
* All the fields are created from columns of the Sharepoint application into the field.xml.
 +
* To know what is inside a .wsp file and what is it supposed to do:
 +
: change the extension of .wsp to .cab and double click -> you will see the list of files in the .wsp file
 +
: In the project in Visual Studio, click on .ddf file and you can see the process and the mapped directories.
 +
: Also manifest.xml and feature.xml will give some information.
  
 
== Resources ==
 
== Resources ==
Line 40: Line 72:
 
: Customize -> [http://www.c-sharpcorner.com/uploadfile/Chandresh.P/customize-site-action-menu-in-sharepoint/ custom actions]
 
: Customize -> [http://www.c-sharpcorner.com/uploadfile/Chandresh.P/customize-site-action-menu-in-sharepoint/ custom actions]
 
: Good Videos @ http://www.microsoft.com/click/sharepointdeveloper/
 
: Good Videos @ http://www.microsoft.com/click/sharepointdeveloper/
 +
: [http://go.microsoft.com/fwlink/?LinkID=115666 Microsoft book]
 +
: [http://sharepointconnoisseur.blogspot.com/2011/04/how-to-deploy-saved-site-template-in.html how to deploy saved site template]
 +
: [technet.microsoft.com/en-us/library/cc263231(office.12).aspx stsadm]
 +
: [http://littletalk.wordpress.com/2008/12/16/steps-to-install-wsp-file-in-stsadm/ Steps to install wsp file in stsadm] -> very good! (uninstall feature, deactivate feature...)
  
 
* '''Team Rules'''
 
* '''Team Rules'''
Line 48: Line 84:
 
: [http://www.lhotka.net/cslanet/csla20.aspx csla Definition]
 
: [http://www.lhotka.net/cslanet/csla20.aspx csla Definition]
 
: [http://brilliantfantastic.com/blog/post/30872823 brilliantFantastic!]
 
: [http://brilliantfantastic.com/blog/post/30872823 brilliantFantastic!]
 +
 +
== Documentation ==
 +
* [[User:Minooz/CanTire/Doc | CanTire Documentation]]

Latest revision as of 16:24, 16 January 2012

CanTire Internship

TODO

Tutorials

  • CSLA
Continue with Tutorials
Read Csla.pdf
csla Definition
  • VN Super Alert
Read the documentation -> TeamSite - SharedDocuments
Work on the application code from PVCS
  • Ladan - CSI
Documentation -> CSI - TeamSite
  • SharePoint
Tutorial video
Sharepoint Guide @ \\PRD422\cl_serv\Net\sharepoint 2007\
Good Videos @ : Good Videos @ http://www.microsoft.com/click/sharepointdeveloper/
  • How to create InTireNet in a development environment
\\PRD422\cl_serv\Net\InTireNet\Development Environment\How to...

Notes / Error / Challenge

  • Plan view still not working
  • In Continuing Education project in Visual Studio, when I tried to open the .aspx page in the Desing mode instead of Source, it took a long time to refresh because it needed to render all the controls. So, never open it in Design
  • stsadm.exe can be found here:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
Added to the PATH using mossAdmin
  • DLLs for SharePoint can be found here:(InTireNet)
E:\Inetpub\WWWRoot\wss\VirtualDirectories\22223\bin
  • Create a Web application
Create an empty site using the given port
Go to application Managment in 'Central Admin' While the selected web application is yours, then 'Create Site Collection' using any template and use 'mossAdmin' as the admin of the site. (Titles->MyApps, Url->/Sites/VNSuperAlert)
  • For deploying a solution again
Instead of retracting the solution, deletesolution from command line would work with -override option then deploy again (go to the .wsp file location, then -> stsadm -o deletesolution -name whatever.wsp -override)
  • Applying a change to the solution
Change something in the code (VS), then build the solution, drag and drop the created .dll file from the /bin to the GAC -> (C:\Windows\Assembly)
Restart IIS through admin
Replace the .aspx page in: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\CanTire.ContinuingEducation\ with the one in the project
When the changes are fine and need to deploy, create the .wsp file again and deploy it
  • To Deploy Continuing Education
Craete a web application -> use default
Create Site Collection -> name:Home, admin: mossAdmin
Run the new application -> Create -> Sites -> name:Continuing Education, url:/ContinuingEducation
Upload the site template -> ContinueEd.stp
Deploy the solution to the Central Admin
  • To add a default item to a list in asp.net
use item.Insert(position, value)
Do it after DataBind()
  • To debug a webpart
Do the change in both .cs and .aspx pages -> e.g. ContinuingEducation.Layouts.ApplicationNew.aspx
Build the solutiom and drag the new .dll file to the GAC (Assembly)
Copy the aspx page from the project and paste it to the solution package in the Sharepoint -> e.g. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\CanTire.ContinuingEducation\
Restart IIS
Click on Debug -> Attach to process -> w3wp.exe
Run the application on IE -> the breakpoints will be hit
  • All the fields are created from columns of the Sharepoint application into the field.xml.
  • To know what is inside a .wsp file and what is it supposed to do:
change the extension of .wsp to .cab and double click -> you will see the list of files in the .wsp file
In the project in Visual Studio, click on .ddf file and you can see the process and the mapped directories.
Also manifest.xml and feature.xml will give some information.

Resources

  • Asp.Net
Custom Controls -> Creating custom web control
  • SharePoint
Tutorial video
Sharepoint Guide @ \\PRD422\cl_serv\Net\sharepoint 2007\
Customize -> custom actions
Good Videos @ http://www.microsoft.com/click/sharepointdeveloper/
Microsoft book
how to deploy saved site template
[technet.microsoft.com/en-us/library/cc263231(office.12).aspx stsadm]
Steps to install wsp file in stsadm -> very good! (uninstall feature, deactivate feature...)
  • Team Rules
http://teams-cantire.ctc/sites/SPAppDev/Mgr/Team%20Rules/Forms/AllPages.aspx
  • CSLA
Read Csla.pdf
csla Definition
brilliantFantastic!

Documentation