You need to Register for free and Login to post a message in the forum.

Forum

Subject: Database Access Error !
Prev Next
You are not authorized to post a reply.

Author Messages
nukedoubt
Nuke Active Member
Nuke Active Member
Posts:24

29 Aug 2008 9:07 AM  

Error in Database Access :

"The type initializer for 'MyCompany.Modules.Search.DataProvider' threw an exception."

nukedoubt
Nuke Active Member
Nuke Active Member
Posts:24

29 Aug 2008 9:08 AM  
Got a fix........

1)  Make sure that both the sqlDataProvider class and the DataProvider class are in the same namespace.
2)  Verify those namespaces using the object browser in visual studio
3)  Verify that the solution outputs the dlls for both the module and data provider projects to the dotNetNuke bin directory
4)  the CreateObject call in the dataProvider class should be as follows:

CreateObject("data", "< NAMESPACE OF DATAPROVIDERS >", "<  NAME OF MODULE DLL  >", DataProvider)

Where the following explainations apply:

< NAMESPACE OF DATAPROVIDERS > = The namespace of the dataprovider class in the module project and the namespace of the sqldataprovider class in the dataProvider project (they should be in the same namespace).

<  NAME OF MODULE DLL  > = This is the name of the module dll that should be compiled into the dotNetNuke bin directory when the project is built (minus the ".dll" extension).


thanks........
Source : http://www.ventrian.com/Support/ProductForums/tabid/118/view/topic/postid/6132/Default.aspx

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

04 Sep 2008 2:49 AM  
Thanks for the info,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Database Access Error !



ActiveForums 3.7

Latest Forum Posts

RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
backend is changing from sql2005 to sql2008 by meenu
hi all advance thanks. in my DNN0408 website am using sql2005 as backend.now planning to remove sq...
About catalook error by kishorpawar
 I am  using dnn 4.8.4 version in my project, this  site is in 2 language,whenver i click on the BYN...
RE: Menu Keeps Verticaly by ruimacdonald
Tnx for your help. It's done. Rui
RE: Menu Keeps Verticaly by jncraig
The configuration of the MENU skin object is defined in the skin.xml file. You'll need to modify th...
DotNetNuke Modules
RSS Feeds