For testing an one sample control, just I had copied source code of the client control (client.ascx) as client page (client.aspx) to website1. And also I copied all the related source code files (controller) to App_Code in Website1 with related DNN references.
When I run the client page from Website1 on Visual Studio, it throws error as
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache, Boolean fixAssemblyName) +458
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) +22
FashionSoft.Modules.DataProvider.CreateProvider() in j:\Sri\WebSites\WebSite1\App_Code\DataProvider.cs:26
FashionSoft.Modules.DataProvider..cctor() in j:\Sri\WebSites\WebSite1\App_Code\DataProvider.cs:20
[TypeInitializationException: The type initializer for 'FashionSoft.Modules.DataProvider' threw an exception.]
FashionSoft.Modules.DataProvider.Instance() in j:\Sri\WebSites\WebSite1\App_Code\DataProvider.cs:33
FashionSoft.Modules.Business.ClientController.GetAllItems_Client(String SortBy, Boolean ShowDeleted) in j:\Sri\WebSites\WebSite1\App_Code\Controller\ClientController.cs:66
Please help me how to fix this issue in separate Website solution apart from DNN platform.
Thanks & Regards
Sri