This is a migrated thread and some comments may be shown as answers.

SofiaCarRentalDAL compile error

2 Answers 24 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Craig
Top achievements
Rank 1
Craig asked on 21 Mar 2013, 11:24 AM
Hi,
I'm trying to run the Sofia Car Rental - WCF Plain Services C# sample but I get the following error:

'Missing partial modifier on declaration of type 'SofiaCarRentalDAL.ISofiaCarRentalEntityDiagramsUnitOfWork'; another partial declaration of this type exists C:\Download\Telerik\ORM\SamplesKitSolutions\Telerik.OpenAccess.SamplesKit\N-Tier example_D5F6B457\SofiaCarRentalDAL\SofiaCarRental.cs 111 19 SofiaCarRentalDAL'

OpenAccess version is 2013.1.219.
Visual Studio 2010 SP1

Regards,
Craig

2 Answers, 1 is accepted

Sort by
0
Dimitar Tachev
Telerik team
answered on 22 Mar 2013, 09:19 AM
Hi Craig,

 
Please accept our apologies for the inconvenience caused.

This issue is already fixed and it will be released with the Service pack for Q1 release, currently planned for the end of April.

The exception was thrown when you regenerate your RLINQ file which with the last version of OpenAccess ORM is generating the ISofiaCarRentalEntityDiagramsUnitOfWork interface in the model file (the SofiaCarRental.cs one) but the sample was made when this interface was not created automatically.

In order to fix this issue you can delete the old UnitOfWork.cs file from the SofiaCarRentalDAL project (the one which is selected in the attached image).

Please bear in mind that in order to fix this issue permanently (even if you reset the sample), you will need not only to delete the file from the samples cache folder of the Samples Kit (the one which is opening when you click Open Sample Folder) but to delete it from the samples folder in the OpenAccess installation folder too (you could find the file at OpenAccessInstallDirectory\ProductSdk\Content\Samples\
wpf\CSharp\N-Tier example\SofiaCarRentalDAL\UnitOfWork.cs).

I hope this is applicable for you.

Kind regards,
Dimitar Tachev
the Telerik team
Free Webinar: OpenAccess Integration in Sitefinity. SIGN UP NOW.
0
Craig
Top achievements
Rank 1
answered on 22 Mar 2013, 10:08 AM
Hi Dimitar,
I've deleted the file and it works now. Thank you.

Regards
Craig
Tags
Getting Started
Asked by
Craig
Top achievements
Rank 1
Answers by
Dimitar Tachev
Telerik team
Craig
Top achievements
Rank 1
Share this question
or