I installed VS 2019 Enterprise, then RemObjects Elements, then DevExpress .NET V20.
I create a new project (Classic .NET web application)
But I cannot see the DevExpress .NET Controls, I tried to do installation in different PCs, but all are the same.
When I create a VS C# classic web application all are fine, and I can see the DevExpress controls and I can create my web application using DevExpress.
While using Oxygen…
I cannot see DevExpress in the toolbox.
So I manually add reference to DevExpress
I manually write the ASPX tags for DevExpress Web Dashboard Default.ASPX
I created an event for the ASPxWebDashboard
I put in uses DevExpress,= and DevExpress.DashboardWeb;
Try to compile, then I get following error
Severity
Code
Description
Project
File
Line
Suppression State
Error
(E28) Unknown type “DevExpress.DashboardWeb.ASPxDashboard”
note:
I notice that when I create new element project in VS, always it is set to 4.0, even when in settings showing 4.5.2 or 4.8
Example:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3274: The primary reference “DevExpress.Charts.v20.1.Core, Version=20.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL” could not be resolved because it was built against the “.NETFramework,Version=v4.5.2” framework. This is a higher version than the currently targeted framework “.NETFramework,Version=v4.0”.
This out put when I compiled my project, while in settings it is 4.5.2
Curious. It looks like DevExpress might be doing something thats specific to VC#. Can I ask to reach out to their support, as well? That said, I’ll make sure the VS team has a look at this next week.
This sounds like you might need to add more additional references.
OK,
When I add following line to project file “.element” <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
it compiled, but when I try to brows I get following error
Compiler Error Message: CS1061: ‘default_aspx’ does not contain a definition for ‘ASPxWebDashboard1_DashboardLoading’ and no accessible extension method ‘ASPxWebDashboard1_DashboardLoading’ accepting a first argument of type ‘default_aspx’ could be found (are you missing a using directive or an assembly reference?)
knowing that the events are defined
TargetFrameworkVersion is a legacy setting, TargetFramework is the more modern.current version, as it also specifies the framework, type (eg .NETFramework vs .NETCore.)
When I use only <TargetFramework>.NETFramework4.7.2</TargetFramework>
it dose not compile and give an error, while when I put both the above line as below line project compile, but still when I try to run, I get error as below <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
Compiler Error Message: CS1061: ‘default_aspx’ does not contain a definition for ‘ASPxWebDashboard1_DashboardLoading’ and no accessible extension method ‘ASPxWebDashboard1_DashboardLoading’ accepting a first argument of type ‘default_aspx’ could be found (are you missing a using directive or an assembly reference?)
Well, this is my new findings.
From ASPX page when I create a new event for dxDashboard, the event it is created above protected section, so when I compile and try to run\browse I get the error which is in previous post.
I simply moved the events definitions to below protected section, and compile and run correct as below
_Default = public partial class(System.Web.UI.Page)
Oh wait, this is going to be using the Legacy target, right? Could be you need TargetFrameworkVersion then, yes.
While I doin’t see this error, only the “unknown namespace DevExpress” ones (which are expected, since I dont have that dll), I would expect this could be a follow-up error from those.
I suggest top review the references an d make sure you reference all the required DevEx .dlls to resolve those errors first, and see if this last error then goes away as well…
Doing more test…
first once I use <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
then solution compile correctly.
But I am having strange behaviour, and every time I have to alter\update the project file outside VS manually to be able to open it again.
Example of my findings (Knowing that I am using the trial edition)
I created a folder called myClasses, then I copy 2 C# files and paste them to myClasses folder, then I add those 2 files… I close the project then open it again… project showing (Unloaded) and could not open it.
I try many times to loaded, I try to move the 2 fils to root project folder, but the same issue… Once I change the extension to .pas, then project loaded successfully regardless the 2 files inside a folder or not.
I Used the 2 files as described above (.PAS which exists inside a folder), inside those files I created a new public class with some methods… then I open default.pas, and I tried to use those classes, well during writing the code, I can see the classes in code completion, but once I try to compile, I get an error that the class is not known… so I move the 2 files to project root, then try to compile, and compilation success.
if I am not mistaken there is some compatibility issue with VS2019.
Please can you clarify those errors if there is a solution.
I am using Oxygen V8 in my company with bundled VS2013 since many years, and it is working great
hmm, do you get any more specific error message when you try to reload and it fails. What steps do you use to add the files? does the project file look broken after the files get added?
Hi
There is no error message.
I simply use VS to Add existing item\Add new folder
Project file is not broken, but when I add the C# files, then save and close VS, then open it again and the project did not loaded, then I had to do some test, and when I update the project file and change file extension fro cs to pas, hte project loaded normally
Hello,
I can see the problem with Unloaded project. I am working on a solution but meanwhile when project is in Unloaded state you can invoke “Reload project” command in Solution explorer context menu, and that will load the project.