N/APosted on - 02/26/2012
It's been a long time i used DataContext Menu to set up a C#. 2010 application, and I’m already getting an error message:
"Error 2 'RpcSupport.Attestations' does not contain a definition for 'Receive_Date' and no extension method 'Receive_Date' accepting a first argument of type 'Rp.Att' could be found (are you missing a using directive or an assembly reference?) C:RPAttes.aspx.cs 94 16 RpSup.
att.dbml using the designer, but it doesn't have the "Receive_Date" column in the extension methods.
Please help me figure out how to fix this.
DataContext Menu in C# application causing error
The problem that you are facing is not related to the design interface of the application as far as I know. There must be something wrong in the coding of the file. Try the following.
In the aspx.cs code, look for the receive_date that you are trying to get the value of which does not even exist means that it is getting the null and giving this error or throwing exception at runtime.
This indicates that there is typo. Start looking for the database that has a table or a attribute named the same. If you found such then remove this code of line. There are also few things that might be calling this one so you should also take care of them too.
Once done, save your project and render it or execute it and see if it still gives error or not.
For the more detailed guide,