Title: GCP App Engine unable to serve resource files like JavaScript
Tags: google-app-engine;.net-core
Question: I have hosted my dotnetcore 2.0 app on GCP App Engine with my ```app.yaml``` as follows.

```runtime: aspnetcore
env: flex
manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10  
endpoints_api_service:
  name:  ***********
  rollout_strategy: managed
```

My API's work fine, but when I try to load a ```cshtml``` view with resources pointing to ```wwwroot```, I get an error loading resources (ex: .js , .css) 

```{
 "code": 5,
 "message": "Method does not exist.",
 "details": [
  {
   "@type": "type.googleapis.com/google.rpc.DebugInfo",
   "stackEntries": [],
   "detail": "service_control"
  }
 ]
}
```

My purpose here is to have an dotnetcore app serving web API's as well as an Angular6 UI SPA.

Comment: did you configured "app.UseDefaultFiles();" and "app.UseStaticFiles();" in Startup.cs? Any chance you can try running tutorial at [1]? Just to confirm nothing wrong with the app engine environment?
[1] https://codelabs.developers.google.com/codelabs/cloud-app-engine-aspnetcore/#0



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2018:00:09/21/18', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<google-app-engine><.net-core>', 'Title': 'GCP App Engine unable to serve resource files like JavaScript', 'ViewCount': 94, 'id': 52438682, 'user_AboutMe': None, 'user_AccountId': 8011894.0, 'user_DisplayName': 'Sajid', 'user_Reputation': 31.0, 'user_Views': 3.0, 'user_id': 6043316.0}}