Constructor on type 'MySequenom.Data.DBFileContentProvider' not found.

3 posts, 0 answers
  1. Adam
    Adam avatar
    9 posts
    Member since:
    Nov 2008

    Posted 14 Sep 2009 Link to this post

    I have implemented a custom content provider and trying to use it with the RadFileExplorer:

    RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBFileContentProvider).AssemblyQualifiedName; 

    However, I get an error: 

    Constructor on type 'MySequenom.Data.DBFileContentProvider' not found.


    My provider does have a contrstructor so I am unsure what the problem is.

    public DBFileContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag, int nodeId) 
                : 
                base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) 
            { 
                _itemHandlerPath = ConfigurationManager.AppSettings["ItemHandlerPath"]; 
                if (_itemHandlerPath.StartsWith("~/")) 
                { 
                    _itemHandlerPath = HttpContext.Current.Request.ApplicationPath + _itemHandlerPath.Substring(1); 
                } 
                if (SelectedItemTag != null && SelectedItemTag != string.Empty) 
                { 
                    SelectedItemTag = ExtractPath(RemoveProtocolNameAndServerName(SelectedItemTag)); 
                } 
            } 

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 17 Sep 2009 Link to this post

    Hi Adam,

    The problem is in the DBFileContentProvider's  constructor. You need to implement a constructor with 7 parameters only, that will exactly match the constructor of the base class. The highlighted (8th parameter) parameter in the construction causes the error in your case.

    public DBFileContentProvider( 
    HttpContext context, 
     string[] searchPatterns, 
     string[] viewPaths, 
     string[] uploadPaths, 
     string[] deletePaths, 
     string selectedUrl, 
     string selectedItemTag, 
     int nodeId 

    Please remove it and you should not experience the same error.


    All the best,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    9 posts
    Member since:
    Nov 2008

    Posted 17 Sep 2009 Link to this post

    That was the problem.  Thank you.
Back to Top