AchieveDiscussion 2.1.28  
SharePoint. Hints on register the web part as safe?
Return to AFLite forum
Showing replies 1 to 9 of 9
AuthorPostDate
Nick Wolfgang
(35 posts)
SharePoint. Hints on register the web part as safe?

The AF-Lite SharePoint Add-on installer will try and register itself as safe. If you get an error trying to add the web part, one of several things may be happening. A few things to check:

1. Make sure you're activated. If you get a 404 trying to load the activation page (http://localhost:55558), the installer was unable to find your website, most likely becuase the IIS website you selected (From the dropdown list near the end of the install) has a space in it's website name. If this is the case, you will need to fix it manually. Navigate in the command prompt to \program files\bws\af3sps\control. type InstallSPS <hostname>.

Example:
If you have a site http://sharepointsite, with the description "Sharepoint Site", you will need to run "InstallSPS sharepointsite". You can verify this worked correctly by running the activation page, or ensuring you have an exclusion path in your Sharepoint virtual server for "af3int".

2. You have not activated

3. You selected a value other than "localhost" as the host-name. You can correct this in the registry by changing HKLM/Software/BWS/SpsControl/FirmstepServer to localhost.

If you continue to have issues, please post the exact error message you receive when you try to add the web part, whether or not you can access the activation page, and the <safecontrol tag for MSSPAF in your web.config, if you can find one.
09:28:59 07 Oct 2005
 
TMiller
RE: SharePoint. Hints on register the web part as safe?

I have done all of the above correctly. When I check my sharepoint web.config I do not have a safecontrol tag for MSSPAF. What should it be?
21:57:25 13 Oct 2005
 
Nick Wolfgang
(35 posts)
RE: SharePoint. Hints on register the web part as safe?

If the safe control is not registered, you site most likely encountered an error or recieved an incorrect parameter in step 1. You can review the log at \Program files\BWS\AF3SPS\Control\InstallSPS.LOG. You may be able to spot an error, such as a server not found. It's worth noting that http:// should not be included when running the InstallSPS (see example above).

The InstallSPS script does the following automatically:

Adds the following safe control to the Web.config file in the <safecontrols> section:
<SafeControl Assembly="MSSPAF, Version=2.3.4.50926, Culture=neutral, PublicKeyToken=22f61221b7f14e80" Namespace="MSSPAF.BWS_SP" TypeName="*" Safe="True" />

Adds the MSSPAF.dll, S2.dll, Firmstep2API.dll located in \Program Files\BWS\AF3SPS\Control in the GAC. It also, copies them into the bin directory of your site.

Installs the WP pack \Program Files\BWS\AF3SPS\Control\AFSPS.cab with stsadm into your sharepoint site.

Adds an exclusion path for af3int in your SharePoint site.
10:19:32 14 Oct 2005
 
tmiller
RE: SharePoint. Hints on register the web part as safe?

Thank you! You were right, I redid it without the http:// and it installed correctly. Your detail list is great!
16:56:25 17 Oct 2005
 
JLo
RE: SharePoint. Hints on register the web part as safe?

Hi I'm having problem with AF-Lite web part in WSS the error message is "A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe."

I added the safe control to web.config in directory C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\CONFIG.

Also copied *.dll files to directory C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN
21:30:47 04 Nov 2005
 
Nick Wolfgang
(35 posts)
RE: SharePoint. Hints on register the web part as safe?

Hi JLo,

Please try the following:

1. Get your website name - this cannot be an IP address or localhost. If you are installing into the default website, type %COMPUTERNAME% in the command prompt to get the name you'll need. Otherwise, if you go to http://myserver to get to your site, use "myserver"

2. Open a command prompt, navigate to \Program Files\BWS\AF3SPS\Control

3. Type the following in the command line:
InstallSPS myserver
DO not put "http://" in front of myserver, or put it in quotes.

This should do everything you need. Make sure you've activated the product (http://localhost:55558 should show a big red "Active" status).

Please let me know if there are further difficulties.

Nick at BWS
22:27:58 04 Nov 2005
 
JLo
RE: SharePoint. Hints on register the web part as safe?

Hi Nick. Still have problem different error this time when trying to add Achieve Forms web part, "An error has occurred".

1. My website name is "SP01", WSS with SP2, https is enabled.
2. I modified InstallSPS subsititute http with https
3. Ran InstallSPS SP01

C:\Program Files\BWS\AF3SPS\Control>installSPS SP01

C:\Program Files\BWS\AF3SPS\Control>stsadm -o addwppack -force -filename "AFSPS.
cab" -url "https://SP01" 1>>InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if s2.dll 1>>InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if msspaf.dll 1>>InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if firmstep2api.dll 1>>InstallSPS.
LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if Policy.2.3.S2.dll 1>>InstallSPS
.LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if Policy.2.3.MSSPAF.dll 1>>Instal
lSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>gacutil /if Policy.2.3.Firmstep2API.dll 1>>
InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>stsadm -o addpath -url "https://SP01/AF3SPS"
-type exclusion 1>>InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>stsadm -o addpath -url "https://SP01/AF3" -t
ype exclusion 1>>InstallSPS.LOG

C:\Program Files\BWS\AF3SPS\Control>stsadm -o addpath -url "https://SP01/AF3int"
-type exclusion 1>>InstallSPS.LOG

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

4. Output of Install.LOG

afsps.cab: Deploying to https://sp01/.
Operation completed successfully.


Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Assembly successfully added to the cache

Cannot add the prefix "AF3SPS", because its name is the same as an existing prefix.


Cannot add the prefix "AF3", because its name is the same as an existing prefix.


Cannot add the prefix "AF3int", because its name is the same as an existing prefix.


License is active entil Jan-31.

Regards, JLo
00:45:46 05 Nov 2005
 
Nick Wolfgang
(35 posts)
RE: SharePoint. Hints on register the web part as safe?

Hi JLo,

It sounds like you're definately installed that this point. Are you able to browse http(s)://localhost/af3int/an/default.aspx? You'll want to log on with user name AFAdmin and the password you specified during install.

If you're not able to log in, one reason could be the hostname you specified during install. Try changing the HKLM/software/bws/SpsControl/FirmstepServer registry key to localhost rather than SP01. AFLite is set to authenticate to localhost only by default.

Please let me know if these fail to work, with any additional details you can supply.

Thanks,
Nick
19:52:16 06 Nov 2005
 
Bk
RE: SharePoint. Hints on register the web part as safe?

M not able to register my web part as safe? I copied the token correctly into the .dwp file and web.config but the problem persists.. Any sol'n plz.?
06:46:47 27 Dec 2005
 
 

Subscribe to topic and receive email alerts when topics are created: