Adding web parts errors

mgravis
Member Posts: 16
Hi Everyone
I have tried just about everything trying to get EP to run on our upcoming Nav 4.0 rollout. Everytime I drag a webpart from the web part list I get the dreaded "This part is not registered as safe for this site" error message. I have dragged the Microsoft.Navision.EmployeePortal to the \assembly area (GAC). T he public key token is a copy and paste from their to the web.config. I have also tried just leaving the .dll in the \bin directory but still no luck.
I have reinstalled the NAS front end but to no avail. I have confirmed the safe <> lines are in my web.config file. Here is a copy of the file just to be sure. (you can see the lines in the web.config below)
Other web parts I have made / downloaded and I have registered as safe work fine. Just none of the NAV EP ones work.
Any suggestions? Thanks!
<configuration>
<configSections>
<sectionGroup name="SharePoint">
<section name="SafeControls" type="Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler, Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<section name="RuntimeFilter" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartLimits" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartWorkItem" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartControls" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="SafeMode" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="OnlineLibrary" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
</configSections>
<SharePoint>
<SafeMode MaxControls="50" CallStack="true" />
<WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
<WebPartCache Storage="CacheObject" />
<WebPartWorkItem Timeout="7000" />
<WebPartControls DatasheetControlGuid="65BCBEE4-7728-41a0-97BE-14E1CAE36AAE" />
<SafeControls>
<SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" />
<SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.HtmlControls" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.GetUser, Version=1.1.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.MailingList, Version=2.1.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.SiteSearcher, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="Castle.WebParts.GoogleSearchWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37780cc265a3a117" Namespace="Castle.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="nspRSSReader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8b7efe18b995184e" Namespace="nspRSSReader" TypeName="*" Safe="True" />
<SafeControl Assembly="SmilingGoat.SharePoint.WebParts.Rss, Version=3.0.0.1, Culture=neutral, PublicKeyToken=dad40cb3cd742e40" Namespace="SmilingGoat.SharePoint.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="SmilingGoat.Syndication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dad40cb3cd742e40" Namespace="SmilingGoat.Syndication" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.Navision.EmployeePortal, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7eb48bed34e26dda" Namespace="Microsoft.Navision.EmployeePortal.WebPartLibrary" TypeName="*" Safe="True" />
</SafeControls>
<OnlineLibrary Url="http://r.office.microsoft.com/r/hlidAwsGallery" />
</SharePoint>
<system.web>
<securityPolicy>
<trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\config\wss_mediumtrust.config" />
<trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\config\wss_minimaltrust.config" />
<trustLevel name="WSS_NEP_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Config\wss_NEP_minimaltrust.config" />
</securityPolicy>
<httpHandlers>
<add verb="*" path="/_vti_bin/*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="Microsoft.SharePoint.ApplicationRuntime.SharePointHandlerFactory, Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</httpHandlers>
<customErrors mode="Off" />
<httpRuntime maxRequestLength="51200" />
<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>
<identity impersonate="true" />
<httpModules>
<clear />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
<globalization fileEncoding="utf-8" />
<compilation batch="false" debug="false" />
<trust level="WSS_NEP_Minimal" originUrl="" processRequestInApplicationTrust="false"/>
<machineKey validationKey="0E097F1BAE6D038BE40B56C2E67C5C1E9FEDD5F756D86AE9" decryptionKey="072DF08E3FF999A8343CB45E13A96F97BBBF7E3A59440374" validation="SHA1" />
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" enableEventValidation="false">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
</pages>
</system.web>
<appSettings>
<add key="PictureUnavailable" value="/_layouts/images/picture_unavailable.gif" />
<add key="LookUpImage" value="/_layouts/images/lookup.gif" />
<add key="PictureLinkImage" value="/_layouts/images/pictindicator.gif" />
<add key="UseEncryption" value="0" />
<add key="UseCompression" value="0" />
<add key="UseDebug" value="0" />
<add key="DebugPath" value="" />
<add key="JobQueues" value="FormatName:DIRECT=OS:HERA\private$\nep_request_queue" />
<add key="ReplyQueues" value="FormatName:DIRECT=OS:HERA\private$\nep_reply_queue" />
<add key="MessageTimeOut" value="120" />
<add key="WaitForReplyTimeOut" value="60" />
</appSettings>
</configuration>
I have tried just about everything trying to get EP to run on our upcoming Nav 4.0 rollout. Everytime I drag a webpart from the web part list I get the dreaded "This part is not registered as safe for this site" error message. I have dragged the Microsoft.Navision.EmployeePortal to the \assembly area (GAC). T he public key token is a copy and paste from their to the web.config. I have also tried just leaving the .dll in the \bin directory but still no luck.
I have reinstalled the NAS front end but to no avail. I have confirmed the safe <> lines are in my web.config file. Here is a copy of the file just to be sure. (you can see the lines in the web.config below)
Other web parts I have made / downloaded and I have registered as safe work fine. Just none of the NAV EP ones work.
Any suggestions? Thanks!
<configuration>
<configSections>
<sectionGroup name="SharePoint">
<section name="SafeControls" type="Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler, Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<section name="RuntimeFilter" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartLimits" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartWorkItem" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartControls" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="SafeMode" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="OnlineLibrary" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
</configSections>
<SharePoint>
<SafeMode MaxControls="50" CallStack="true" />
<WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
<WebPartCache Storage="CacheObject" />
<WebPartWorkItem Timeout="7000" />
<WebPartControls DatasheetControlGuid="65BCBEE4-7728-41a0-97BE-14E1CAE36AAE" />
<SafeControls>
<SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" />
<SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.HtmlControls" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.GetUser, Version=1.1.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.MailingList, Version=2.1.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="ADVIS.WebParts.SiteSearcher, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2fb4ce642a9762e6" Namespace="ADVIS.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="Castle.WebParts.GoogleSearchWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37780cc265a3a117" Namespace="Castle.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="nspRSSReader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8b7efe18b995184e" Namespace="nspRSSReader" TypeName="*" Safe="True" />
<SafeControl Assembly="SmilingGoat.SharePoint.WebParts.Rss, Version=3.0.0.1, Culture=neutral, PublicKeyToken=dad40cb3cd742e40" Namespace="SmilingGoat.SharePoint.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="SmilingGoat.Syndication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dad40cb3cd742e40" Namespace="SmilingGoat.Syndication" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.Navision.EmployeePortal, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7eb48bed34e26dda" Namespace="Microsoft.Navision.EmployeePortal.WebPartLibrary" TypeName="*" Safe="True" />
</SafeControls>
<OnlineLibrary Url="http://r.office.microsoft.com/r/hlidAwsGallery" />
</SharePoint>
<system.web>
<securityPolicy>
<trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\config\wss_mediumtrust.config" />
<trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\config\wss_minimaltrust.config" />
<trustLevel name="WSS_NEP_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Config\wss_NEP_minimaltrust.config" />
</securityPolicy>
<httpHandlers>
<add verb="*" path="/_vti_bin/*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="Microsoft.SharePoint.ApplicationRuntime.SharePointHandlerFactory, Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</httpHandlers>
<customErrors mode="Off" />
<httpRuntime maxRequestLength="51200" />
<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>
<identity impersonate="true" />
<httpModules>
<clear />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
<globalization fileEncoding="utf-8" />
<compilation batch="false" debug="false" />
<trust level="WSS_NEP_Minimal" originUrl="" processRequestInApplicationTrust="false"/>
<machineKey validationKey="0E097F1BAE6D038BE40B56C2E67C5C1E9FEDD5F756D86AE9" decryptionKey="072DF08E3FF999A8343CB45E13A96F97BBBF7E3A59440374" validation="SHA1" />
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" enableEventValidation="false">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
</pages>
</system.web>
<appSettings>
<add key="PictureUnavailable" value="/_layouts/images/picture_unavailable.gif" />
<add key="LookUpImage" value="/_layouts/images/lookup.gif" />
<add key="PictureLinkImage" value="/_layouts/images/pictindicator.gif" />
<add key="UseEncryption" value="0" />
<add key="UseCompression" value="0" />
<add key="UseDebug" value="0" />
<add key="DebugPath" value="" />
<add key="JobQueues" value="FormatName:DIRECT=OS:HERA\private$\nep_request_queue" />
<add key="ReplyQueues" value="FormatName:DIRECT=OS:HERA\private$\nep_reply_queue" />
<add key="MessageTimeOut" value="120" />
<add key="WaitForReplyTimeOut" value="60" />
</appSettings>
</configuration>
0
Comments
-
Hi Megravis,
I also got the same error. Can you tell me from where i will get the Navision assemblies? It is not available in assemblies folder.
Please suggest me in this regards
Varun0 -
the assemblies are on the Navision CD.
\Additional Interfaces\Employee Portal\program files\Microsoft Business Solutions-Navision\Employee Portal\WebPartLibraryCab.cab
(it gets extracted automatically when you install it)0 -
Hi Mgravis,
What I did, I create safecontrol assemblies in Web.Comfig File and copy microsoft.navision.employeeportal.dll into C:\Inetpub\wwwroot\Bin. But the error is still same. Are you able to find some solution?0 -
Still no solution. Try putting your file in c:\windows\assembly and see if that helps.
also do a IISreset (or reboot)0 -
Hi Mgravis
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN>stsa
dm.exe -o addwppack -filename "c:\program files\microsoft business solutions-nav
ision\employee portal\webpartlibrarycab.cab"
I run This command. It shows deploy successfully. but when I move to sharepoint site. It shows that Required Permission cannot be acquired.
I am getting mad.0 -
Hi
Have you find some solution? I changed the trust level to "Full" from "wss_minimal" but the problem remain the same.
Looking for ur reply.0 -
Still no solution. I am awaiting for a new license file for Navision to allow me to setup the Key management. It turns out the Cronus database license file would allow me to access the setup within Nav 4, but not our license file.
Are you using C/ Side or SQL? Also what version of Nav? ServicePack Level?
What is your startup parameter for NAS?
What is the error in the event log on the server?
The error I am getting (still) when I drag the sample web part to the page is (in the event viewer for the server)
Failed to locate the assembly in the SafeControl assembly paths.0 -
Hi Mgravis
You can do one thing Change the trust level="Full" from trust level="WSS_Minimal" in web.config file and then pass command line argument.
By this means I get the success of deploy navision web parts into sharepoint site.
Just try that and inform me on this. because i am facing next level errors.0 -
Hi
I am able to see the web part into sharepoint site. But when I drag and drop those part into the sharepoint site. It gives me error
The "DetailPart" Web Part appears to be causing a problem.
Web Parts Maintenance Page: If you have permission, you can use this page to temporarily disable Web Parts or remove personal settings. For more information, contact your site administrator.
Troubleshoot issues with Windows SharePoint Services.
Does anyone face this error before?0 -
The error you are seeing is because something in your detail web part caused an exception. You will have to examine the code you created in the detailwebpart for errors.0
-
This is simply deploying the web parts into sharepoint site. I haven't done any coding in that. I think I miss few steps.
Any suggestion will be highly appriciated.0 -
I just noticed I have .NET 2.0 installed. (ASP.NET 2.0)
Does this version even work? or do i have to uninstall everything (or just .NET 2.0) and reinstall 1.1 ?
Thanks
Mike0 -
Hi Mgravis,
Sharepoint 2.0 is not compatible with ASP.net 2.0. ASP.NET 1.1 is installed when you install IIS. You can go to iis-> Web site folder (go to xyz site) properties ASP.net tab version is mentioned you can select anyone.
Please suggest me the above mention error is still there.0 -
In case anyone else runs into this problem, we installed NAS on a new fresh server and the web parts added/ worked fine. (Even Microsoft couldn't figure it out). We were not able to re-install on our live server since it was in use all the time.0
-
I have reinstalled the NAS front end but to no avail. I have confirmed the safe <> lines are in my web.config file. Here is a copy of the file just to be sure. (you can see the lines in the web.config below)
Other web parts I have made / downloaded and I have registered as safe work fine. Just none of the NAV EP ones work.
Any suggestions? Thanks!0 -
Are you using C/ Side or SQL? Also what version of Nav? ServicePack Level?
What is your startup parameter for NAS?
What is the error in the event log on the server?
The error I am getting (still) when I drag the sample web part to the page is (in the event viewer for the server)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions