Error generating WebApp

Last post 07-05-2006 4:12 PM by phuff. 1 replies.

Sort Posts:

  • Error generating WebApp

    07-04-2006, 5:19 AM
    • Member
      37 point Member
    • warrenroscoe
    • Member since 07-04-2006, 8:58 AM
    • Posts 8

    I thought this post might be useful for the LINQ/BLINQ dev's (if they monitor this community) or anyone else having a problem generating an app ...

    I installed May CTP of LINQ and BLINQ had an old stored procedure that does some maintenance on SQL foreign keys (see below).

    When generating my WebApp I got an error. I tried running the compiler command, which displays a load of C# compiler errors related to my stored procedure. Clearly since I am using system objects in the procedure, there seemed to be a conflict in property names ... (since the procedure is old and not required I simply deleted the procedure ... however, it may be an indication that some different property naming is reuiqred within LINQ or BLINQ!???

    BLINQ command line:

    blinq /t:C:\Work\Blinq\CRISP /pageDataSource /server:WR-DEV2005 /database:CRISP /namespace:BlinqCrisp /vDir:BlinqCRISP /f /sprocs

    This simply produces the result below with no indication as to what the error might be:

    The compiler exited with code 1.  The command it executed was C:\Program Files\LINQ Preview\bin\csc.exe /r:"C:\Program Files\LINQ Preview\bin\System.Data.DLinq.dll" /r:"C:\Program Files\LINQ Preview\bin\System.Query.dll" /r:"C:\Program Files\LINQ Preview\bin\System.ComponentModel.Data.dll" /t:library /out:"C:\Documents and Settings\waros\Local Settings\Temp\CRISP.dll" "C:\Documents and Settings\waros\Local Settings\Temp\CRISP.cs".
    No WebApp created

    Compiler command (this shows detailed C# compiler errors which helps to isolate the problem):

    "C:\Program Files\LINQ Preview\bin\csc.exe" /r:"C:\Program Files\LINQ Preview\bin\System.Data.DLinq.dll" /r:"C:\Program Files\LINQ Preview\bin\System.Query.dll" /r:"C:\Program Files\LINQ Preview\bin\System.ComponentModel.Data.dll" /t:library /out:"C:\Documents and Settings\waros\Local Settings\Temp\CRISP.dll" "C:\Documents and Settings\waros\Local Settings\Temp\CRISP.cs"

    This shows (lots of) messages similar to the following:

    c:\Documents and Settings\waros\Local Settings\Temp\CRISP.cs(13282,20): error CS0102: The type 'BlinqCrisp.PrDBAForeignKeyMaintenanceResult' already contains a definition for '_Name'
    c:\Documents and Settings\waros\Local Settings\Temp\CRISP.cs(13280,20): (Location of symbol related to previous error)

    Deleting the procedure and rerunning the BLINQ command solved the problem.

     

  • Re: Error generating WebApp

    07-05-2006, 4:12 PM
    • Contributor
      2,680 point Contributor
    • phuff
    • Member since 06-11-2002, 8:39 AM
    • Redmond, WA
    • Posts 547
    Thanks for reporting this, Warren.  We're looking into this and will make sure it's fixed in future releases.  You found one workaround- delete the sproc.  Another workaround is to delete the method and result type created by Blinq to represent the sproc in crisp.cs.  In your case the result type was PrDBAForeignKeyMaintenanceResult.
    Polita Paulus

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (2 items)