BrowseLab Products Demos Support Company Download Pricing
Contents
:
Search:

Home > HelpConsole 2008 > Autologin - CS1002: ; Expected

Autologin - CS1002: ; Expected

Symptoms:
After creating an autologin script as described in How to automatically login to a project via session variables the following error occurs:


Cause:
The server is trying to process the script as C# (programming language), but should be processing it as VB.

Solution:
Add the line: <%@ Page Language="vb"%> to the top of the script

example: 
<%@ Page Language="vb"%>
<%
Session("test2_autologin_username") = "admin"
Session("test2_autologin_password") = "password"
Response.Redirect("default.aspx")
%>


Applies to: 
HelpConsole 2008
HelpConsole 2010

Properties
Article ID:
autologin_-_cs1002__;_expected
Views: 961
Created By: admin
Modified By: Aaron
Created Date: 5/1/2013 3:16 PM
Last Modified: 11/20/2014 4:20 PM
Actions
Print This Article
Bookmark
Email This Article
Previous Article
Next Article

Was this page helpful?YesNo