Errors During connection addition in dotnetnuke of web host and Solutions

Source: Internet
Author: User
Tags stack trace dotnetnuke

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.