Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Conversion from type 'DBNull' to type 'String' is not valid.
Last Post 09/26/2007 12:31 AM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jan Alwin de Jong
New Member
New Member
Posts:1


--
09/25/2007 12:08 PM

After playing around with the filetypes I get this error in all instances of the module:

Conversion from type 'DBNull' to type 'String' is not valid.

I tried to remove the modules from the pages and then add a 'fresh' version but that doesn't work. What must I do? Deinstall, then reinstall the module?

 


AssemblyVersion: 04.05.05
PortalID: 0
PortalName: Radiotherapie intranet
UserID: 6
UserName: lineup.nl\jadejong
ActiveTabID: 123
ActiveTabName: Voor de beheerders
RawURL: /radio/Voordebeheerders/tabid/123/Default.aspx
AbsoluteURL: /radio/Default.aspx
AbsoluteURLReferrer: http://test2000.lineup.nl...bid/123/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9a046c97-3a78-456c-ba3c-f3f348533052
InnerException: Conversion from type 'DBNull' to type 'String' is not valid.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.VisualBasic.CompilerServices.Conversions.ToString
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Conversion from type 'DBNull' to type 'String' is not valid. ---> System.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid. at Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) at Bring2mind.DNN.Modules.DMX.Framework.ExtensionController.GetExtensions(Int32 PortalId, Int32 UserId, Boolean FilterPermissions, String ForEntryType, String ExtensionKeyPattern) at Bring2mind.DNN.Modules.DMX.ViewCollection.a(String A_0) at Bring2mind.DNN.Modules.DMX.ViewCollection.a(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Naam: TEST2000

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/25/2007 12:38 PM
Hi Alwin,
Can you give me (temporary) host access to your installation? I'd love to see how it can be broken in this way. Send me an email on peter@bring2mind.net.
Peter
Guido Kuehler
Basic Member
Basic Member
Posts:149


--
09/25/2007 8:10 PM

When you have access to SQL-Server-Tables look in the Table dbo.DMX_Extensions and search your added Extension. Now compare values from your entry with others.

We can reproduce this effect when we write not Value in the Field ResourceFile.

ResourceFile:

DesktopModules/Bring2mind/DMX/App_LocalResources/SharedResources

You can also correct the false entry with the followed SQL-Statement but please make a Backup from your Database before make so changes!!!!!!

----------------------------------------------------------------------------

Update dbo.DMX_Extensions set ResourceFile='DesktopModules/Bring2mind/DMX/App_LocalResources/SharedResources' Where ExtensionKey = 'File.YourAddedExtension'

-----------------------------------------------------------------------------

For Example we add a new extenson with the Name or in DMX have this field "Specific Type:" orf then the Select is how followed.

Update dbo.DMX_Extensions set ResourceFile='DesktopModules/Bring2mind/DMX/App_LocalResources/SharedResources' Where ExtensionKey = 'File.orf'

I hope this help!

 

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/26/2007 12:31 AM
Yes, I saw the issue. It's fixed for the next release.
You are not authorized to post a reply.