quinta-feira, 31 de maio de 2012

Changing MOSS 2007 Machine Name


  • This same instrutction are all over the web, this is almost an  exact copy from technet.


    Change each alternate access mapping for your MOSS/WSS deployment in Central Administration:
    • Open Central Administration, "Operations" Tab, "Alternate access mappings" link
    • Modify each mapping item to reflect your newly chosen server name
  • Use stsadm.exe to invoke the "renameserver" command option:
    • Open a command prompt window
    • cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
    • stsadm -o renameserver -newservername <newname> -oldservername <oldname>
  • Rename your Server via Change Name Operation in Windows Server 2003:
    • Start Menu | Control Panel | System, "Computer Name" tab, "Change" button.
    • Input your new server name
    •  
·    
I
     SIf your machine the VM belongs to a Domain, then chang it to a WorkGroup first, after that add it again to the Domain. http://technet.microsoft.com/en-us/library/cc771844%28WS.10%29.aspx
  • Reboot the server NOW.
  • After reboot, open command prompt
    • cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
    • stsadm -o updatefarmcredentials -userlogin <domainuser> -password <password>
    • iisreset /noforce
  • Check all application pool identities in IIS, update where the old machine name is still there.

A Screencast for a Great start on SharePoint 2007 Unit Testing

A Screencast for a Great start on SharePoint 2007 Unit Testing,

http://www.screencast.com/users/jthake/folders/SharePointDevWiki.com%20Screencast/media/bb2c534d-7339-4c20-84c1-0fd6b5ad5653

Keys Points:

  • More Code
  • Use  SharePoint Guidance
  • Makes it possible for a SP Project to keep growing even when the Developer team is bound to change overtime.
  • Doesn't stop Performance issues from bad code

Cheers!

sábado, 19 de maio de 2012

Debug your WSP assemblies using Vs2008 with Sharepoint 2007



When you can't debug your assemblies you definitely must go and check this Great Blog from Doug Ware!

http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=23

Key points:

1 . No NEED to COPY PDB files to GAC!!!!!
2 .

"
Open Tools | Options.  -> Check Show all settings if needed and locate Enable Just My Code (Managed only) (UNCHECK it)

Attach to the w3wp.exe process for the instance you want to debug.

To verify that you attached the correct instance of w3wp.exe, open the Modules window by pressing CTRL-ALT-U.



"

You may need to define some Symbol paths, or even to recompile you project after these steps , to make sure everything is in sync!

Happy Debugging! :)