PDA

View Full Version : LINQ Extensibility Methods


Ken McLean
03-23-2009, 10:08 PM
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

wisemx
03-24-2009, 05:26 AM
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

Ken McLean
03-25-2009, 05:56 PM
Thanks -- the problem was the web.config file. When I re-uploaded it the LINQ code worked OK.

Ken McLean

wisemx
03-26-2009, 05:10 AM
Very cool ;-)