Just upgraded from VS2008 to VS2010.
My target was the 3.5 framework and I got 5 projects in the solution.
The Mynamespace.ORM project could not be seen by other projects, and therefore I could not compile.
Found out that on the Mynamespace.ORM project, property page "Enhancing" was set to true,-
therefore it always compiled against the 4.0 framework - target was defined as 3.5!
Tried to set "Enhancing" to false. Then I could compile, but the site failed to run.
Now I target 4.0 framwork on all my projects. Solution do compile and my app. are up and running.
So now you know, if you find ourself in that particular situation.
20 Answers, 1 is accepted
This is a known issue of the OpenAccess' enhancer that we are currently working on. The workaround at the moment is to define a postbuild step that calls the enhancer. To achieve that, first disable the Enhancing property of the project. Then right-click on the project and open its Properties window (Alt+Enter), switch to the Build Events tab and specify the following command as a post-build step:
C:\Program Files\Telerik\OpenAccess ORM\sdk\venhance.exe -assembly:$(TargetFileName)
C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\venhance.exe -assembly:$(TargetFileName)
Best wishes,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
However I now get this
Error 15 The command "C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\venhance.exe -assembly:RTODataLayer.dll" exited with code 9009.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Telerik.OpenAccess.RT.sql.SQLException: Invalid object name 'voa_keygen'.
Source Error:
Line 110: Database db = Database();
Line 111:
Line 112: IObjectScope newScope = db.GetObjectScope();
Line 113: return newScope;
Line 114: }
|
Source File: d:\websites\ca\medportal\postgrad\App_Code\RTO\RTOObjectScopeProvider.cs Line: 112
Stack Trace:
[SQLException: Invalid object name 'voa_keygen'.] |
Sorry for that, the venhance.exe path should be actually enclosed with quotes to escape the space characters. So the right command would be:
"C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\venhance.exe" -assembly:$(TargetFileName)
All the best,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thanks, finally I can stop using 2008 :)
I was finally able to run the application following your instructions but now I get this error:
Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
The post-build command I'm using is:
"C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\venhance.exe" -assembly:$(TargetFileName) |
Any ideas?
Thanks.
Jose
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
Source Error:
|
Please append the following option to the command:
-verboseMode:4
You can also try upgrading to the latest internal build (2010.1.414.3) if you are not already using it.
Greetings,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Here is the result after I added the parameter.
Server Error in '/BikeTheSitesReservation' Application.
Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Configuration.ConfigurationErrorsException: Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
Source Error:
|
Source File: c:\Users\jrguay\Documents\Visual Studio 2010\WebSites\BikeTheSitesReservation\App_Code\BTSScopeProvider.cs Line: 120
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Server Error in '/BikeTheSitesReservation' Application.
Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Configuration.ConfigurationErrorsException: Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
Source Error:
|
Source File: c:\Users\jrguay\Documents\Visual Studio 2010\WebSites\BikeTheSitesReservation\App_Code\BTSScopeProvider.cs Line: 120
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
thank you for the work-arounf. I have the same issue and your fix
"C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\venhance.exe" -assembly:$(TargetFileName)
works for me. Great.
Regards, Mikael
Sorry, maybe I did not express myself clear enough. My idea was to set this option in order to get more messages from the enhancer in the Output window of Visual Studio. You can open that window by pressing Ctrl + W + O or from the View -> Output menu. While you are rebuilding the solution afterwards, the enhancer will write some messages to that window, probably one of them will be an error that says why the assembly cannot be enhanced. Please paste here these output messages so we can see the error.
Greetings,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Here is the result from the output window:
------ Rebuild All started: Project: CSW.AuthorizeNET, Configuration: Debug Any CPU ------
CSW.AuthorizeNET -> C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\CSW.AuthorizeNET\bin\Debug\CSW.AuthorizeNET.dll
------ Rebuild All started: Project: BikeTheSitesData, Configuration: Debug Any CPU ------
BikeTheSitesData -> C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll
Telerik OpenAccess Enhancer, Version 2010.1.414.3
Copyright (C) 1996-2010 Telerik
Enhancing C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll ...
Check existence of referenced assemblies...
Checking referenced assemblies...done.
Copying file (Source=C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll, Target=C:\Users\jrguay\AppData\Local\Temp\_ptil_5472\BikeTheSitesData.dll):
Deleting Target: C:\Users\jrguay\AppData\Local\Temp\_ptil_5472\BikeTheSitesData.dll...deleted.
Copying Source: C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll...copied.
Copying file (Source=C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.pdb, Target=C:\Users\jrguay\AppData\Local\Temp\_ptil_5472\BikeTheSitesData.pdb):
Deleting Target: C:\Users\jrguay\AppData\Local\Temp\_ptil_5472\BikeTheSitesData.pdb...deleted.
Copying Source: C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.pdb...copied.
Deleting file (C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll):
C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll...deleted.
Deleting file (C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.pdb):
C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.pdb...deleted.
Enhanced class BikeTheSitesData.WebSchedule
Enhanced class BikeTheSitesData.Template
Enhanced class BikeTheSitesData.AccountClass
Enhanced class BikeTheSitesData.Rider
Enhanced class BikeTheSitesData.Payment
Enhanced class BikeTheSitesData.Tour
Enhanced class BikeTheSitesData.Reservation
Enhanced class BikeTheSitesData.ReferralType
Enhanced class BikeTheSitesData.Contact
Enhanced class BikeTheSitesData.Address
Enhanced class BikeTheSitesData.PaymentDetail
Enhanced class BikeTheSitesData.Location
Enhanced class BikeTheSitesData.ClientType
Enhanced class BikeTheSitesData.Coupon
Enhanced class BikeTheSitesData.Branch
Enhanced class BikeTheSitesData.TaxRate
Enhanced class BikeTheSitesData.BranchAddress
Enhancing of C:\Users\jrguay\Documents\Visual Studio 2010\Projects\BikeTheSitesReservation\BikeTheSitesData\bin\Debug\BikeTheSitesData.dll complete.
------ Rebuild All started: Project: C:\...\BikeTheSitesReservation\, Configuration: Debug Any CPU ------
Validating Web Site
Building directory '/BikeTheSitesReservation/App_Code/'.
Building directory '/BikeTheSitesReservation/Modules/UserControls/'.
Building directory '/BikeTheSitesReservation/Scripts/'.
Building directory '/BikeTheSitesReservation/'.
C:\Users\jrguay\Documents\Visual Studio 2010\WebSites\BikeTheSitesReservation\App_Code\Utility.cs(486,25): warning CS0168: The variable 'ex' is declared but never used
C:\Users\jrguay\Documents\Visual Studio 2010\WebSites\BikeTheSitesReservation\Modules\UserControls\Availability.ascx(19,13): warning CS0618: 'Telerik.Web.UI.RadToolTipBase.ManualClose' is obsolete: 'This property is obsolete. Please use HideEvent="ManualClose" instead.'
C:\Users\jrguay\Documents\Visual Studio 2010\WebSites\BikeTheSitesReservation\Reservation.aspx.cs(161,29): warning CS0168: The variable 'ex' is declared but never used
Validation Complete
========== Rebuild All: 3 succeeded, 0 failed, 0 skipped ==========
========== OpenAccess All: 0 succeeded, 0 failed, 3 skipped ==========
Thank you for the information. It seems the assembly is enhanced correctly, I do not see any errors in the output. However, the website that references this assembly uses a not-enhanced version, maybe an old one. I would suggest you to clean the bin directory of the website and manually copy the enhanced BikeTheSitesData.dll assembly from the bin folder of the BikeTheSitesData project.
Sincerely yours,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
That did the trick. It is working now. Thanks!
Ok, I hate the idea of not having a project reference, so is there any ETA on when the next build that will have this issue fixed is going to be released?
Thank you.
Jose
Hopefully we will be able to provide the service pack by the end of the next week. I will notify you in this thread once it is released.
Sincerely yours,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
The Service pack is released and you should be able to download it from your account. We believe that all those enhancer problems are resolved now.
Sincerely yours,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Does this build also include the visual designer for VS 2010?
Thanks.
Jose
Yes, it does. You can give it a try.
Kind regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.