Showing posts with label Sharepoint. Show all posts
Showing posts with label Sharepoint. Show all posts

Monday, March 30, 2009

MOSS 2007 Export/Import

MOSS 2007 Export/Import

- This task can be done only locally on the server machine.
- Use the user that been used for installing MOSS.
- Open the command line.
- Go to this location:
\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\

Export command:
stsadm.exe -o export -url http://SERVER_NAME -filename c:\FILE_NAME.bak -overwrite

Import Command:
stsadm.exe –o import –url http://URL –filename c:\FILE_NAME.bak

NOTE:
If you got this error: Object reference not set to an instance of an object.
You are not the administrator, login using the user that been used to install MOSS

The two sites should be the same, make sure that they have the same features. Ex: Publishing site can't be imported to team Site.

NHibernate and Sharepoint 2007

NHibernate and Sharepoint 2007

Sharepoint webpart that uses NHibernate to do Database operations.
It was a hard task, spent 2 days fixing deployment errors and assemblies dependencies.

At the end it worked :)

Make sure:
- Hibernate mapping file build action is embedded resource
- Use NHibernate.ByteCode.Castle not NHibernate.ByteCode.LinFu (I donno why!)
- hibernate.cfg.xml and NHibernate.ByteCode.Castle.dll should be in C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin
- NHibernate required libraries put them in the GAC C:\WINDOWS\assembly