I created a new Winforms Xaf Xpo standard security project with 21.2/5
Then I changed the framework of each project to be 4.7.2
Then I ran the upgrade wizard.
Then I tried to convert the project files to use Nuget with Package References.
However I get the following build errors
Severity Code Description Project File Line Suppression State
Error CS1061 'SecurityStrategy' does not contain a definition for 'RegisterXPOAdapterProviders' and no accessible extension method 'RegisterXPOAdapterProviders' accepting a first argument of type 'SecurityStrategy' could be found (are you missing a using directive or an assembly reference?) DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\Program.cs 33 Active
Error CS0246 The type or namespace name 'SecuredObjectSpaceProvider' could not be found (are you missing a using directive or an assembly reference?) DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\WinApplication.cs 20 Active
I tried drilling into another new project and I can see that RegisterXPOAdapterProviders has namespace DevExpress.ExpressApp.Security
I already have that installed as a NugetPackage.
I tried installing DevExpress.ExpressApp.Security.Xpo but I get a message
Severity Code Description Project File Line Suppression State
Error NU1101 Unable to find package DevExpress.ExpressApp.Persistent.Base. No packages exist with this id in source(s): DevExpressMy, nuget.org, SBDCommonFeed#Local DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\DXXpo.Win.csproj 1
There are no packages starting with DevExpress.ExpressApp.Persistent in the feed.
The docs are here
This question is possibly related.
I managed to resolve this issue by including the package DevExpress.ExpressApp.Security.Xpo
I'm going to run the ASP.net website on Visual Studio 2019
It used the ASP.NET MVC framework With NHibernate.
The solution has 5 projects including Domain, UI, Media, Resources, ...
When building the solution, gets these errors.
CS0234 The type or namespace name 'MediaServices' does not exist in the namespace 'ESK.Business' (are you missing an assembly reference?) Pazar.Domain E:\project\esk\src\Domain\ESK.Domain\Subscribers\MoveMediaCommand.cs
CS0234 The type or namespace name 'Resources' does not exist in the namespace 'ESK' (are you missing an assembly reference?) ESK.Domain E:\project\esk\src\Domain\ESK.Domain\BackgroundTasks\BetterTask\Commands\TaskNotifyGalleryOnCreateEmailCommand.cs
The first error is concerned soap service but I can't resolve it.
The second error is concerned the Resources project that has the App_GlobalResources package.
Please help me to fix these errors. I think it's ABC in programming.
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'DbContextAttribute' could not be found (are you missing a using directive or an assembly reference?) Hotel C:\Users\Adis\source\repos\webapp\Hotel\Hotel\Migrations\20200625154358_firstOne.Designer.cs 12 Active
I have problem with designer.cs file, some files are deleted from my device, after that i can't build my project. Anyone have idea what to do ? Thanks.
Try uninstalling (if installed) EntityFramework and re-installing. Failing that, please post what references you currently have.
I'm using MSVS2015Pro for Xamarin.
I downloaded the project: https://github.com/Clans/FloatingActionButton
But I'm getting an error on:
using Clans.Fab;
It says:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Clans' could not be found (are you missing a using directive or an assembly reference?) FAB.Sample D:\Xamarin\FloatingActionButton-Xamarin.Android\FAB.Sample\FloatingActionMenuBehavior.cs 5 Active
as you can see on the following image:
[EDIT]
On the following image you have more details on errors:
My question is:
how can I debug these kind of errors?, I mean, not this one specifically but when there are using errors in general?. How can I know what: Clans.Fab; specifically is needed and from where do I have to download it?
[EDIT]
Then I did:
PM> Install-Package FAB.XamarinAndroid
and the errors disappeared and now I have 255 warnings.
Any idea on how to fix these warnings?
Below you have an screenshot with them:
Any idea on how to get rid of these warnings?
Visual Studio projects you download from github should contains all external references pointing to nuget packages and you restore them on first build (unless project is not configured to restore on build).
Local references are either framework references you should have installed on your machine or other projects inside the solution.
Normally a missed class will be paired with a yellow exlamation symbol on references list indicating that a necessary assembly could not be loaded, that could be a first check to do.
Output window from build could also provide insights about any anomaly related to references.
I'm trying to publish my project which has references to other projects in my solution.
Whenever I build the solution regularly it builds just fine without any errors.
However, whenever I attempt to publish the project I get the message "Build failed".
When I check the output log I see the following 3 errors:
C:\Users\MyUsername\Dropbox\Projects\SEO\QualityLinkBuilder\Web\RealestateJobsMigrations\RealestateJobsConfiguration.cs(10,101,10,124):
error CS0234: The type or namespace name 'RealestateJobsDbContext'
does not exist in the namespace 'RealestateScraper' (are you missing
an assembly reference?)
C:\Users\MyUsername\Dropbox\Projects\SEO\QualityLinkBuilder\Web\RealestateJobsMigrations\RealestateJobsConfiguration.cs(18,56,18,79):
error CS0234: The type or namespace name 'RealestateJobsDbContext'
does not exist in the namespace 'RealestateScraper' (are you missing
an assembly reference?)
C:\Users\MyUsername\Dropbox\Projects\SEO\QualityLinkBuilder\Web\ViewModels\JobsVm.cs(364,51,364,69):
error CS0246: The type or namespace name 'ClosedRealestateId' could
not be found (are you missing a using directive or an assembly
reference?)
However, I have referenced the project "RealestateScraper" and the class RealestateJobsDbContext&ClosedRealestateId exists in the "RealestateScraper" project root namespace which HAS been marked as using in the locations where the output marked the errors.
(like I previously stated, the project builds fine too when not publishing).
What could be the issue here?
I have cleaned&rebuilt but that doesn't seem to change anything.
Note: I'm not showing the code with the errors since it seems to serve no purpose as I am referencing the assemblies in the files correctly (using RealestateScraper;)
I was experiencing this as well- build only failed during publish. Turns out I was using the wrong password for the azure publish and for some reason I cannot explain it would show that the build failed and include some build errors. After correcting the password this was resolved.
Apparently in the RealestateScraper project I was referencing another project .dll at a location where it no longer existed. I updated the reference location and it fixed it.
In my case, I could not identify the error itself. I just changed the publish property "pre-compile". I UNchecked it and then I was able to publish my website
I had some compiler if-then statements in a class. These worked okay when I did a local build, but when publishing they were not interpreted and caused build errors. I refactored my code to remove the compiler directives and it now publishes.
Example:
#if SERVICE
using System.Web
#endif
Changed to:
using System.Web
unfortunately I have the same unresolved problem solution -prog a -prog b completes both the prog and the solution but when I go to publish it gives me error c0246 on using of the project b called in the project a
Help
I tried all of these solutions, and they might have contributed, but I was still getting the error.
I was tipped off by a warning. I had to make this file not read-only within the project, then it worked.
\obj\Release\netcoreapp3.0\PubTmp\Out\web.config