10 votes
NewDwp.aspx - File Not Found when SmartPart is deployed

Description

 
I'm gettting a File Not Found error when clicking the new button in the web part gallery, the error occurs on the NewDwp.aspx page.

There does not seem to be any further information of value in the SharePoint log files.

I have to retract the SmartPart solution to be able to browse to the NewDwp.aspx page.

File Attachments


No files are attached


Comments

most recent at top (show oldest at top)
jharbieh wrote Feb 16 at 1:14 AM
The issue here seem to be related to a reference that the SmartPart is using. Looking at this through .NET Reflector, you will find that the version of the System.Web.Extensions referenced by SmartPart is 1.0.61025.0. Check to see if you have this assembly in the GAC. You may have installed ASP.NET 3.5 or upgrdaed to it, which should not be a problem at all. In anyways, you will need to make the appropriate Ajax entries in your Web.Config file then you may need to do a binding redirect for the Extensions assembly. This binding redirect entry ensures that all binding calls are redirected to new version which is not 3.5.0.0. See sample binding redirect below.

<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0" />
</dependentAssembly>

jserdone wrote Jan 9 at 3:26 AM
I just commented out the safecontrols entry of the smartpart in my web.config file. Everything worked fine after that. Maybe i'll downgrade the version at a later time

nolsen wrote Dec 16 2008 at 1:38 PM
Had the same problem. The "New" button in the "Web Part Gallery" did not work after having installed SmartPart 1.3 - even with Framework 3.5 installed. Got around the problem by installing the previous version without AJAX (version 1.2 beta): "SmartPartv3_1_2.dwp" as described in the word document "Return of the SmartPart Installation.doc".

See: http://www.codeplex.com/smartpart/Release/ProjectReleases.aspx?ReleaseId=2007

Preet wrote Aug 15 2008 at 10:33 PM
Same issue and even I have to retract Smart Part web part to make it work. But the bigger issue is I have to retract the solution from all the web applications to make things work.
Please suggest if there is allready some better solution to it as currently we cannot put AJAX to our production environment.

Regards,
Preet

jxupi wrote Jul 31 2008 at 1:39 PM
I've just installed smart part 1.3 and I've this problem, what can I do to solve it??

thanks

jshawsworld wrote Feb 26 2008 at 7:05 PM
I don't think we can use SmartPart with this problem of preventing us to add other web parts to the gallery.

We already have .NET 3.5; should I still install ASP.NET AJAX on the box?

Also releasing the source of SmartPart would be helpful.

calvinx wrote Feb 14 2008 at 4:15 PM
I had the same problem == same resolution....thanks guys

bjabram wrote Sep 20 2007 at 6:18 PM
Ensure ASP.NET Ajax is installed on the same server as SharePoint. I think this is what resolved this issue.

Bluelaser wrote Aug 16 2007 at 10:28 PM
I ran into this same issue in a fresh SharePoint installation where SmartPart was the only 3rd party addition. I think the impact should be greater than "low" since this error makes SmartPart unusable in any site where you want to add new WebParts.

bjabram wrote Aug 10 2007 at 9:34 PM
The call stack is following:
File Not Found. at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at Microsoft.SharePoint.WebPartPages.SPWebPartSerializer.GetPersonalizableProperties()
at Microsoft.SharePoint.WebPartPages.SPWebPartManager.GetEffectiveWebPartType(Type webPartType, SerializationTarget serializationTarget, Boolean ignoreSupportsAttributeMarkup)
at Microsoft.SharePoint.WebPartPages.SPWebPartManager.GetEffectiveWebPartType(Type aspWebPartType, SerializationTarget serializationTarget)
at Microsoft.SharePoint.ApplicationPages.NewDwp.Page_PreRender(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I performed a manual installation (after making sure the version number was correct - was 1.0.0.0 in documentation but needs to be 1.1.0.0 or 1.2.0.0) and tried to click "New" in the web part pages gallery. Removed references in SafeControls and New button works again.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987