-
-
Notifications
You must be signed in to change notification settings - Fork 65
publish in IIS with Development Variable #79
Comments
In your Startup.cs you say only to run the Vue development server if the debugger is attached, are you actually attaching to the IIS process using Visual Studio? |
Oh man I think that was it. Thank you so much. Sometimes you have tomatos on you eyes :-D (German phrase) |
I really don't know what to do. "System.Net.Http.HttpRequestException: 'Failed to proxy the request to http://127.0.0.1:8080/timeattendance, because the request to the proxy target failed. Check that the proxy target server is running and accepting requests to http://127.0.0.1:8080/." Did someone else get this working? |
Could you paste the log output from the ASP.Net app? It should be forwarding any logs from the Vue server, and I'm curious to see if it's actually starting up, and on what port. |
Stdout Log seems to produce the best log file. Stdlog out: The VueApp itself run on port 8080. I can open the app under following url "https://localhost:8080/en/ ". VueApp is new created without modification. Just added vue.config.js and certifications in certs folder with mkcert. |
Its very quiete here. Does nobody else has this problems? How do you publish youre app in IIS? |
I'm not real clear on why you'd want to proxy this in production? Just let IIS serve the built, distributable Vue app with the Core app. Proxying is intended mainly for debugging so you can do things like Hot Reload. |
The only other reason I can think of is for SSR. However, this library is not built or tested for any sort of security for a production deployment. This module is built and developed for use as a debugging and hot module reload assistant as @JohnCampionJr indicated. If the problem is with getting the DIST folder content built, I would suggest starting with the sample projects in this repo and see if you can deploy those to IIS. If you use |
Hi and thank you for your response. So the reason why I like to publish my ASP .NET Web Application with Vue is because the VueApp make Http Requests to my ASP Application. While developing the Frontend in Vue, I dont need to run the whole Asp Application in Visual Studio Debug mode. But I solved the problem. If anyone else has the same requirements, he can do the follow:
module.exports = {
} |
@Kingside88 How did you fix the |
I try many days to publish my application to IIS but get everytime this error:
"InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request."
https: {
[keys....]
}
} "
and to recreate with mkcert.
But nothing helps. I get this error.
When I try to run the same application from visual studio, everything works well. I don't want to run the application as compiled in "dist" folder, but as development.
Here is my startup.cs:
endpoints.MapToVueCliProxy( pattern: "en/{*path}", options: new SpaOptions { SourcePath = "ClientApp" }, npmScript: (System.Diagnostics.Debugger.IsAttached) ? "serve" : null, port: 8080, https: true, runner: ScriptRunnerType.Npm, regex: "Compiled successfully", forceKill: true //wsl: false );
The text was updated successfully, but these errors were encountered: