Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported.

SharePoint 2007 custom (VS 2008) solution is upgraded to SharePoint 2013 using (VS 2012). I followed this approach.
I had created new empty project (solution) in SharePoint 2013 using (VS 2012) compiled and deployed successfully. All safe controls are registered in the web.config file. After deploying solution i Restarted IIS also, still getting this error. How to resolve
Error
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. Correlation ID: 5d217c9c-1827-7083-80cd-e095a30befee.
Show Error Details
Hide Error Details
[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Boolean isAppWeb, Guid guid, Guid solutionId, Nullable`1 solutionWebId, String assemblyFullName, String typeFullName, Boolean throwIfNotSafe)
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
<menu class="ms-hide" id="MSOMenu_WebPartMenu"><ie:menuitem id="MSOMenu_Minimize" text="Minimize" title="Collapse this web part." type="option"></ie:menuitem><ie:menuitem
id="MSOMenu_Restore" text="Restore" title="Expand this web part." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Close" text="Close" title="Close this Web Part. You can still
find it under closed Web Parts section in the insert ribbon. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/DelItem.gif" id="MSOMenu_Delete" text="Delete"
title="Delete this Web Part from the page. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/EditItem.gif"
id="MSOMenu_Edit" text="Edit Web Part" title="Change properties of this shared Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Connections"
text="Connections" title="Show connections options for this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem
id="MSOMenu_Export" text="Export..." title="Export this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/HelpIcon.gif" id="MSOMenu_Help"
style="display:none;" text="Help" type="option"></ie:menuitem> </menu>        

Hi Ashok,
According to your description, my understanding is that you got an error after you re-built a SharePoint 2007 solution with VS2012, and deployed it.
Make sure the Namespace and Type Name are consistent across all files where indicated. Also with matching case sensitivity. Verify web.config file and assembly in GAC or virtual directory bin folder in post deployment.
More information, please refer to the link below:
http://roykimsharepoint.wordpress.com/2013/04/27/classic-web-part-errors/
Here is a similar post for you to take a look at:
http://stackoverflow.com/questions/1689707/sharepoint-web-part-type-could-not-be-found-registered-as-safe
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support

Similar Messages

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

    We have an SharePoint services 3.0 installation that uses custom web parts on 100s of subsites.  The custom web parts on any website is presenting this error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.
    This past weekend we decided to create a new database server and migrate the databases to the new server in an effort to retire an old box. 
    INitially we attempted to go through the configuration wizard which didnt do anything but add a new database server to our farm.  What we have done is remove the new database server from the farm and use an alias on the SP server to continue to use
    the same name but actually get its data from the new database server.
    Everything works with the site except these custom webparts. 
    Any thoughts on where to go to first, should i redeploy what i think are the webparts from VS 2005 (solutions are VS 2005 slns.)? 
    Tony Spaulding

    You need to make Safe Control enteries in your web.config for the particular web application.
    Open web.config
    Locate the SafeControls Tag
    Make a safe control entry
    <SafeControl Assembly="Assembly name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d8eb6481d8b4beec" Namespace="your webpart namespace" TypeName="*" Safe="True" />
    In order to find the assembly details, Open the GAC. Right click on your dll and then click properties.

  • A webpart or web form control on this page cannot be displayed or imported.The type could not be found or it is not registered as safe.

    Hi,
    After moving my files from SP 2010 to SP 2013 , for all my web parts i am getting A webpart or web form control on this page cannot be displayed or imported.The type could not be found or it is not registered as safe. error. I checked web.config files
    and they are there as safe control and trust level is also full. 
    These webparts work in 2010.
    Do i need to tweak something in code or distributed cache to make this thing work? The errors i see are
    Error importing WebPart. Assembly  c , Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29, TypeName. C. A Web Part or Web Form Control on this Page cannot be displayed or imported. The type c Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29
    could not be found or it is not registered as safe.
    Getting Error Message for Exception Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type C Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29
    could not be found or it is not registered as safe.    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)    
     at Microsoft.SharePoint.WebPartPages.WebPartGalleryItemBase.InstantiateFromXml(XmlReader reader)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.SiteWebPartGalleryProvider.SiteWebPartGalleryItem.Instantiate()    
     at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPartGalleryItem item, String wpid)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    An error occurred while attempting to add the gallery item [Custom] c to the page. The error was: Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The
    type c Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29 could not be found or it is not registered as safe.    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)    
     at Microsoft.SharePoint.WebPartPages.WebPartGalleryItemBase.InstantiateFromXml(XmlReader reader)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.SiteWebPartGalleryProvider.SiteWebPartGalleryItem.Instantiate()    
     at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPartGalleryItem item, String wpid)    
    Adit

    Hi Adit,
    According to your description, my understanding is that the error occurred when you deployed the .wsp files to SharePoint 2013.
    I recommend to check if all the assemblies are put into the BIN and GAC.
    If above cannot work, you can check the troubleshooting steps in the link below:
    http://www.bluedoglimited.com/SharePointThoughts/Lists/Posts/Post.aspx?ID=189
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • This page cannot be displayed - web connectivity problem

    Just purchased an HP laptop with Windows 8 and IE 10.
    I am connecting to my wireless connection because I can login and use Yahoo messenger, but cannot access any websites.  When open IE, get the error:  This page cannot be displayed. 
    There is an option to Fix Connection Issues - tried this and get the following results:
    Problem with wireless adaptor or access point  (not fixed)
    Your computer appears to be correctly configured, but the device or resource (www.msn.com) is not responding.
    Searched Google and there was a suggestion to flush the dns using command:  ipconfig \flushdns.  Did this, rebooted and then the home website does come up (www.msn.com).  However, if I click any link on the site, I then get back to the same 'This page cannot be displayed' message.
    Anyone else having this same issue or have any suggestions for resolving? 
    Thanks

    I'm sorry your new laptop isn't working! I think I have some solutions for you and hopefully resolve your issue quickly.
    (Make sure your time and date are correct!)
    First, reset your router. This is done by unplugging the power from your router and modem. Once ALL the lights on both are out, wait a few seconds. Plug the modem back in, wait for the lights to come on, then the router. Give it time to access the device and assign IP addresses (this takes up to 4 minutes with some models). Once completed, try to reconnect using your HP laptop.
    If that does not work, manually reset your IP address by using the command prompt (search for it using the search option on the right menu),
    ipconfig /release
    ipconfig /renew
    This should flush the IP address. You have already reset the DNS, and you may do so again just to clear everything.
    If that still does not work, hook the Ethernet cable directly into your laptop and see if it can get online. If it does, then it is a wireless connection issue and you should either return it OR have Geek Squad take a look. If it doesn't work, then either your router will NOT assign an IP address properly due to the computer having the same IP or Name as another computer on your network, or the computer could have a winsoc issue. In this case, you would have to restore the computer or
    go to :
    microsoft.com/fixit
    And use there fix. Download it on another computer, burn to DVD/CD or drop it to a flash drive, then use it on the computer giving you the issue.
    Let me know if any of these options work!
    - Disclaimer: While Agent Bender is currently employed at GeekSquad, ALL posts made by Agent Bender are her personal opinions, and do not reflect the opinions or policies of Best Buy or GeekSquad. -

  • "This page cannot be displayed error"

    When I attempt to use the preview site feature, I am getting a "This page cannot be displayed smate sure the web address http//### is correct" error. Last night, I tried the feature and while it showed the page it only showed an earlier preview, none of my updates were visible. I'm thinking the two are related (Using Windows 8). Can anyone here give me a hand? Thank you in advance for your help.

    I'm new to Muse and was having this problem as well. I came across this forum while searching for a solution. I solved my problem by opening internet explorer, going to the menu bar then Tools>Internet options>Security. In the Security panel I unchecked the box for Enable protected mode(require restarting internet explorer). This worked for me. I then turned the checkbox back on after I was done previewing my page. I'll just have to remember to do this while previewing my sites. I do have additional internet security so I'm not sure if I can leave this box unchecked all the time.

  • LYNC 2013 control panel error: this page cannot be displayed

    Dear sir,
    Now i am suffering with the lync 2013 control panel problem, i cannot open it and got the error "This page can't be displayed" as below screenshot shows,
    I've tried some ways, but still same problem
    1. Reflush the dns, checked the A record and SRV record of the FE are normally.
    2. checked the IIS and also cannot find any problem.
    3, reboot the FE server/IIS, and AD.
    4. i can open the console page normally via web :https://localhost/cscp
    5. i can ping the FE server domain name and return the right IP info.

    Hi TECH-Tommy,
    The certificate is under “Personal” store.
    In addition, can you open the page via
    https://admin.domain.com ?
    Also please try to clear IE cache and treat the FQDNs for admin, pool or FE server name as trusted zone.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Cannot download adobe pg..error "this page cannot be displayed" --web address is somehow wrong

    company adobe endst cannot be printed....keep getting "this page cannot be displayed"
    trouble shooting show connection problem ..with no details
    we have reloaded adobe reader....still cannot print  adobe page...kick out for address?

    I cannot understand a word of what you are writing; can you explain that a little bit more clearly?

  • XML page cannot be displayed - Servlet error

    Hi,
    I am trying to extract XML data from a source using a servlet.But i am getting this error when i run my servlet in IE :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The download of the specified resource has failed. Error processing resource 'http://serverA.h.c.com:9300/p2pd/cog...
    </dataset>
    Can someone please guide me why i am getting this error? Here is the servlet code that i am using :
    package com.cognos.demo;
    import javax.servlet.http.*;
    import java.io.*;
    import com.cognos.developer.schemas.bibus._3.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class XMLGenerator extends  HttpServlet
         //Logging information goes here
          public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              response.setContentType ("text/html;charset=utf-8");
              response.setCharacterEncoding("utf-8");
              String xml = null;
              RunReport reportRunner= new RunReport();
              CRNConnect connect=new CRNConnect();
              String url="http://serverA.h.c.com:9300/p2pd/servlet/dispatch";
              String nameSpace="ADS_NS";
              String uid="cognos";
              String pwd="abcd45";
              Logon sessionLogon = null;
              int REP_XML=1;
              try {
              connect.connectToCognosServer(url);
              catch (Exception e)
                   e.printStackTrace();
                   //System.out.println("Not able to connect to Cognos Server");
                   response.getWriter().print("Cannot connect to Cognos server");
              sessionLogon=new Logon();
              String logonOutputSource = "";
              String reportOutput=null;
              //Till the user gets logged in or he exits
              while (!Logon.loggedIn(connect)) {
                   try
                        logonOutputSource = sessionLogon.quickLogon(connect,uid,pwd);
                        //System.out.println("Connected to the Cognos server..");
                        System.out.println(logonOutputSource);
                   catch(Exception ex)
                        System.out.println("Error : Unknown host ");
                   if (!Logon.loggedIn(connect)) {
                        response.getWriter().print("Unable to logon");
                        System.exit(0);
              //Report Processing here
              //String reportName=args[0].trim();
              //locate the selected report
              BaseClassWrapper selectedReport=null;
              selectedReport=reportRunner.findReport(connect);
              reportOutput=reportRunner.runReport(connect,selectedReport,REP_XML,false);
              xml=reportOutput;
              //System.out.println("Main:" + reportOutput);
              System.exit(0);
              try
                   response.getWriter().print(xml);
                   response.getWriter().flush();
              catch (IOException e)
                   response.getWriter().print("Unable to publish xml");
                   System.out.println(e);
    }I am using some classes to extract xml data from a data source and retrieve that as a string and then i am displaying it using response object.
    Any help in this regard would be highly appreciated.
    Thanks,
    Shishir.
    Edited by: Invinc4u on Dec 15, 2008 6:56 AM

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • Page cannot be displayed error using 'Test Web Module' in EM

    I am trying to test my deployed app and get the subject error when I try to get to a page that requires authentication. I can successfully bring up my help page (not restricted) but no other. I've set up my app deployment settings to map my users role to 'all users and all groups' and the security provider has been set up to use our 3rd party LDAP instance...
    When this error occurs, there is nothing noted anywhere in the application log file. Where else can I look for clues to debug this?
    THanks.,

    Hi,
    I would expect a HTTP 40x error or similar but no a page cannot be displayed as this indicates a missing or wrong page link.
    Frank

  • The page cannot be displayed while running the report with web link

    Hello,
    I tried to run the report using a web link similar:
    http://hostname/reports/rwservlet?report=WRFTCKL.rdf&userid=use/pass@datbase&desformat=pdf&destype=CACHE&paramform=yes
    I am able to see the parameter form, but after I entered some parameter and submit, I got an error as:
    The page cannot be displayed.
    But if I run it with the paramform=no and attached the parameter/value pair at the end of the link, the report will show on the web.
    Anyone knows what is wrong?
    Thanks.

    try this sample report from
    http://www.alexyscorp.com/products.htm
    (Download the Forms Reports Integration based on run_report_object (FMB,RDF) )

  • Web Dispatcher - Page Cannot Be Displayed

    We have a Web Dispatcher in a DMZ (DMZ2) that is used for external (Internet) access to our E-Sourcing application. The E-Sourcing application is in another DMZ (DMZ1).
    When external (sell-side) users enter the url in their browser to connect through the Web Dispatcher over the Internet, the initial E-Sourcing screen is displayed very briefly in the browser and then the message 'Page cannot be displayed' comes up on the screen. If the browser screen is refreshed, the login screen is then displayed and the user is able to log in with no issues.
    This occurs only when trying to access the E-Sourcing application through the Web Dispatcher. It does not make any difference if the Web Dispatcher hostname is used in the url (internal access through Web Dispatcher) or if the url created specifically for the Web Dispatcher is used (external (Internet) access through the Web Dispatcher). The result is the same.
    If either http://WebDisp_Hostname (internal) or http://www.myESOapp.here.com (external Internet) is entered in the browser, both display the front-end ESO screen briefly and then display the 'Page cannot be displayed' message. Refreshing the browser screen then displays the login screen and users can log in OK.
    Can anyone point me in the right direction to solve this? I have reviewed the Web Dispatcher trace file and the E-Sourcing log file and can find no errors or anything that would indicate what might be going on. It appears to be a Web Dispatcher issue. Any help would be appreciated.
    WL

    Hi Wayne,
    When external (sell-side) users enter the url in their browser to connect through the Web Dispatcher over the Internet, the initial E-Sourcing screen is displayed very briefly in the browser and then the message 'Page cannot be displayed' comes up on the screen. If the browser screen is refreshed, the login screen is then displayed and the user is able to log in with no issues.
    When first time you call URL , do you the page of Esourcing or you directly get the error page.
    It better , install HTTP watch software on you dekstop and then activate the HTTP watch and start browsing the page and generate the problem which you are facing .
    Once it is done share the result of HTTP Watch  in the forum , depend upon that we can come to some solution.
    Thanks
    Anil

  • WEB Dynpro :- page cannot be displayed .

    Hi All,
    I am trying to work with the tutorials on the net for web dynpro. But I get the erroes below on all the serever we have. _____________________________________----While trying to retrieve the URL: http://gbdci550.us.panasonic.com:8011/sap/public/myssocntl?sap-client=800
    The following error was encountered:
    Unable to determine IP address from host name for gbdci550.in.ibm.com
    This means that:
    The cache was not able to resolve the hostname presented in the URL.
    Check if the address is correct.
    Now if I go to lan settings on internet explorere and change the lan settings as below: -
    *Do not use proxy address begining with us.panasonic.com..
    Then the error changes to as below. Please help me with the settings that I need to do .
    The page cannot be displayed
    Click the Back button to try another link.
    Cannot find server or DNS Error
    Internet Explorer
    Please let me know what settings am I supposed to do.
    Rgds,
    Anupma.

    Check Your internet Explorer connection settings Internet Option->Connection->LAN settings.
    Try playing around with it. We had the same problem in the past.
    Greetings
    Prashant
    P.S- Points welcome

  • 'The page cannot be displayed' when I use IE to open Web Dynpro demo

    In the package 'SWDP_DEMO_TUTORIALS' .
    Folder Web Dynpro Applicat. -> WDT_ALV ==> URL = 'http://abcdev.:8000/sap/bc/webdynpro/sap/wdt_alv'
    then Right click and choose Test.
    IE is open but 'The page cannot be displayed'. (http://abcdev.:8000/sap/bc/webdynpro/sap/wdt_alv?sap-client=210&sap-language=EN)
    1. I actived neccessary service in SICF already. (http://forum.consolut.net/viewtopic.php?f=8&t=1313)
    2. C:\WINDOWS\system32\drivers\etc -> hosts file has 2 record.
    127.0.0.1       localhost
    HP002264446493 HP002264446493
    I think I have to add the SAP server IP
    So I click at menu bar -> System -> Status and press Other Kernel info. (Green)
    ==>> I get Host = abcdev and IP address = 10.74.XX.YY
    After that, I add the 10.74.XX.YY  abcdev to be the last line.
    Is it correct?
    3. No data in table HTTPURLLOC.
    4. ECC 6  and I never installed Netweaver.
    PS.  I create my own web dynpro but the layout is not working  'The page cannot be displayed' .
    Thank you very much.

    I change host file to 'abcdev.' but it does not work.
    If I use command 'ping -t 10.74.XX.YY' , it's ok.
    If I use ping -t abcdev.:8000, it's not working.
    PS. IE version 6 and  Connection -> Lan settings ==> Not set anything.
    Help me please!!!
    Edited by: marshi on Feb 8, 2011 2:34 PM

  • Web Dynpro Layout - Shows The page cannot be displayed

    Hi
    I am getting "The page cannot be displayed" in the Layout Tab of Web Dynpro - View Component.
    Can someone help me to fix this issue.
    Regards
    Venkat

    Hi,
    Check the SAP notes 1009930 and 1008689. Also ensure that you have activated  /default_host/sap/public/bc/webdynpro/viewdesigner  & /sap/bc/wdvd/ nodes in SICF.
    Check out the [SAP Help|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/d28dfa34bb12bee10000000a1553f7/content.htm] for more details.

  • Web Query -- Page cannot be displayed

    Hi,
    What parameter controls the time out of a web report.
    I have a query which takes around 16 mins to pull up results when I run it thru RSRT and BEx.
    When the query is run on the web exactly after 13 mins page cannot be displayed screen comes up..
    What parameter controls this time out on the web.
    I have kept icm/keep_alive_timout = 3600..I guess its some other parameter..
    Thanks in advance

    Hi,
    Another setting for HTTP connections is: icm/conn_timeout (value is in milliseconds).
    Some SAP Notes you can refer to on this issue are:
    622130
    192658
    Cheers,
    Rusty

Maybe you are looking for

  • How to handle multiple fields data

    Hi All, My data is : FldName           FldTypeCode          Text Sandya            02                         nothing Raj                 01                         12/Oct/2008 Lokesh            03                          12546 Harish             04

  • Reg namespace problem in pi7.1

    Hi, I created a namespace in PI7.1 after saving SWCV the namespace is not having any objects. How to get all objects under namespace in PI7.1? Please help me Regards Eswar

  • IDOC  type related to Payroll and Employees Attendance and Absence

    Hi  Evrybody, Right now im working on ALE INBOUND Interface, which relates to transfer of data. I'm searching for an Basic IDOC  type related to Payroll and Employees Attendance and Absence, If any pointers would be much helpful. Thanks n Regards. [e

  • MSSQLSERVER service could not be started in DS

    Dear Experts, After electric outage on last Sat, my DS cannot start due to MSSQLSERVER service in Windows could not be started.  I tried to start it manually at SQL Server Configuration Manager and Windows service. Anyway it still cannot started. How

  • Dial Up Log On

    I am new to Mac's and I can't seem to find a way to set up a manual log on to the Internet. When I start up my User ID, dial up starts and logs us on. Also, my family can't tell if they are logged on and may be using up Internet $ charges when workin