Errors During connection addition in dotnetnuke of web host and Solutions
After www.mywebsite.com/newsis added, it is displayed as follows:
Dotnetnuke configuration error
Domain Name "www.mywebsite.com/news" does not exist in the Database
Dotnetnuke supports multiple portals from a single database/codebase. It accomplishes
This by converting the URL of the client browser request to a valid portalid in
Portals database table. The following steps describe the process:
...
(Saving)
Add
After www.mywebsite.com/news, the following error occurs:
Server Error in '/'application.
--------------------------------------------------------------------------------
Object cannot be cast from dbnull to other types.
Description: An unhandled exception occurred during the execution of the current web
Request. Please review the stack trace for more information about the error and where
It originated in the code.
Exception details: system. invalidcastexception: object cannot be cast from dbnull
Other types.
Source error:
An unhandled exception was generated during the execution of the current Web request.
Information regarding the origin and location of the exception can be identified
Using the exception stack trace below.
Stack trace:
[Invalidcastexception: object cannot be cast from dbnull to other types.]
System. dbnull. system. iconvertible. toint32 (iformatprovider provider) + 48
System. Convert. toint32 (object Value) + 36
Dotnetnuke. portalsettings. getportalsettings (int3tabid, int32 portalid) + 1544
Dotnetnuke. portalsettings .. ctor (int32 Tabid, int32 portalid) + 253
Dotnetnuke. Global. application_beginrequest (Object sender, eventargs e) + 756
System. Web. synceventexecutionstep. system. Web. httpapplication + iexecutionstep. Execute ()
+ 60
System. Web. httpapplication. executestep (iexecutionstep step, Boolean &
Completedsynchronously) + 87
--------------------------------------------------------------------------------
Version Information: Microsoft. NET Framework Version: 1.1.4322.573; ASP. NET
Version: 1.1.4322.573
++ ++
Self-Solution
1. Upload dvnews3 to the root directory and change the folder name to news.
2. In the database (portals table-portalalias ),
) Changed to news.
3. You cannot create portalalias directly. Otherwise, the second error is displayed.