Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  2. {
  3. if (env.IsDevelopment())
  4. {
  5. app.UseDeveloperExceptionPage();
  6. app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
  7. {
  8. HotModuleReplacement = true
  9. });
  10. }
  11. else
  12. {
  13. app.UseExceptionHandler("/Home/Error");
  14. app.UseHsts();
  15. }
  16.  
  17. app.UseHttpsRedirection();
  18. app.UseStaticFiles();
  19. app.UseCookiePolicy();
  20.  
  21. app.UseMvc(routes =>
  22. {
  23. routes.MapRoute(
  24. name: "default",
  25. template: "{controller=Home}/{action=Index}/{id?}");
  26. });
  27. }
  28.  
  29. {
  30. "name": "streamline",
  31. "version": "1.0.0",
  32. "description": "",
  33. "main": "index.js",
  34. "scripts": {
  35. "test": "echo "Error: no test specified" && exit 1",
  36. "wbp": "webpack"
  37. },
  38. "keywords": [],
  39. "author": "",
  40. "license": "ISC",
  41. "devDependencies": {
  42. "aspnet-webpack": "^3.0.0",
  43. "bootstrap": "^4.1.2",
  44. "css-loader": "^1.0.0",
  45. "extract-text-webpack-plugin": "^4.0.0-beta.0",
  46. "jquery": "^3.3.1",
  47. "popper.js": "^1.14.3",
  48. "style-loader": "^0.21.0",
  49. "uglifyjs-webpack-plugin": "^1.2.7",
  50. "webpack": "^4.16.1",
  51. "webpack-cli": "^3.0.8",
  52. "webpack-hot-middleware": "^2.22.2"
  53. },
  54. "dependencies": {
  55. "@babel/core": "^7.0.0-beta.53",
  56. "@babel/preset-env": "^7.0.0-beta.53",
  57. "babel-loader": "^8.0.0-beta.4"
  58. }
  59. }
  60.  
  61. Exception has occurred: CLR/System.AggregateException
  62. An exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'One or
Add Comment
Please, Sign In to add comment