astensland
Programmer
I have created a very simple webpart. I have created a strong name for it as well. The dll file is under the bin directory, and I have also updated the web.config file with this:
<SafeControl Assembly="WebPartLibrary1, Version=1.0.0.0, Culture=neutral,PublicKeyToken=a4d8b78dc51a061f"
Namespace="WebPartLibrary1"
TypeName="*"
Safe="True"
/>
The .dwp file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>WebPart1</Title>
<Description>WebPart1.</Description>
<Assembly>WebPartLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a4d8b78dc51a061f</Assembly>
<TypeName>WebPartLibrary1.WebPart1</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
I have no problem importing the webpart, but when I try to use it I get the following error message:
"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."
The namespace is called WebPartLibrary1.
Anybody who can help??
<SafeControl Assembly="WebPartLibrary1, Version=1.0.0.0, Culture=neutral,PublicKeyToken=a4d8b78dc51a061f"
Namespace="WebPartLibrary1"
TypeName="*"
Safe="True"
/>
The .dwp file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>WebPart1</Title>
<Description>WebPart1.</Description>
<Assembly>WebPartLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a4d8b78dc51a061f</Assembly>
<TypeName>WebPartLibrary1.WebPart1</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
I have no problem importing the webpart, but when I try to use it I get the following error message:
"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."
The namespace is called WebPartLibrary1.
Anybody who can help??