none
"Identifier expected" without any specific information

    Question

  • Hello to all,

    We've all encountered a lot of errors and warnings whenever we debug our applications, but what I encountered recently was ridiculus!

    Has anybody encountered an "Identifier expected" error that doesn't tell you WHERE the error came from?

    I'm using VS2005 and developing 2 intranet sites. The main intranet site works fine, but just recently, whenever I try to build (Ctrl + B) or debug (F5) my 2nd site, I get just one error: "Identifier expected"

    It goes like this:
    Description: Identifier expected
    File: <empty>
    Line: <empty>
    Column: <empty>
    Project: <empty>

    I can't debug by site's codes because of this!

    If there is something with my code, why wouldn't the error list panel tell me what and where it is?!

    Somebody please help me! I feel like an idiot already...


    "Better be a geek than an idiot..."
    Monday, March 16, 2009 8:48 AM

Answers

  • Hello Falcon,

    Compilation Error CS1001 means we did not supply an identifier for an Enum, parameter name, etc...

    Please take a look at this article for more information and some samples that generate CS1001:
    http://msdn.microsoft.com/en-us/library/b839hwk4(VS.80).aspx

    In this case, based on the detailed output, the issue might be caused by UserLogs.aspx.cs. We will be very appreciated if you could post a code snippet of UserLogs.aspx.cs file for our further analysis.

    Also, we could post threads in our ASP.NET Forum for more information. More specifically, if the code related to a purticular database, like SQL Server, MySql, or any database else, please take a look at this thread in our ASP.NET Forum.

    Thanks a lot!
    Best regards,
    Roahn
    Tuesday, March 17, 2009 3:11 AM

All replies

  • Okay, my problem got a little worse...

    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: CS1001: Identifier expected

    Source Error:

    [No relevant source lines]

    Source File:    Line: 0



    C:\WINDOWS\system32> "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\eWorld.UI\2.0.6.2393__24d65337282035f2\eWorld.UI.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\assembly\dl3\cbfaaf67\00caf9dc_a75cc701\AjaxControlToolkit.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.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.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Code.ujgkfmzi.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Web_z-meu5zj.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\assembly\dl3\bef36a0b\009efc35_fd40c701\EclipseWebSolutions.DatePicker.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Web_userlogs.aspx.cdcab7d2.tnt74zkh.dll" /D:DEBUG /debug+ /optimize- /win32res:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\bk1vfx9m.res" /w:4 /nowarn:1659;1699;1701 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Web_userlogs.aspx.cdcab7d2.tnt74zkh.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Web_userlogs.aspx.cdcab7d2.tnt74zkh.1.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ims(admin)\0adda406\6e2194ce\App_Web_userlogs.aspx.cdcab7d2.tnt74zkh.2.cs" 


    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.







    c:\Inetpub\wwwroot\IMS(Admin)\UserLogs.aspx.cs(139,44): error CS1001: Identifier expected



    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    "Better be a geek than an idiot..."
    Tuesday, March 17, 2009 2:40 AM
  • Hello Falcon,

    Compilation Error CS1001 means we did not supply an identifier for an Enum, parameter name, etc...

    Please take a look at this article for more information and some samples that generate CS1001:
    http://msdn.microsoft.com/en-us/library/b839hwk4(VS.80).aspx

    In this case, based on the detailed output, the issue might be caused by UserLogs.aspx.cs. We will be very appreciated if you could post a code snippet of UserLogs.aspx.cs file for our further analysis.

    Also, we could post threads in our ASP.NET Forum for more information. More specifically, if the code related to a purticular database, like SQL Server, MySql, or any database else, please take a look at this thread in our ASP.NET Forum.

    Thanks a lot!
    Best regards,
    Roahn
    Tuesday, March 17, 2009 3:11 AM