Giter Site home page Giter Site logo

rickstrahl / albumviewervnext Goto Github PK

View Code? Open in Web Editor NEW
507.0 507.0 340.0 20.75 MB

West Wind Album Viewer ASP.NET Core and Angular Sample

C# 1.41% HTML 0.60% CSS 4.09% TypeScript 1.02% JavaScript 88.48% PowerShell 0.04% Shell 0.01% Dockerfile 0.01% TSQL 4.36%
angular asp-net-core

albumviewervnext's People

Contributors

andremessier-sage avatar rickstrahl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

albumviewervnext's Issues

VS2017, F5 debugging error "web server request failed with status code 405, Method Not Allowed"

Symptoms

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.

Diagnosis

The web.config "blank" rule

<rule name="empty-root-index" stopProcessing="true">
prevents debugging to start correctly.

Misc

Starting the project without debugging (Ctrl+F5) works normally.

Building project in Visual Studio 15.3.0 or from dotnet 2.0 cli results in errors...

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

404 error for .woff2 static files

Symptoms

Opening a woff2 URL such as http://localhost:26448/fontawesome-webfont.af7ae505a9eed503f8b8.woff2 results in 404 error.

Diagnosis

The web.config "wwwroot-static" rule

<rule name="wwwroot-static" stopProcessing="true">
is not greedy enough.

According to the development custom error, the rewritten URL points to wwwroot\fontawesome-webfont.af7ae505a9eed503f8b8.woff (notice missing trailing digit)

Proposed Fix

Invert order in match expression:

<match url="([\S]+[.](html|htm|svg|js|css|png|gif|jpg|jpeg|woff2|woff))" />

docker-compose fails

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

Problem running angular project

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 ?

Linux confirmation

Hello, can confirm it works on linux without modification:
screenshot_2017-10-10_15-21-22

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.

How do you debug typescript when the project is not a csproj ?

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)

How to run the project in Visual studio 2015

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.