Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30520: Argument matching parameter 'userName' narrows from 'Object' to 'String'.

Source Error:


Line 53:             Dim fromAddress As New MailAddress(drconfig("mail_mail"), Request.Url.Host)
Line 54:             smtpClient.Host = drconfig("mail_server")
Line 55:             smtpClient.Credentials = new System.Net.NetworkCredential(drconfig("mail_mail"),drconfig("mail_adres"))
Line 56:             smtpClient.Port = 25
Line 57:             message.From = fromAddress

Source File: D:\HostingSpaces\facetalkbook.ir\httpdocs\forgot.aspx    Line: 55







Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0