rickstrahl / albumviewervnext Goto Github PK
View Code? Open in Web Editor NEWWest Wind Album Viewer ASP.NET Core and Angular Sample
West Wind Album Viewer ASP.NET Core and Angular Sample
Starting the project with debugging (F5) in Visual Studio 2017 yields the following error messagebox:
Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 405, Method Not Allowed. The full response has been written to (%temp%)\HttpFailure_03-04-40.html
The html report does not hold a lot of extended info, however %temp%\iisexpress\(random-number).log
says:
Successfully registered URL "http://localhost:26448/" for site "AlbumViewerNetCore" application "/"
Registration completed for site "AlbumViewerNetCore"
Requête commencée : "DEBUG" http://localhost:26448/
Requête terminée : http://localhost:26448/wwwroot/index.html avec état HTTP 405.0
As you can see, a DEBUG verb is used to query the / URI.
The web.config "blank" rule
prevents debugging to start correctly.Starting the project without debugging (Ctrl+F5) works normally.
From within Visual Studio:
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
1>------ Build started: Project: Westwind.Utilities, Configuration: Debug Any CPU ------
2>------ Build started: Project: AlbumViewerAngular, Configuration: Debug Any CPU ------
2>Validating Web Site
2>Building directory '/src/scripts/'.
2>
2>Validation Complete
1>obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(14,12,14,54): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute
1>obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(15,12,15,60): error CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute
1>obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(19,12,19,54): error CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute
1>Done building project "Westwind.Utilities.csproj" -- FAILED.
3>------ Build started: Project: AlbumViewerBusiness, Configuration: Debug Any CPU ------
3>CSC : error CS0006: Metadata file 'D:\github\AlbumViewerVNext\src\Westwind.Utilities\bin\Debug\netstandard2.0\Westwind.Utilities.dll' could not be found
3>Done building project "AlbumViewerBusiness.csproj" -- FAILED.
4>------ Build started: Project: AlbumViewerNetCore, Configuration: Debug Any CPU ------
4>CSC : error CS0006: Metadata file 'D:\github\AlbumViewerVNext\src\AlbumViewerBusiness\bin\Debug\netstandard2.0\AlbumViewerBusiness.dll' could not be found
4>CSC : error CS0006: Metadata file 'D:\github\AlbumViewerVNext\src\Westwind.Utilities\bin\Debug\netstandard2.0\Westwind.Utilities.dll' could not be found
4>Done building project "AlbumViewerNetCore.csproj" -- FAILED.
========== Build: 1 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
From CLI:
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(15,12): error CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(19,12): error CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
Build FAILED.
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(15,12): error CS0579: Duplicate 'System.Reflection.AssemblyConfigurationAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
obj\Debug\netstandard2.0\Westwind.Utilities.AssemblyInfo.cs(19,12): error CS0579: Duplicate 'System.Reflection.AssemblyProductAttribute' attribute [D:\github\AlbumViewerVNext\src\Westwind.Utilities\Westwind.Utilities.csproj]
0 Warning(s)
3 Error(s)
Time Elapsed 00:00:02.09
Opening a woff2 URL such as http://localhost:26448/fontawesome-webfont.af7ae505a9eed503f8b8.woff2
results in 404 error.
The web.config "wwwroot-static" rule
is not greedy enough.According to the development custom error, the rewritten URL points to wwwroot\fontawesome-webfont.af7ae505a9eed503f8b8.woff
(notice missing trailing digit)
Invert order in match expression:
<match url="([\S]+[.](html|htm|svg|js|css|png|gif|jpg|jpeg|woff2|woff))" />
in WSL2
Step 4/7 : COPY ./wwwroot /usr/share/nginx/html
COPY failed: file not found in build context or excluded by .dockerignore: stat wwwroot: file does not exist
ERROR: Service 'nginx' failed to build : Build failed
probably fixed by:
#15
I do npm install/npm start
The project loads but I get
Unknown server failure.
Am I suppose to first start 'AlbumViewerNetCore' as well in Visual studio so the services are there for the angular project to find ?
Hi doest case cade delete work in vNext ?
Hello, can confirm it works on linux without modification:
I downloaded the files as a zip archive, unzipped it to a folder, opened the folder in Visual Studio Code editor, it prompted to restore requirements and then I selected Debug->Start debugging and the screenshot is from the result which seems to be working correctly.
The dotnet new angular example is easy because I can just set a breakpoint and run.
But in VS2017 I cannot F5 run it and I guess it uses webpack so I can't debug in the browser.. Is there some simple way to set a break point on the typescript ? (I can use VS code if that is the easiest way)
I have tried the project through cmd its working but when i am trying to work with visual studio 2015.
the source files of AlbumViewerBusiness, AlbumViewerNetCore, WestWind.Utilities are failed to load.
Please can you tell me procedure to run the project in visual studio 2015 with all prerequisites.
Thanks,
Farook
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.