I have a brand new demo project on ASP.NET CORE & Angular (single solution) .NET 5.0 v10.5.0. Started up fine and I got to the UI. After I used PowerTools to create an entity with two fields, I get this when running npm start (see image). Database table is created. Refresh.bat didn't help. What is the problem here?
I have a brand new web solution. ASP.NET CORE & Angular (single solution) .NET 5.0 v10.3.0. When I open web.sln and run npm start and go to localhost:4200, the application will just spin and will not open the starting page (Dashboard). It will only load if I run Web.host to open localhost:44301/Ui and login. After that the Dashbaord will load. Is this the way it works?
I dowloaded and opened ASP.NET CORE & Angular (single solution) with .NET 5.0 and v10.3.0 yesterday. I'm seeing these errors after opening Web.sln:
.Net should be installed: C:\WINDOWS\system32>dotnet --list-sdks 2.1.403 [C:\Program Files\dotnet\sdk] 2.1.502 [C:\Program Files\dotnet\sdk] 2.2.101 [C:\Program Files\dotnet\sdk] 5.0.202 [C:\Program Files\dotnet\sdk]
Please let me know what could be wrong.
I have ASP.NET CORE MVC & jQuery with .NET Framework 4.6.1 on ASP.NET Zero version 6.2.1 up and running. I have added some entities with the RAD tool to test out a few things. I tried to upgrade to ASP.NET Zero 6.4.0, and did this by copying and pasting all files from 6.4.0 to my 6.2.1 files in Windows Explorer, overwriting any files in conflict. I realize this would probably break the entities I added with the RAD tool, but as a test, I expected at least to be up and running on 6.4.0 without the entities I added.
After copying over the files, I ran yarn, Update-Database, and npm run create-bundles.
Shouldn't this work (meaning get 6.4.0 working)?
I get these build errors:
Severity Code Description Project File Line Suppression State
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Host\HostSettingsAppService.cs 94 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Host\HostSettingsAppService.cs 248 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Tenants\TenantSettingsAppService.cs 136 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Tenants\TenantSettingsAppService.cs 312 Active
Warning MSB3245 Could not resolve this reference. Could not locate the assembly "System.ComponentModel.DataAnnotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. XYZ.WER.Core.Shared C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2110
Warning MSB3245 Could not resolve this reference. Could not locate the assembly "System.ComponentModel.DataAnnotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. XYZ.WER.Application.Shared C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2110
Error CS0579 Duplicate 'Area' attribute XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 8 Active
Error CS0101 The namespace 'XYZ.WER.Identity' already contains a definition for 'ISmsSender' XYZ.WER.Core D:\WER\src\XYZ.WER.Core\Net\Sms\ISmsSender.cs 5 Active
Error CS0101 The namespace 'XYZ.WER.Web.Areas.App.Controllers' already contains a definition for 'CommonController' XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 10 Active
Error CS0101 The namespace 'XYZ.WER.Web.Areas.App.Views.Shared.Components.AppDefaultBrand' already contains a definition for 'AppDefaultBrandViewComponent' XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Views\Shared\Components\AppDefaultBrand\AppDefaultBrandViewComponent.cs 9 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Activities\ActivitiesAppService.cs 78 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Contacts\ContactsAppService.cs 81 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Opportunities\OpportunitiesAppService.cs 77 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\ServiceRequests\ServiceRequestsAppService.cs 77 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme11UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme2UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme3UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme7UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme8UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\ThemeDefaultUiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 24 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 30 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 35 Active
Error CS0246 The type or namespace name 'IUiThemeCustomizerFactory' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 11 Active
Error CS0246 The type or namespace name 'IUiThemeCustomizerFactory' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Views\WERRazorPage.cs 16 Active
Error CS0234 The type or namespace name 'Swagger' does not exist in the namespace 'XYZ.WER.Web' (are you missing an assembly reference?) XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Startup\Startup.cs 42 Active
Error CS0111 Type 'CommonController' already defines a member called 'LookupModal' with the same parameter types XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 12 Active
Error CS0111 Type 'ISmsSender' already defines a member called 'SendAsync' with the same parameter types XYZ.WER.Core D:\WER\src\XYZ.WER.Core\Net\Sms\ISmsSender.cs 7 Active
I do get ASP-NET Zero version 6.4.0 working by itself just fine, but not when copying over all the files to my existing 6.2.1 solution.
I'm investigating using Google address auto-complete with Core and jQuery. This works fine when I place the code in Tenants\Index.cshtml, but it does not work if I place the same code in Tenants_CreateModal.cshtml (the address suggestions doesn't come up). Why is this?
Here is the sample code I'm testing out:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">
google.maps.event.addDomListener(window, 'load', function () {
var places = new google.maps.places.Autocomplete(document.getElementById('txtPlaces'));
google.maps.event.addListener(places, 'place_changed', function () {
var place = places.getPlace();
var address = place.formatted_address;
var latitude = place.geometry.location.lat();
var longitude = place.geometry.location.lng();
var mesg = "Address: " + address;
mesg += "\nLatitude: " + latitude;
mesg += "\nLongitude: " + longitude;
alert(mesg);
});
});
</script>
<span>Location:</span>
<input type="text" id="txtPlaces" style="width: 250px" placeholder="Enter a location" />
Hi, I'm using Core and jQuery. When adding a new entity using the RAD tool, the new entity icon are the three dots. How can this be changed?
Also, if adding several entities, they newest one is added to the top. How can the order of entities be changed?
I am new to this and would appreciate detailed explanations.
Hi, using Core and jQuery, I get the following error with the RAD Tool:
Running add-migration... No executable found matching command "dotnet-ef" Running update-database... No executable found matching command "dotnet-ef"
All other files are created fine, but GUI will not load as the table hasn't been created. I have the latest version of aspnetzero. What is causing this?
I added a new language and it is enabled. When I select it from the drop-down, it is not chosen for the application, it goes back to Default language. If I choose a language that comes standard (such as German), it works fine. Is this because I need to do all the translations for the new language before it will work? Or are there other steps involved?
Are we supposed to change ports when moving to IIS? I have moved the below to IIS (no domain name yet, just testing on the server with localhost), would that work?
Does all the ports used below need to be added in IIS bindings?
src/assets/appconfig.json: "remoteServiceBaseUrl": "http://localhost:22742", "appBaseUrl": "http://localhost:4200", "localeMappings": [
..Web.Host/appsettings.json: "ServerRootAddress": "http://localhost:22742/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "http://localhost:4200,http://localhost:49152"
..Web.Public/appsettings.json: "WebSiteRootAddress": "http://localhost:45776/", "AdminWebSiteRootAddress": "http://localhost:4200/"