LINQ Extensibility Methods

Discussion in 'Databases' started by Ken McLean, Mar 23, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am using LINQ to query my database. It works OK on my local development computer but when I upload the application to the discount.ASP.NET server, I get an compliation error message --

    BC30242: 'Partial' is not valid on a method declaration

    The message is referring to the declaration of a Partial Private Sub declaration listed under the Extensibility Method Definitions generated by the Visual Studio 2008 IDE.

    Any ideas on how to get around this problem? Thanks for your help.

    Ken McLean
     
  2. Hi,
    I've seen this come up on the Microsoft Connect site.
    From what it appears there is a mismatch at times in the web.config versioning.
    If your site is on IIS7 check the versions in the GAC, you can get those numbers from the IIS Manager or have me check for you.
    Salute,
    Mark
     
  3. Thanks -- the problem was the web.config file. When I re-uploaded it the LINQ code worked OK.

    Ken McLean
     
  4. Very cool ;-)
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page