November Happy Hour will be moved to Thursday December 5th.

Invalid token ',' in class, struct, or interface member declaration

Vote:
 

 

Does anyone understand what this error means?

 

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: CS1519: Invalid token ',' in class, struct, or interface member declaration

Source Error:

 
Line 17: public class ProfileCommon : System.Web.Profile.ProfileBase {
Line 18:     
Line 19:     public virtual EPiServer.Personalization.SubscriptionInfo, EPiServer SubscriptionInfo {
Line 20:         get {
Line 21:             return ((EPiServer.Personalization.SubscriptionInfo, EPiServer)(this.GetPropertyValue("SubscriptionInfo")));


Source File: c:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.0.cs    Line: 19 



C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\assembly\dl3\4c9d86fd\5fc95b12_54dccd01\Elmah.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\assembly\dl3\86ecf9bd\335f7212_54dccd01\Google.GData.YouTube.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\assembly\dl3\376c2b3b\acdc6e12_54dccd01\Google.GData.Extensions.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\assembly\dl3\cdb0923b\6311be30_57dccd01\SuntLiv.Web.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\assembly\dl3\dad79831\5a3b6712_54dccd01\Google.GData.Client.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /out:"C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.0.cs" "C:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.1.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

c:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.0.cs(19,62): error CS1519: Invalid token ',' in class, struct, or interface member declaration
c:\Users\KALA01\AppData\Local\Temp\Temporary ASP.NET Files\root\b67b9e9f\7064b586\App_Code.vz8303j2.0.cs(46,57): error CS1519: Invalid token ',' in class, struct, or interface member declaration
 
#64305
Dec 17, 2012 14:25
Vote:
 

My guess is that you are missing some EPiServer dll:s (of correct versions) in the sites bin folder. Create a demo site of the same version and see if your site lacks some of the dll:s from the demo site.

#64309
Dec 17, 2012 15:27
Vote:
 

Thank you. I will! 

#64310
Dec 17, 2012 15:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.