The type '*', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element * could not be found

I have a provider hosted app in sharepoint which works locally without problem. I followed this tutorial to publish it to azure
http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/09/05/how-to-deploy-a-provider-hosted-app-as-an-azure-site.aspx
However after publishing the webservice doesnt work I get this exception:
[InvalidOperationException: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +62739
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1429
System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +52
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598
[ServiceActivationException: The service '/Services/AppEventReceiver.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..]
System.Runtime.AsyncResult.End(IAsyncResult result) +486572
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +174
System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +345998
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9683593
My web.config which I didnt touch.
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="ClientId" value="xx-04e7-4caf-854a-89c20577d7da" />
<add key="ClientSecret" value="ljguTvxHR+xx+Pl1IMg1Hjt5rsQ=" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<customErrors mode="Off"/>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<!--Used by app for SharePoint-->
<binding name="secureBinding">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<protocolMapping>
<add binding="basicHttpBinding" scheme="https" bindingConfiguration="secureBinding" />
</protocolMapping>
</system.serviceModel>
<system.webServer>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
</configuration>
and a piece of the code of the remote event receiver
<%@ ServiceHost Language="C#" Debug="true" Service="x.IntranetWeb.Services.AppEventReceiver" CodeBehind="AppEventReceiver.svc.cs" %>
namespace x.IntranetWeb.Services
public class AppEventReceiver : IRemoteEventService
Follow me on Twitter
levalencia Blog

Hi,
The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
You need to make sure your namespace and service name here match your service name itself.
For detailed information, you could refer to:
https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
Regards

Similar Messages

  • The Image viewer flash element could not be found

    The image viewer flash element could not be found. What
    should I do? Any plug in exists or is it mistake in program? Help
    me, please. Thx Joe

    Hi,
    The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
    You need to make sure your namespace and service name here match your service name itself.
    For detailed information, you could refer to:
    https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
    http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
    Regards

  • The type or namespace name 'IBM' could not be found (are you missing a using directive or an assembly reference?)

    please help on below error 
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
    Compiler Error Message: CS0246: The type or namespace name 'IBM' could not be found (are you missing a using directive or an assembly reference?)
    Source Error:
    Line 27: using System.Web.Services;
    Line 28: using System.Net;
    Line 29: using IBM.WMQ;
    Line 30: using System.DirectoryServices.AccountManagement;
    Source File: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\NBO\LogComplaint.aspx.cs   
    Line: 29

    Hello,
    >>using IBM.WMQ
    It seems you are using third party dll namespace reference in your project but that dll is not being added in project. Please get the IBM.WMQ dll and add it first in your current visual studio project by right click on project-->add reference.
    You can place this dll in GAC or can directly add to project as suggested by jaydeep.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • The service DS.AdminService could not be found on the client side

    HI,
    we have installed below
    Software
    Version
    IPS
    INFORMATION PLATFORM SERVICES 4.1 SP02 WINDOWS (64B
    Data Service
    DATA SERVICES 4.2 WITH SP01 WINDOWS (64B)
    Information Steward
    INFORMATION STEWARD 4.2 WITH SP01 WINDOWS
    SAP NW 7.4
    Netweaver 7.4 portal
    When I login to portal with  below links I am able to see the related screens.
    http://host:port/irj/portal
    http:://host:port/BOE/CMC
    http://host:port/BOE/InfoStewardApp/1403181301/ICCExplorer/logon.do
    However when I log:portin with below link using admin account I am facing error :
      Welcome Administrator
      Logout
      The service DS.AdminService could not be found on the client side (FWM 02027)
    Please see attachment.
    http://://host:port/DataServices
    Please help. Thanks.
    Regards,
    Krishnam

    Please see below properties for EIM APS. please let me know where can I check.
    Server Name:
    ID, CUID:
    3806 ,  AWJiF9VQoMtJiEyRIjv0py4
    Node:
    USMHR1_ERP301 (USMHR1-ERP301, SAPDataServices-S)
    Description:
    EIM Adaptive Processing Server
    Command Line Parameters 
    -server -Dcom.sap.vm.tag=USMHR1_ERP301.EIMAdaptiveProcessingServer -Djava.awt.headless=true "-Dbobj.enterprise.home=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/" "-Dbobj.javaserver.home=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/pjs/container/" "-Dboe.common.dir=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/lib/" "-Dboe.external.dir=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/lib//external" "-Dboe.bundles.dir=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/lib//bundles" "-Djava.io.tmpdir=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/pjs/container/temp" "-Dbusinessobjects.logs.home=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/" "-XtraceFile=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/aps_USMHR1_ERP301.EIMAdaptiveProcessingServer_jvm.log" "-XX:GCHistoryFilename=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/aps_USMHR1_ERP301.EIMAdaptiveProcessingServer_gc.prf" "-Xloggc:D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/aps_USMHR1_ERP301.EIMAdaptiveProcessingServer_gc.log" -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:LogGcMaxFileCount=3 -XX:LogGcMaxFileSize=5m "-XX:ErrorFile=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/[email protected]" -Xms512m -Xmx2g -XX:MaxPermSize=256m -XX:+UseParallelOldGC -XX:+HeapDumpOnOutOfMemoryError "-XX:HeapDumpPath=D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/logging/" -XX:+ExitVMOnOutOfMemoryError -Xjvmx -XsapSystem:08 -Xrs -Djava.net.preferIPv4Stack=false -jar "D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/pjs/container/bin/boeserver.jar" -workdir "D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/java/pjs/container/work"
    -name USMHR1_ERP301.EIMAdaptiveProcessingServer -pidfile "D:/SAP BusinessObjects4.1IPS/SAP BusinessObjects Enterprise XI 4.0/serverpids/USMHR1_ERP301_USMHR1_ERP301.EIMAdaptiveProcessingServer.pid" -ns USMHR1-ERP301.corp.pattersoncompanies.com:6400
    Common Settings 
    Request Port:
    Auto assign
    Host Identifiers:
    Auto assign
    Hostname
    IP Address
    Hostname Value
    (IPv4)    (IPv6)
    Automatically start this server when the Server Intelligence Agent starts
    Use Configuration Template
    Services Manager
    Service Startup Timeout (seconds):
    Restore System Defaults
    Set Configuration Template
    TraceLog Service
    Use Configuration Template
    Log level:
    Unspecified
    None
    Low
    Medium
    High
    Restore System Defaults
    Set Configuration Template
    Data Services Job Launcher Service
    Use Configuration Template
    Configuration Parameters
    Log Level:
    NONE
    INFO
    FINER
    Restore System Defaults
    Set Configuration Template
    Data Services RFC Server Service
    This service has no configuration property.
    Data Services View Data Service
    Use Configuration Template
    View Data Service Configuration
    Service Name:
    Listener Port:
    JMXConnector Port:
    BatchSize (KB):
    Minimum Shared Service Providers:
    Maximum Shared Service Providers:
    Maximum Dedicated Service Providers:
    Recycle Threshold:
    Number of attempts to launch service provider:
    Maximum idle time for shared service provider (minutes):
    Log Level:
    NONE
    INFO
    FINER
    Restore System Defaults
    Set Configuration Template
    Data Quality Service
    This service has no configuration property.
    Data Services Metadata Browsing Service
    Use Configuration Template
    Metadata Browsing Service Configuration
    Service Name:
    Maximum Data Source Connections:
    Retry attempts to launch Service Provider:
    Stateful Connection Timeout (seconds):
    Stateless Connection Timeout (seconds):
    Recycle Threshold:
    Log Level:
    NONE
    INFO
    FINER
    Collect Connection Statistics
    Listener Port:
    JMXConnector Port:
    Restore System Defaults
    Set Configuration Template
    Cleansing Package Builder Auto-analysis Service
    This service has no configuration property.
    Information Steward Data Review Service
    Use Configuration Template
    Data Review Service configuration
    Log Level:
    FINEST
    FINER
    FINE
    CONFIG
    INFO
    WARNING
    SEVERE
    Restore System Defaults
    Set Configuration Template
    Information Steward Metadata Search Service
    Use Configuration Template
    Search Service configuration
    Log Level:
    FINEST
    FINER
    FINE
    CONFIG
    INFO
    WARNING
    SEVERE
    Restore System Defaults
    Set Configuration Template
    Information Steward Metadata Integrator Service
    Use Configuration Template
    Integrator Service configuration
    Log Level:
    FINEST
    FINER
    FINE
    CONFIG
    INFO
    WARNING
    SEVERE
    Restore System Defaults
    Set Configuration Template
    Information Steward Application Service
    Use Configuration Template
    Application Service configuration
    Log Level:
    FINEST
    FINER
    FINE
    CONFIG
    INFO
    WARNING
    SEVERE
    Restore System Defaults
    Set Configuration Template
    Data Cleansing Advisor Service
    This service has no configuration property.
    Information Steward Administrative Task Service
    Use Configuration Template
    Task Services Configuration
    Concurrent Thread Instances:
    Thread process timeout (minutes):
    Log Level:
    FINEST
    FINER
    FINE
    CONFIG
    INFO
    WARNING
    SEVERE
    Restore System Defaults
    Set Configuration Template
    Cleansing Package Builder Publishing Service
    This service has no configuration property.
    Cleansing Package Builder Core Service
    This service has no configuration property.

  • Managed c++ class - The type or namespace name could not be found

    Hello,
    I have a managed c++ class library project with the following attribute:
        <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    That library is used from a C# project. If I change the C# framework to 4 they both compile fine.
    If I set the C# framework to 3.5 the managed C++ class is not recognized and the C# project compilation fails with the following error :
    Error XXX The type or namespace name 'XXX' could not be found (are you missing a using directive or an assembly reference?) C:\XXX.cs 19 7 XXX
    Any idea about weird behavior? shouldn't it just work?
    The C# project is using basic stuff, the same for the C++ project.
    Cheers,
    Javier Andres Caceres Alvis

    Hello there,
    After searching for a while I found this: "Everything is ok when I use for example .net 4.5 in c# and c++, but c# must be using 3.5 version. I read that I need to build c++ library in older visual studio (i tried 2005 and 2008)" here:
    http://stackoverflow.com/questions/24364687/how-to-import-a-managed-c-library-to-c-sharp-app-target-net-version-3-5
    I think that part of that statement is true because when I inspect the added reference (i.e.: the managed C++ project reference -also known as wrapper- from the C# class library) I see in the property tab that the runtime property value is v4.0.30319
    -this is very weird, because the managed c++ project is set to compile with v3.5 and the same with the C# project but it seems that if VS2008 or VS2010 is not present then is compiled with the default version.
    Thanks,
    Javier Andres Caceres Alvis

  • The type or namespace name 'SQLite' could not be found (are you missing a using directive or an assembly reference?)

    Trying to get sql server compact up and running. I connected to a sqlite database and atuo generated the model.cs code.
    however, I get the following error.
    Error    1    The type or namespace name 'SQLite' could not be found (are you missing a using directive or an assembly reference?)    C:\Users\kenny\Documents\Visual Studio 2013\Projects\WindowsFormsApplication2\WindowsFormsApplication1\Model.cs  
     3
    Any help is greatly appreciated. Please provide some detail as I am novice. 
    Thanks

    Ok so I got the past that problem. I had to add the package System.Data.SQLite Core in Manage NuGet.
    Then I changed the auto-generated code "using SQLite" to "using System.Data.SQLite".
    But now I have a new problem, it says "System.Data.SQLite.SQLiteConnection' does not contain a definition for 'CreateTable' "
    Here is the code
    //This code was generated by a tool.
    //Changes to this file will be lost if the code is regenerated.
    //using SQLite;
    using System;
    using System.Data.SQLite;
    using System.Data.SQLite.EF6;
    namespace WindowsFormsApplication2
    public class SQLiteDb
    string _path;
    public SQLiteDb(string path)
    _path = path;
    public void Create()
    using (SQLiteConnection db = new SQLiteConnection(_path))
    db.CreateTable<servers>();
    public partial class servers
    public Int64 server_name { get; set; }
    public Double cpu_usage { get; set; }
    Any ideas why CreateTable is not available?

  • DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found.

    Hello Everyone,
    We are getting an error while trying to create an Universe via Microsoft -> MS Analysis Services 2014 -> OLEDB for OLAP Provider under Connection in UDT -"DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found."  We have installed BI 4.1 SP05 in our system. As per earlier posts in scn in BO XI 3.x this issue used to be for improper installation of Integration KIT but in our scenarion Integration KIT is within the BO 4.1 package so no seperate installation is required. Moreover I have checked whether all the driver is present under file: "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers" and seems everything is fine. But still I am getting this error. One important point is we could use IDT because in IDT still we don't have option to connect with 'Microsoft Analysis Services - 2014 (XMLA)' as we are using Microsoft Analysis Services 2014 version.
    Kindly help if anyone has faced the same problem with SAP BO 4.1.
    Thanks and Best Regards,
    Ghosal

    Hello Everybody,
    The problem is solved now after installing "OLEDB drivers from SQL Server 2012 Feature Pack". We had OLEDB drivers that comes directly from SQL Server but that did not worked out in our case.
    Thanks for your support.
    Best Regards,
    Ghosal

  • TF255186: The following SQL Server Reporting Services Instance could not be found

    Hi,
    I'm trying to install TFS 2013 on a remote SQL RS instance. 
    Using the TFS 2103 U4 installation
    SQL 2012 RS, name instance, Server: SQLProdA, Instance Name COMRS
    When I enabled tracing using debugView I see the following output:
    [4160] [Error  @11:07:10.978] Exception Message: TF255186: The following SQL Server Reporting Services Instance could not be found: COMRS. The server name is: SQLProdA. (type TfsAdminException)  
    Any ideas what the issue is?
    Thanks,
    reuvy

    Hi Charles,
    Thanks for the help. I already saw those links, and am already trying with the format. As I wrote above:
    Server: SQLProdA, Instance Name COMRS
    So I wrote in the box "SQLProdA\COMRS" (without quotes of course) and I still keep getting that error.
    I don't know if it matters, but although this is indeed a named instance, nonetheless, the path to the report server uses the default url (ie.
    http://servername/reports) as opposed to the name instance version (ie.
    http://servername_instance/reports) as mentioned by your link and this post:
    https://msdn.microsoft.com/en-us/library/bb552341.aspx
    But, I checked with Fiddler on the server and didn't see it trying to even access the link so I don't think it is related. I saw with Process Monitor that it is indeed trying to access via the network resources on SQLProdA, so I know it's trying.
    I have noticed something in the past, and wondered if this could be the issue, that for example if I have Management Studio 2014 installed, I cannot connect to a Reporting Services instance which is 2012. Only when Management Studio 2012 is installed
    and being used can I connect. I wondered if this possibly could be related, that maybe the API or something else which the installer is using is missing some component to connect to the RS instance.
    Just in case, I already installed both the SQL 2012 and 2014 Client Tools Connectivity (although I first installed 2014, and then 2012).
    Do you think this could be the issue? If not, do you possibly have any other leads?
    Thanks,
    Reuvy

  • 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.

  • After I updated my iPhone with IOS 6.1 my old Apple ID keeps popping up on my iPhone for me to type in the password that I no longer know. On the Apple site the Manage my Apple ID says my old Apple ID could not be found. How do I get this to stop?

    I just updated my iPhone with the newest update IOS 6.1. My old Apple ID keeps popping up on my iPhone for me to type in the password that I no longer know. All the passwords I type in do not work. I no longer have access to this email which is my old Apple ID. After installing the newest software update my old Apple ID came up to finish configuring. Since I no longer have access to this Apple ID and email account and after trying some passwords I skipped the step. It then said FaceTime, iCloud (which I do not use), and more may not work. I clicked that it was OK since I could not remember the password to my old Apple ID. I then went to my settings to be sure my newer email was my Apple ID by typing in my current Apple ID and password.  Also, I went to Manage my Apple ID online and my old Apple ID could not be found. Is it OK I skipped that step in the IOS 6.1 configuration? How do I get my old Apple ID to stop popping up?

    Blue
    It sounds like you restored from an old back-up.  Did you back-up just before your software update?  It will use your last one and if your last back-up was a ywear old then it will use that one.
    In general, if you are getting these messages on your iPhones select logout (when you get that Apple Id request) and then log back in with your newer ID.
    Sorry for your losses.
    Cheers

  • 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

  • Photoshop Elements 6:   Could not use type tool because the file could not be found

    Using Adobe Photoshop Elements 6.0 well for a while.
    Tried to use the Type Tool to overlay text and obtained this error:
    Could not use the type tool because the file could not be found
    After research, I reset all tools, tried to repair (failed: insert disc one), and then removed/re-installed.  Still have the same problem.
    Are the system fonts corrupt or is an Adobe .ini file suspect?
    Other reports have suggested using a 3rd-party font manager to inspect/disable fonts.
    First wanted to post this error here for feedback/recommendations
    Any suggestion on how to recover the Type Tool functionality?
    Eric Edberg
    Adobe Photoshop Elements Repair Workaround
    When trying to repair the well-known:  insert disc one, error occurred.  Was able to successfully repair the installation by dragging the entire Adobe Photoshop Elements directory from the original CD-ROM onto a hard drive and executing locally.  Seems it does not like repairing over the CD-ROM but it works correctly if the install source is on disc...

    John,
    Yesterday, I decided to completely remove all Adobe products:  PSE 6, Premiere 4, Reader, ActiveX plugins & legacy/old uninstalled product directories that Adobe has left turd-lets around including old Acrobat 3/6 directories.  Used A/D Software to remove all adobe products and then followed your instructions AND the instructions on Adobe's support web site to manually remove these products.
    It boiled down to manually removing the entire Adobe directory in Progam Files, "saving" the entire Adobe directory structure in each users (3) Document and Settings in the Application Data and Local Settings (as instructed by you and Adobe) and rebooting.
    I also saved the local All Users "configuration" database/cache that contained the Tag and other information to make sure the system was clean
    This included following the manual Regit instructions to remove legacy Adobe registry hives.  I deleted all keys for all Adobe product trees that I could locate (following instructions from Adobe).
    Reboot
    Scheduled a CHCKDSK on all drives and rebooted
    Dragged my complete image library to an archive location and deleted them on the C: drive
    Did a complete system Defrag
    Re-installed Adobe and alas still have the same problem with the Type Tool....
    The only thing I did not do was selectively remove the "fonts" because various instructions seemed to indicate many are "required" by the windows or other applications and I was not really sure how to identify which ones were safe to remove w/o affecting the core system..  I'll have to re-read these instructions next.
    Microsoft has a "Font Validator" tool, but that only checks 1 font at a time and you have to read the "results".  May look for other tools.
    Will be able to check the font structure this weekend since it will take some research before I'm comfortable just removing fonts in trial/error mode.  I'll need to make a backup image of my computer before I start this (just in case).
    Thanks for follow-ups too!
    Eric Edberg

  • The type or namespace name 'SPSite' could not be found (are you missing a using directive or an assembly reference?)_

    I am creating a Winforms application. I need to upload and download a file from Sharepoint.
     I have added reference to Microsoft.Sharepoint.Client.
    Below is the code to upload file:
    using System.IO;
    using Microsoft.SharePoint;
    private void Button_Click_1(object sender, RoutedEventArgs e)
                String fileToUpload = @"C:\Test.txt";
                String sharePointSite = "https://myshapoint";
                String documentLibraryName = "Test";
                using (SPSite oSite = new SPSite(sharePointSite))
                    using (SPWeb oWeb = oSite.OpenWeb())
                        if (!System.IO.File.Exists(fileToUpload))
                            throw new FileNotFoundException("File not found.", fileToUpload);
                        SPFolder myLibrary = oWeb.Folders[documentLibraryName];
                        // Prepare to upload
                        Boolean replaceExistingFiles = true;
                        String fileName = System.IO.Path.GetFileName(fileToUpload);
                        FileStream fileStream = File.OpenRead(fileToUpload);
                        // Upload document
                        SPFile spfile = myLibrary.Files.Add(fileName, fileStream, replaceExistingFiles);
                        // Commit 
                        myLibrary.Update();
    But i get the error "The type or namespace name 'SPSite' could not be found (are you missing a using directive or an assembly reference?)"
    I am not sure what else I am supposed to do here.

    Hi,
    If you want to develop a WinForm application to be only used in SharePoint Server, we can use Server-Side Object Model(use Microsoft.Sharepoint.dll) to achieve it. 
    If you want to use the WinForm application to be used both in Server side and Client Side, I suggest you use .Net Client Object Model(use Microsoft.Sharepoint.Client.dll) to achieve it.
    Here are two links for your reference:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/c357e3c7-37e9-4ded-83aa-a57beae0b0e4/how-to-upload-download-files-to-sharepoint-2013?forum=sharepointdevelopment
    http://msdn.microsoft.com/en-us/library/ff798388.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • The type or namespace name 'PrincipalContext' could not be found

    I am attempting to retrieve a user's full name from AD with the code below in .aspx using C#. I am using Sharepoint Designer 2010. I keep getting the error 'An error occurred during the compilation of the
    requested file, or one of its dependencies. The type or namespace name 'PrincipalContext' could not be found (are you missing a using directive or an assembly reference?). What am I doing wrong?
    @using System.IO;
    @using System.DirectoryServices.AccountManagement;
    @using System.DirectoryServices;
    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        string fac1;
        string userid;
        string fname;
        string lname;
        string fullname;
        protected void btnShowInfo_Click(object sender, EventArgs e)
            try
                userid = GetHTTPContext();          
            catch (Exception ex)
                Response.Write(ex.Message + "<BR>" + ex.StackTrace);
            finally
            using (PrincipalContext context = new PrincipalContext(ContextType.Domain));
                    WindowsPrincipal principal = (WindowsPrincipal)User;
                    UserPrincipal user = UserPrincipal.FindByIdentity(context, principal.Identity.Name);
                    fname = user.GivenName;
                    lname = user.Surname;
                    fullname = user.Name;
                    Response.Write(fname + "  " + lname)
        private string GetHTTPContext()
            return(HttpContext.Current.User.Identity.Name);

    I was able to fix the error by importing the namespaces and including the assemblies. That got me past the 'PrincipalContext' error.
    Now I am getting an error on the line 'UserPrincipal user =...':
    An error occurred during the
    compilation of the requested file, or one of its dependencies. The name
    'context1' does not exist in the current context
    Here is the code:
                using( PrincipalContext context1 = new PrincipalContext(ContextType.Domain)); 
                    WindowsPrincipal principal = (WindowsPrincipal)User;
                    UserPrincipal user = UserPrincipal.FindByIdentity(context1, principal.Identity.Name);

  • The service DS.RFCService could not be found on the client side

    Hi Experts,
    I am facing the following error message when i try to create SAP connection from management Console of DataServices 4.0 SP1
    "The service DS.RFCService could not be found on the client side"
    In Management Console...
    SAP connections->RFC  Server configuration.
    Trying to add RFC Server interface. it says
    The Service DS.RFC Services could not be found on client side.
    can anyone help me out of this issue..plz
    In my System I installed SAPBusinessObjects BI Platform 4.0 instead of Information platform services,BODS 4.0 SP1,IS 4.0 SP1...
    I checked the CMC ->servers->EIM -APS services->properties. i could not find any RFC or admin services running.
    anything is missing? any note explain about this?
    Pls advice
    Thank You In Advance.

    Hi,
    Check this note - KBA 1671522, it holds good for RFC also.
    Arun

Maybe you are looking for

  • IMac and other Apple devices lose wireless connections

    We have two Apple iMacs, a MacBook Pro, an iPad and iPad2 and they all intermittently lose their Wireless connection to my network.  All of my PC's work just fine and stay connected.  This is funny... the MacBook Pro booted to Windows 7 Pro stays con

  • Addon Installer - Wrong Signature

    Hello Experts, I create an Addon for my company and the installer  at the end of installation a error message tells me:  Wrong Signature... SAP Version:   8.82  PL11 Visual Studio: 2010 B1DE I created a installer wiht B1DE  and the ARD with the tool

  • Select Client

    Hi, My requirement is--- to not display the clients which have Zero in all status which are Pending,Exp,Backorder, Error.Please help me to fix it as it takes 9 mins to run which is just acceptable but it should not take more than that. Here is the qu

  • Kernel Panics : Office for Mac or Safari ?

    Hi everyone, Happy New Year 2015 for a start ! I have been experiencing Kernel panics with my mac book pro mid 2010radomly for a few months now but I am not very good in reading the reports provided once the mac reboots. I observed that Powerpoint an

  • : %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error: %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error

    Am running ASR1001 router as LNS and suddnly i see the following error on the monitor : %COMMON_FIB-4-DISABLING: IPv4 CEF is being disabled due to a fatal error any idea????