Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

V2 Webparts not safe

  Asked By: Varsha    Date: Nov 04    Category: Sharepoint    Views: 827

I am not sure why you are getting the event log error. I have never gotten
that before, so I don't know what to tell you about that.

For your webpart, you did a couple of things incorrectly. First your
assembly name is spswbpartv2 not mywp. Also, the full namespace is
spswbpartv2.mywp not just mywp.

Here is what the line in web.config should look like.
<SafeControl Assembly="spswbpartv2, Version=, Culture=neutral,
PublicKeyToken=c0e02f0a9944784e" Namespace="spswbpartv2.mywp" TypeName="*"
Safe="True" />

Here is what the full text listing of the DWP file should be:

<?xml version="1.0" encoding="utf-8" ?>
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>spswbpartv2, Version=, Culture=Neutral,
<Description>Web Part that displays free disk space</Description>



1 Answer Found

Answer #1    Answered By: Xiomara Blanchard     Answered On: Nov 04

Thanks for the reply, it worked with the changes u specified, thanks for the
but i am still unable to workout with the example you had given, still its
having the same error  of safe  control.
i haven't changed any code in ,
thanks any way , it was a great to see one of the features of v2 working

Didn't find what you were looking for? Find more on V2 Webparts not safe Or get search suggestion and latest updates.