Friday, March 23, 2007

addwppack + "Version 2.0 is not compatible version"

when

stsadm.exe -o addwppack-name Web_Part_Pack_name

got:

"Version 2.0 is not compatible version", failed to deploy .cab file.

here is the solution:

create a file named stsadm.exe.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" /> <!-- update the version # once .Net v2.0 is released -->
<supportedRuntime version="v1.1.4322" /> <!-- this is the version number for .Net v1.1 -->
</startup>
</configuration>


copy it to the same folder where stsadm.exe located.

that's it.

Installation a sharedpoint website

Follows these steps:

1. Backup the website in test server with:
smigrate.exe -w http://sps_server/testsite -f c:\temp\testsite.fwp -u admin_name -pw admin_pwd


2. Create a new subsite on new sps server:
stsadm.exe -o createweb -url http://new_sps_server/new_site

3.re-store the backup to the new site:
smigrate.exe -r -w http://new_sps_server/new_site -f c:\temp\testsite.fwp -u admin_name -pw admin_pwd

and, delete subsite:

stsadm.exe -o deleteweb -url http://new_sps_server/new_site

Wednesday, March 07, 2007

server aspx file on new setup windows server 2003

if get the 404 error says page can not be found, check these two things:
1.if IIS 6.0 allow ASP.NET 2.0 ISAPI in application extension service;
2.Give NETWORK SERVICE account default permision on the folder:
c:\windows\microsoft.NET\framework\2.0\Temperary Files

that's it.