| Author |
Message |
jrmcdona
Guest
|
Posted:
Thu Jan 06, 2005 5:45 am Post subject:
webpart safecontrol error |
|
|
I have my webpart listed as a safecontrol in the web.config file and i have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as safe???
What else could cause this??
Thanks a bunch! |
|
| Back to top |
|
 |
Noble Lesmana
Guest
|
Posted:
Thu Jan 06, 2005 10:47 am Post subject:
RE: webpart safecontrol error |
|
|
Hi Dona,
Do you use any other component (ie. third-party component or component
outside your web part assembly) inside your web part ? If so, you also have
to register it as safe control.
I hope it works.
Thanks,
Noble Lesmana
"jrmcdona" wrote:
| Quote: | I have my webpart listed as a safecontrol in the web.config file and i have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as safe???
What else could cause this??
Thanks a bunch! |
|
|
| Back to top |
|
 |
Jan Tielens
Guest
|
Posted:
Thu Jan 06, 2005 12:49 pm Post subject:
Re: webpart safecontrol error |
|
|
Did you use the full assembly name (including version, culture, ...) in the
web.config AND in the dwp file?
--
____________________________________
Jan Tielens
Read my weblog: http://weblogs.asp.net/jan
"Noble Lesmana" <NobleLesmana@discussions.microsoft.com> schreef in bericht
news:4A042839-9260-4A99-8F6C-5DC857949350@microsoft.com...
| Quote: | Hi Dona,
Do you use any other component (ie. third-party component or component
outside your web part assembly) inside your web part ? If so, you also
have
to register it as safe control.
I hope it works.
Thanks,
Noble Lesmana
"jrmcdona" wrote:
I have my webpart listed as a safecontrol in the web.config file and i
have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as
safe???
What else could cause this??
Thanks a bunch! |
|
|
| Back to top |
|
 |
Gary A. Bushey [MVP]
Guest
|
Posted:
Thu Jan 06, 2005 5:45 pm Post subject:
Re: webpart safecontrol error |
|
|
Sometimes if the web part is only in the GAC you also need a copy in the
virtual server's BIN directory to avoid this message.
--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:342ACDB3-284A-4AA2-BF55-67D26C38F218@microsoft.com...
| Quote: | I have my webpart listed as a safecontrol in the web.config file and i have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as safe???
What else could cause this??
Thanks a bunch! |
|
|
| Back to top |
|
 |
jrmcdona
Guest
|
Posted:
Fri Jan 07, 2005 4:39 am Post subject:
Re: webpart safecontrol error |
|
|
Yes, I have my dll's in the BIN directory.
I also have them in my web.config as safe and in my dwp (fully qualified). I
started with a fresh web part today and getting the same error.
DWP:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" >
<Title>LiveMeetings</Title>
<Description>LiveMeetings</Description>
<Assembly>LMWebParts,Version=1.0.0.0,
Culture=neutral,PublicKeyToken=cbe265ed1d711b5d</Assembly>
<TypeName>LMWebParts.LiveMeetings</TypeName>
<!-- Specify initial values for any additional base class or custom
properties here. -->
</WebPart>
Web.Config:
<SafeControl Assembly="LMWebParts, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cbe265ed1d711b5d" Namespace="LMWebParts" TypeName="*"
Safe="True" />
<SafeControl Assembly="LMUserControls, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=fd9f69ad012be2b1" Namespace="LMUserControls"
TypeName="*" Safe="True" />
The error I get:
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.
This is very frustrating!!
Thanks for any feedback!
Jordan
"Gary A. Bushey [MVP]" wrote:
| Quote: | Sometimes if the web part is only in the GAC you also need a copy in the
virtual server's BIN directory to avoid this message.
--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:342ACDB3-284A-4AA2-BF55-67D26C38F218@microsoft.com...
I have my webpart listed as a safecontrol in the web.config file and i have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as safe???
What else could cause this??
Thanks a bunch!
|
|
|
| Back to top |
|
 |
jrmcdona
Guest
|
Posted:
Fri Jan 07, 2005 7:19 am Post subject:
Re: webpart safecontrol error |
|
|
Well, if I just avoid using the GAC altogether everything seems to work.
thanks for your help
"jrmcdona" wrote:
| Quote: | Yes, I have my dll's in the BIN directory.
I also have them in my web.config as safe and in my dwp (fully qualified). I
started with a fresh web part today and getting the same error.
DWP:
?xml version="1.0" encoding="utf-8"?
WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"
<Title>LiveMeetings</Title
<Description>LiveMeetings</Description
<Assembly>LMWebParts,Version=1.0.0.0,
Culture=neutral,PublicKeyToken=cbe265ed1d711b5d</Assembly
<TypeName>LMWebParts.LiveMeetings</TypeName
<!-- Specify initial values for any additional base class or custom
properties here. --
/WebPart
Web.Config:
SafeControl Assembly="LMWebParts, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cbe265ed1d711b5d" Namespace="LMWebParts" TypeName="*"
Safe="True" /
SafeControl Assembly="LMUserControls, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=fd9f69ad012be2b1" Namespace="LMUserControls"
TypeName="*" Safe="True" /
The error I get:
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.
This is very frustrating!!
Thanks for any feedback!
Jordan
"Gary A. Bushey [MVP]" wrote:
Sometimes if the web part is only in the GAC you also need a copy in the
virtual server's BIN directory to avoid this message.
--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:342ACDB3-284A-4AA2-BF55-67D26C38F218@microsoft.com...
I have my webpart listed as a safecontrol in the web.config file and i have
checked that is true several times. Yet, everytime I try and drag the web
part onto my portal, it tells me the web part is not registered as safe???
What else could cause this??
Thanks a bunch!
|
|
|
| Back to top |
|
 |
|
|
|
|