I just installed the Timetracker app and when I lauch the
http://localhost/TTWebVBSDK I get the following error
Server Error in '/TTWebVBSDK' 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: The compiler failed with error code 1.
C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\assembly\dl3\72e500b7\00c47ac6_3325c301\ASPNETTimeTracker.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.1.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(56) : error BC30456: 'UserRoles' is not a member of '<Default>'.
If Request.Cookies(Global.UserRoles) Is Nothing Then
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(58) : error BC30456: 'UserRoles' is not a member of '<Default>'.
ElseIf Request.Cookies(Global.UserRoles).Value = "" Then
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(70) : warning BC40000: 'Public Shared ReadOnly Property AppSettings() As System.Collections.Specialized.NameValueCollection' is obsolete: 'This method is obsolete, it has
been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
Dim newUser As New TTUser(0, Context.User.Identity.Name, [String].Empty, ConfigurationSettings.AppSettings(Global.CfgKeyDefaultRole))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(70) : error BC30456: 'CfgKeyDefaultRole' is not a member of '<Default>'.
Dim newUser As New TTUser(0, Context.User.Identity.Name, [String].Empty, ConfigurationSettings.AppSettings(Global.CfgKeyDefaultRole))
~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(90) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Value = cookieStr
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(91) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Path = "/"
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(92) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Expires = DateTime.Now.AddMinutes(1)
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(99) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Dim ticket As FormsAuthenticationTicket = FormsAuthentication.Decrypt(Context.Request.Cookies(Global.UserRoles).Value)
~~~~~~~~~~~~~~~~
<script type=text/javascript> function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } } </script>
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Based on the URL you posted http://localhost/TTWebVBSDK it
looks like you have installed the .Net 1.x version of TT and are trying to run it with .Net 2.0.
It probably should work, but I would suggest installing TT for 2.0 and create a new project based off the starterkit.
1) in VWD create a new Web Site and point it directly to your IIS local web server call it TimeTracker e.g.
http://localhost/TimeTracker (since I have problem getting VWD web server to work using the Beta release) this step will create a web site on your local IIS, you can do this manually too.
2) Unzip the file downloaded into the C:\Inetpub\wwwroot\TimeTracker and overwrite any files there.
3) Launch the site in IE e.g.
http://localhost/TimeTracker/Default.aspx
Check in web.config for connectionString, configure it according to your server name, password etc.
In Time Tracking System, it uses inbuild Membership classes for user creation, updation etc..
You have to register your DB with ASP.NET Membership classes by executing the command line utility in VS prompt
aspnet_regsql, it will open one window, where you have to configure DB.
If this helpful to you please mark it as answer, So it will help for other people
Hope it will help you, let me know.
Chetan Sarode
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
jayfrankland
Member
5 Points
1 Post
UserRoles is not a member of <Default> error in compilation
Mar 09, 2006 01:50 PM|LINK
I just installed the Timetracker app and when I lauch the http://localhost/TTWebVBSDK I get the following error
Server Error in '/TTWebVBSDK' 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: The compiler failed with error code 1.
C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\assembly\dl3\72e500b7\00c47ac6_3325c301\ASPNETTimeTracker.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ttwebvbsdk\f6c92a0e\bca8c8b6\App_global.asax.jgfsszsy.1.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(56) : error BC30456: 'UserRoles' is not a member of '<Default>'.
If Request.Cookies(Global.UserRoles) Is Nothing Then
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(58) : error BC30456: 'UserRoles' is not a member of '<Default>'.
ElseIf Request.Cookies(Global.UserRoles).Value = "" Then
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(70) : warning BC40000: 'Public Shared ReadOnly Property AppSettings() As System.Collections.Specialized.NameValueCollection' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
Dim newUser As New TTUser(0, Context.User.Identity.Name, [String].Empty, ConfigurationSettings.AppSettings(Global.CfgKeyDefaultRole))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(70) : error BC30456: 'CfgKeyDefaultRole' is not a member of '<Default>'.
Dim newUser As New TTUser(0, Context.User.Identity.Name, [String].Empty, ConfigurationSettings.AppSettings(Global.CfgKeyDefaultRole))
~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(90) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Value = cookieStr
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(91) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Path = "/"
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(92) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Response.Cookies(Global.UserRoles).Expires = DateTime.Now.AddMinutes(1)
~~~~~~~~~~~~~~~~
C:\Program Files\ASP.NET Starter Kits\ASP.NET TimeTracker (VBSDK)\TTWebVBSDK\global.asax(99) : error BC30456: 'UserRoles' is not a member of '<Default>'.
Dim ticket As FormsAuthenticationTicket = FormsAuthentication.Decrypt(Context.Request.Cookies(Global.UserRoles).Value)
~~~~~~~~~~~~~~~~
<script type=text/javascript> function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } } </script>
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Rick Gibson
Member
15 Points
3 Posts
Re: UserRoles is not a member of <Default> error in compilation
Mar 10, 2006 02:53 PM|LINK
Based on the URL you posted http://localhost/TTWebVBSDK it looks like you have installed the .Net 1.x version of TT and are trying to run it with .Net 2.0.
It probably should work, but I would suggest installing TT for 2.0 and create a new project based off the starterkit.
rchipman
Member
17 Points
6 Posts
Re: UserRoles is not a member of <Default> error in compilation
Aug 26, 2008 07:49 PM|LINK
Where can we find TT for 2.0? I am having the same issue and receiving the same error as described above.
Thank you.
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: UserRoles is not a member of <Default> error in compilation
Aug 28, 2008 03:31 AM|LINK
Here is the url
http://msdn.microsoft.com/en-us/vstudio/cc533488.aspx
1) in VWD create a new Web Site and point it directly to your IIS local web server call it TimeTracker e.g. http://localhost/TimeTracker (since I have problem getting VWD web server to work using the Beta release) this step will create a web site on your local IIS, you can do this manually too.
2) Unzip the file downloaded into the C:\Inetpub\wwwroot\TimeTracker and overwrite any files there.
3) Launch the site in IE e.g. http://localhost/TimeTracker/Default.aspx
Check in web.config for connectionString, configure it according to your server name, password etc.
In Time Tracking System, it uses inbuild Membership classes for user creation, updation etc..
You have to register your DB with ASP.NET Membership classes by executing the command line utility in VS prompt
aspnet_regsql, it will open one window, where you have to configure DB.
If this helpful to you please mark it as answer, So it will help for other people
Hope it will help you, let me know.
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: UserRoles is not a member of <Default> error in compilation
Sep 08, 2008 03:25 AM|LINK
Have you solved your problem
What is the status
Please post it
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: UserRoles is not a member of <Default> error in compilation
Oct 16, 2008 03:42 AM|LINK
Any updates on this
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.