Help for web part error
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Help for web part error

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server
Author Message
jasmine
Guest





Posted: Wed Nov 09, 2005 8:58 am    Post subject: Help for web part error Reply with quote

I am compiling my Office_Launcher.vb into dll file in another machine.
After that i copy the dll file and replace in the sharepoint server.
However, i get the error
"Web Part Error: 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.

Show Error Details
Hide Error Details

[b: 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.]
at Microsoft.SharePoint.ApplicationRuntime.e.a(Guid A_0)
at Microsoft.SharePoint.SPWebPartCollection.a(Boolean A_0, Boolean
A_1) "


The web.config file in my wwwroot directory contains the following
line:
<SafeControl Assembly="Office_Launcher" Namespace="Office_Launcher"
TypeName="*" Safe="True" />

and my Office_Laucnher.dwp is as follow:
<?xml version="1.0"?>
<!-- Web Part dwp created by InstallAssemblies.exe on 11/9/2005
10:18:10 AM -->
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>Office_Launcher, Version=1.0.2138.30987, Culture=neutral,
PublicKeyToken=null</Assembly>
<TypeName>Office_Launcher.WebPart1</TypeName>
<Title>WebPart1</Title>
</WebPart>

i already put the trust level in web.config to Full
Is there anything do i still need to do to solve this problem?

Thanks
Back to top
Gary A. Bushey [SPS MVP]
Guest





Posted: Thu Nov 10, 2005 1:50 pm    Post subject: Re: Help for web part error Reply with quote

Did you sign your DLL? I did not see any reference to the key so it does
not appear so. You would need to sign the DLL and have its key listed in
the web.config.

--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"jasmine" <tchangmian@yahoo.com.sg> wrote in message
news:1131505115.530772.93290@o13g2000cwo.googlegroups.com...
Quote:
I am compiling my Office_Launcher.vb into dll file in another machine.
After that i copy the dll file and replace in the sharepoint server.
However, i get the error
"Web Part Error: 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.

Show Error Details
Hide Error Details

[b: 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.]
at Microsoft.SharePoint.ApplicationRuntime.e.a(Guid A_0)
at Microsoft.SharePoint.SPWebPartCollection.a(Boolean A_0, Boolean
A_1) "


The web.config file in my wwwroot directory contains the following
line:
SafeControl Assembly="Office_Launcher" Namespace="Office_Launcher"
TypeName="*" Safe="True" /

and my Office_Laucnher.dwp is as follow:
?xml version="1.0"?
!-- Web Part dwp created by InstallAssemblies.exe on 11/9/2005
10:18:10 AM --
WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"
Assembly>Office_Launcher, Version=1.0.2138.30987, Culture=neutral,
PublicKeyToken=null</Assembly
TypeName>Office_Launcher.WebPart1</TypeName
Title>WebPart1</Title
/WebPart

i already put the trust level in web.config to Full
Is there anything do i still need to do to solve this problem?

Thanks
Back to top
jasmine
Guest





Posted: Fri Nov 11, 2005 1:50 pm    Post subject: Re: Help for web part error Reply with quote

Can i know how to sign the DLL?

Thanks


Gary A. Bushey [SPS MVP] wrote:
Quote:
Did you sign your DLL? I did not see any reference to the key so it does
not appear so. You would need to sign the DLL and have its key listed in
the web.config.

--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"jasmine" <tchangmian@yahoo.com.sg> wrote in message
news:1131505115.530772.93290@o13g2000cwo.googlegroups.com...
I am compiling my Office_Launcher.vb into dll file in another machine.
After that i copy the dll file and replace in the sharepoint server.
However, i get the error
"Web Part Error: 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.

Show Error Details
Hide Error Details

[b: 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.]
at Microsoft.SharePoint.ApplicationRuntime.e.a(Guid A_0)
at Microsoft.SharePoint.SPWebPartCollection.a(Boolean A_0, Boolean
A_1) "


The web.config file in my wwwroot directory contains the following
line:
SafeControl Assembly="Office_Launcher" Namespace="Office_Launcher"
TypeName="*" Safe="True" /

and my Office_Laucnher.dwp is as follow:
?xml version="1.0"?
!-- Web Part dwp created by InstallAssemblies.exe on 11/9/2005
10:18:10 AM --
WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"
Assembly>Office_Launcher, Version=1.0.2138.30987, Culture=neutral,
PublicKeyToken=null</Assembly
TypeName>Office_Launcher.WebPart1</TypeName
Title>WebPart1</Title
/WebPart

i already put the trust level in web.config to Full
Is there anything do i still need to do to solve this problem?

Thanks
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB