eramgarden
Well-known member
- Joined
- Mar 8, 2004
- Messages
- 579
I have this line of code in ASP.Net 2.0/VB.Net Global.asax file:
For the Blue text, I get this error msg:
Option Strict On disallows implicit conversions from String to Double
For the Green Text, I get this:
Option Strict On disallows implicit conversions from Boolean to Double
I tried CType and CDbl but still get errors. Any ideas on what to do? I have
Strict Option On.
Code:
Try
If e.Identity.IsAuthenticated And Not (e.Identity.IsAnonymous) And _
e.Identity.AuthenticationType.Length <> 0 Then
Dim userIdentity As String
userIdentity = e.Identity.Name()
End If
Catch ex As Exception
HttpContext.Current.Response.Redirect[B]("[COLOR=Blue]AccessDenied.aspx?Authenticated="[/COLOR] + [COLOR=YellowGreen]e.Identity.IsAuthenticated [/COLOR] [/B] + "&Anonymous=" + e.Identity.IsAnonymous)
End Try
For the Blue text, I get this error msg:
Option Strict On disallows implicit conversions from String to Double
For the Green Text, I get this:
Option Strict On disallows implicit conversions from Boolean to Double
I tried CType and CDbl but still get errors. Any ideas on what to do? I have
Strict Option On.