Difference between revisions of "User:Minooz/CanTire/Doc"

From CDOT Wiki
Jump to: navigation, search
(Apply the Solution Package to the Dev environment)
(Apply the Solution Package to the Dev environment)
Line 34: Line 34:
 
* To be able to see the results on the web site -> http://apps-devcantire.ctc/Pages/category.aspx. And Continuing Education for instance -> http://apps-devcantire.ctc/ContinuingEducation/_layouts/viewlsts.aspx
 
* To be able to see the results on the web site -> http://apps-devcantire.ctc/Pages/category.aspx. And Continuing Education for instance -> http://apps-devcantire.ctc/ContinuingEducation/_layouts/viewlsts.aspx
 
* The steps will be: (e.g. Continuing Education)
 
* The steps will be: (e.g. Continuing Education)
# Deactivate the feature ->   Normal  0          false  false  false    EN-CA  X-NONE  X-NONE                                                                                                                                                                                                                                                                                                                                                                  stsadm –o deactivatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
+
# Deactivate the feature -> stsadm –o deactivatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
# Retract and remove the existing solution through Central Admin ->   Normal  0          false  false  false    EN-CA  X-NONE  X-NONE                                                                                                                                                                                                                                                                                                                                                                  Central Admin à Operations à Solution Management à CanTire.ContinuingEducation.wsp
+
# Retract and remove the existing solution through Central Admin -> Central Admin à Operations à Solution Management à CanTire.ContinuingEducation.wsp
# Copy the new .wsp file and add the solution again ->   Normal  0          false  false  false    EN-CA  X-NONE  X-NONE                                                                                                                                                                                                                                                                                                                                                                  stsadm –o addsolution –filename ‘PATH\TO\ CanTire.ContinuingEducation.wsp’
+
# Copy the new .wsp file and add the solution again -> stsadm –o addsolution –filename ‘PATH\TO\ CanTire.ContinuingEducation.wsp’
# Deploy the solution from the Central Admin or type in ->   Normal  0          false  false  false    EN-CA  X-NONE  X-NONE
+
# Deploy the solution from the Central Admin or type in -> stsadm –o deploysolution –name ‘CanTire.ContinuingEducation.wsp’  –allowgacdeployment –immediate –force
 
+
#Activate feature -> stsadm –o activatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
stsadm –o deploysolution –name ‘CanTire.ContinuingEducation.wsp’  –allowgacdeployment –immediate –force
+
#      IISReset
 
 
#1.      Activate feature
 
 
 
    stsadm –o activatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
 
 
 
 
# Run the application on http://apps-devcantire.ctc/ContinuingEducation/_layouts/viewlsts.aspx
 
# Run the application on http://apps-devcantire.ctc/ContinuingEducation/_layouts/viewlsts.aspx
 
# To check the email body, go to Application Configuration and change all the email field to yours, also enter your name as the manager in the application form; the result would be sent to you.
 
# To check the email body, go to Application Configuration and change all the email field to yours, also enter your name as the manager in the application form; the result would be sent to you.

Revision as of 16:58, 16 January 2012

Development Steps

Test on VM

  • 1- Create the site
  • 2- Deploy the existing Sharepoint solution to the new site.
  • 3- 'Get' the project from the PVCS
  • 4- Do the changes, build
  • 5- Copy the new .aspx page (if there is any change in this page) to the existing .aspx page of the solution package in Sharepoint -> e.g. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\CanTire.ContinuingEducation
  • 6- Drag and drop the created .dll file from the /bin to the GAC -> (C:\Windows\Assembly)
  • 7- Restart IIS from local admin account
  • 8- In order to Debug, click on Debug -> Attach to process -> w3wp.exe -> Run the application on IE -> the breakpoints will be hi
  • 9- After making sure the result is successful, Change the Solution Package (wsp):
Note that not all of these steps might be necessary, it depends on the case and errors.
1. Deactive the feature
Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\
Stsadm.exe -o deactivatefeature -filename CanTire.ContinuingEducation\feature.xml -force -ur http://servername/
2.Uninstall the feature
stsadm -o uninstallfeature -filename
3.Retract Solution
stsadm -o retractsolution
4. Add the solution
stsadm -o addsolution -filename {WSPFILENAME}
5. Deploy the solution
First, try deploying through Central Admin
stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
6. Install the feature
stsadm -o installfeature -filename {FeatureFolder}\feature.xml
7. Activate the feature
stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force

Apply the Solution Package to the Dev environment

  • Log in to the dev server -> ajcpd-mossweb01
This is where we need to delete the existing solution if any and then through the command line, we can add the solution again, redeploy, install the feature....
  1. Deactivate the feature -> stsadm –o deactivatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
  2. Retract and remove the existing solution through Central Admin -> Central Admin à Operations à Solution Management à CanTire.ContinuingEducation.wsp
  3. Copy the new .wsp file and add the solution again -> stsadm –o addsolution –filename ‘PATH\TO\ CanTire.ContinuingEducation.wsp’
  4. Deploy the solution from the Central Admin or type in -> stsadm –o deploysolution –name ‘CanTire.ContinuingEducation.wsp’ –allowgacdeployment –immediate –force
  5. Activate feature -> stsadm –o activatefeature -name CanTire.ContinuingEducation -url http://apps-devcantire.ctc/
  6. IISReset
  7. Run the application on http://apps-devcantire.ctc/ContinuingEducation/_layouts/viewlsts.aspx
  8. To check the email body, go to Application Configuration and change all the email field to yours, also enter your name as the manager in the application form; the result would be sent to you.
  • Example of Redeploying from Alena
Deactivate feature
Stsadm –o deactivatefeature –name CanTire.SharePoint.DealChange.ApprovalWorkflow.V.1.0.0.2 -url http://apps-qacantire.ctc/dealchange/
Retract and remove solution from solution store (the Central Admin à Operations à Solution Management).
Add solution
Stsadm –o addsolution –filename “path to the wsp file”
Deploy solution
Stsadm –o deploysolution –name “CanTire.SharePoint.DealChange.ApprovalWorkflow.V.1.0.0.2.wsp” –allowgacdeployment –immediate –force
Activate feature
Stsadm –o activatefeature –name CanTire.SharePoint.DealChange.ApprovalWorkflow.V.1.0.0.2 -url http://apps-qacantire.ctc/dealchange/
iisreset