ndevriendt
Programmer
Hello,
I'm very new on sharepoint and I'm now trying to create webparts.
I've created a web part library project with one webpart. I've assiging a strong name with the sn.exe command. I have installed the dll on the server with the tool
InstallAssemblies.exe and this works fine.
Now I've added a second web part to my project. And also installed on the server with InstallAssemblies.exe, and when I try to import the second webpart (the first works still fine) I get the error that my webpart is not safe for this site. Before I have reinstalled my dll file
I've maked an uninstall with the stsadm.exe tool.
My DWP file of my second webpart looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>SiteLinks</Title>
<Description>SiteLinks Web part.</Description>
<Assembly>SiteInfo, Version=1.0.0.0, Culture=neutral,PublicKeyToken=e43b29a784e2849d</Assembly>
<TypeName>SiteInfo.SiteLinks</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
The DWP file of my first webpart that works fine looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>Welcome</Title>
<Description>WebPart1.</Description>
<Assembly>SiteInfo, Version=1.0.0.0, Culture=neutral,PublicKeyToken=e43b29a784e2849d</Assembly>
<TypeName>SiteInfo.Welcome</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
In the web.config file I have the following safecontrol tag
<SafeControl Assembly="SiteInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e43b29a784e2849d" Namespace="SiteInfo" TypeName="*" Safe="True" />
Can somebody tells me what I do wrong ?
Thanks for your time and answer
Devriendt Nico
I'm very new on sharepoint and I'm now trying to create webparts.
I've created a web part library project with one webpart. I've assiging a strong name with the sn.exe command. I have installed the dll on the server with the tool
InstallAssemblies.exe and this works fine.
Now I've added a second web part to my project. And also installed on the server with InstallAssemblies.exe, and when I try to import the second webpart (the first works still fine) I get the error that my webpart is not safe for this site. Before I have reinstalled my dll file
I've maked an uninstall with the stsadm.exe tool.
My DWP file of my second webpart looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>SiteLinks</Title>
<Description>SiteLinks Web part.</Description>
<Assembly>SiteInfo, Version=1.0.0.0, Culture=neutral,PublicKeyToken=e43b29a784e2849d</Assembly>
<TypeName>SiteInfo.SiteLinks</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
The DWP file of my first webpart that works fine looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>Welcome</Title>
<Description>WebPart1.</Description>
<Assembly>SiteInfo, Version=1.0.0.0, Culture=neutral,PublicKeyToken=e43b29a784e2849d</Assembly>
<TypeName>SiteInfo.Welcome</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
In the web.config file I have the following safecontrol tag
<SafeControl Assembly="SiteInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e43b29a784e2849d" Namespace="SiteInfo" TypeName="*" Safe="True" />
Can somebody tells me what I do wrong ?
Thanks for your time and answer
Devriendt Nico