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 am getting this error when I try to compile my Blazor WebAssembly app.
error CS0234: The type or namespace name 'ApplicationPartAttributeAttribute' does not exist in the namespace 'Microsoft.AspNetCore.Mvc.ApplicationParts' (are you missing an assembly reference?)
The reason is because I am using a library which uses Microsoft.AspNetCore.Mvc.Core and it seems to not to be very compatible with blazor Web Assembly,
I did tested creating a server side blazor app and It works fine.
Is there any way to make the error "dissapear"? I would like to use that library and I would like to stick with Blazor WA.
From this and this, I'd advise that you not reference razor class library with support for pages and views or reference a library that targets ASP.NET Core. That is not going to work in Blazor Webassembly.
My suggestion is that you factor out the classes you directly need to reference from your shared library and use them in your wasm project, without making reference to the entire library, you could even factor those classes and create a new library to be referenced to without any dependencies on asp.net core framework.
An excerpt from one of the links I pasted said: "Thanks for contacting us. This is not a pattern we recommend to follow. You can't reference MVC binaries from a Blazor WebAssembly application."
error CS0234: The type or namespace name
'ApplicationPartAttributeAttribute' does not exist in the namespace
'Microsoft.AspNetCore.Mvc.ApplicationParts' (are you missing an
assembly reference?)
First, from the official document, we can see that the class name should be ApplicationPartAttribute, instead of ApplicationPartAttributeAttribute (the attribute is duplicate).Please check your code and modify it.
my main concern is why does it work in blazor serverside and not in
WA.
The Microsoft.AspNetCore.Mvc.ApplicationParts package work in Blazor server side and not in WA application.
For this issue, I assume you are creating a primary Blazor hosting model or standalone Blazor WebAssembly app, for this kind of application, it is client-side and without a backend ASP.NET Core app to serve its files, so you can't use the ApplicationParts.
But, if you create a hosted Blazor WebAssembly app: when create the WebAssembly application, selected the "ASP.NET Core hosted" option.
After that, the Blazor WebAssembly application looks as below:
As we can see, the application contains three projects, and then we could use the ApplicationParts in the server project. so, you could create a hosted Blazor WebAssembly app.
More detail information, see Blazor WebAssembly.
My two cents.
I have a blazor Wasm app, and getting the following error.
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'ApplicationPartAttributeAttribute' does not exist in the namespace 'Microsoft.AspNetCore.Mvc.ApplicationParts' (are you missing an assembly reference?) Mewurk.Hrms.Support.BlazorWasm D:\Mewurk\AdminConsole\src\Mewurk.Hrms.Support.BlazorWasm\obj\Debug\net6.0\Mewurk.Hrms.Support.BlazorWasm.MvcApplicationPartsAssemblyInfo.cs 14 Active
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'ApplicationPartAttribute' does not exist in the namespace 'Microsoft.AspNetCore.Mvc.ApplicationParts' (are you missing an assembly reference?) Mewurk.Hrms.Support.BlazorWasm D:\Mewurk\AdminConsole\src\Mewurk.Hrms.Support.BlazorWasm\obj\Debug\net6.0\Mewurk.Hrms.Support.BlazorWasm.MvcApplicationPartsAssemblyInfo.cs 14 Active
I am getting the above error, after I add a reference to a .net core 6 class library project which holds the following nuget package.
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.0.8" />
As it turns out, the class library project does not need that. So I removed and the error vanished.
I am currently unable to apply a CustomOverlay to my MobileBarcodeScanner instance and according the documentation on their website, I should be able to but it gives me the following error.
Severity Code Description Project File Line Suppression State
Error CS1061 'MobileBarcodeScanner' does not contain a definition for 'CustomOverlay' and no extension method 'CustomOverlay' accepting a first argument of type 'MobileBarcodeScanner' could be found (are you missing a using directive or an assembly reference?) ScannerTesting C:\Users\kalpr\Source\Repos\ScannerTesting\ScannerTesting\ScannerTesting\MainViewModel.cs 88 Active
I am doing this in my .Net Standard Class library which shares the code between all the different platforms.
Should I be doing this natively for each platform or can I just declare it in the portable .NET Standard project?
I have a self hosted owin Web Api and I'm trying to use a single instance of my EF Context per Owin Request. Here is my config code for the startup class.
public void Configuration(IAppBuilder app)
{
app.CreatePerOwinContext(A3Context.Create);
}
This won't build because I get the following error.
Error
5 'Owin.IAppBuilder' does not contain a definition for
'CreatePerOwinContext' and no extension method 'CreatePerOwinContext'
accepting a first argument of type 'Owin.IAppBuilder' could be found
(are you missing a using directive or an assembly reference?)
I'm I missing a reference that I'm not aware of?
CreatePerOwinContext is an extension method in the Microsoft.AspNet.Identity.Owin NuGet package.
To resolve, open package manager console for your project and install with the following command:
Install-Package Microsoft.AspNet.Identity.Owin
Ensure you are referencing the namespace containing the extension method:
using Owin;
I am new to web services.
I was just following a tutorial and created a web service. The next step was to create a proxy by entering wsdl followed by path to esdl contract. It was supposed to create a service1.cs file however my system created service.cs file which was similar to except on the tutorial.
The next step is to create a console tester application. I added the service.cs file to my console project but it cannot compile. I'm getting the following error:
Error 1
The type or namespace name 'Services'
does not exist in the namespace 'System.Web'
(are you missing an assembly reference?)
C:\.....\tws\Service.cs 4 18 tws
Please help.
Did you look in the project references?
System.Web.Services is NOT in System.Web but in a different separate assembly.
See if there is a reference to :
System.Web.Services
if not add a reference to:
System.Web.Services.dll
In your project System.Web.Services reference is missing to add this follow below
click on
References> Add References> Assemblies > Framework >System.Web.Services
Either scroll the list to find this or type "System.Web.Services" in search box
select System.Web.Services and add it .