0

Hi, when i try to logon on server under user account (customer) i have error. This is a previously working user, he already has organization, mailboxes, he worked before. Also there are users who only created and at the first logon the same error. The error is not required for all new users, I created 5 new users for the test – there was no problem.

 

Server Error in ‘/’ Application.

Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
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: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.

Source Error:

 

Line 76:             <ItemTemplate>
Line 77: 	            <asp:hyperlink id=lnkEdit runat="server" CssClass="Medium" NavigateUrl='<%# GetSpaceHomePageUrl((int)Eval("PackageID")) %>'>
<span style="color: red;">
Line 78: 		            <%# PortalAntiXSS.EncodeOld((string) Eval("PackageName")) %>
</span>Line 79: 	            </asp:hyperlink>
Line 80:             </ItemTemplate>

Source File: c:\SolidCP\Portal\DesktopModules\SolidCP\UserSpaces.ascx    Line: 78

 

Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
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: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.

Source Error:

 

Line 76:             <ItemTemplate>
Line 77: 	            <asp:hyperlink id=lnkEdit runat="server" CssClass="Medium" NavigateUrl='<%# GetSpaceHomePageUrl((int)Eval("PackageID")) %>'>
<span style="color: red;">Line 78: 		            <%# PortalAntiXSS.EncodeOld((string) Eval("PackageName")) %>
</span>Line 79: 	            </asp:hyperlink>
Line 80:             </ItemTemplate>


Source File: c:\SolidCP\Portal\DesktopModules\SolidCP\UserSpaces.ascx    Line: 78

Attachments

SolidCPerror.png