This is a migrated thread and some comments may be shown as answers.

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

2 Answers 76 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 2
Adam asked on 14 Sep 2009, 11:20 PM
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 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 17 Sep 2009, 03:23 PM
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.
0
Adam
Top achievements
Rank 2
answered on 17 Sep 2009, 06:03 PM
That was the problem.  Thank you.
Tags
FileExplorer
Asked by
Adam
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Adam
Top achievements
Rank 2
Share this question
or