I'm working on a Blazor WASM app and I want to add an Administration. The administration will use a completely different set of css and js files so I want to create a new client application for it.
What I'm trying to achieve is to have my app on address https://myapp.com and the admin part on http://myapp.com/admin.
I'm following the example provided in this response https://github.com/dotnet/aspnetcore/issues/21872 but it doesn't work so far. The main application loads, but when I try to navigate to the administration I'm getting 404.
Has anyone did it with .net5?
The problem I was facing was caused because I forgot to add a dependency of the second client project into the server project.
Related
I have a Blazor WebAssembly application that is being hosted by an ASP.NET Core backend. In addition to serving the Blazor application, the backend also has a few API endpoints used within the Blazor application along with some pages that serve as an admin dashboard.
During local development, all was working correctly and I could navigate from inside the Blazor application to an admin page and back again. Once I published this setup to a development server the Blazor app seems to be blocking any requests to the admin pages. I know this is possible as that is what the built-in identity system does. Whenever I try to access my /admin page the Blazor application stays open and shows the message: Sorry, there's nothing at this address.
What do I need to adjust to have things operate as they do locally?
After further research, I discovered that my problem is because of how the service-worker.published.js handles requests. I have this application setup using the PWA feature for better offline support.
For more information on this subject check out the documentation Microsoft provides here: Support server-rendered pages
We have our existing pages in ASPX and site is hosted on IIS7 server.
We are looking for revamping/design the pages in VUEJS 2.0.
We are able to get VueJS code integrated with existing ASPX pages by getting build.js generated (production) and referring the same on ASPX page and page will be having the Target element. This all is client side rendering.
Now, we want the same in SSR. That mean to be complete HTML code rendered on the page before being served to the client (browser).
This clearly indicates we need to setup NodeServer, which can be called up by ASP.NET to get the VUEJS code rendered and added on ASPX page before it's being served to the Client (Browser). Please correct me If I am wrong. Here we are looking for a dynamic webages (Not the static one with prerendering or static generation)
We have started looking up for NUXT.JS as one of the options. But this is recommended to be used for the apps hosted for NodeServer.
ref:https://github.com/MarkPieszak/aspnetcore-Vue-starter/issues/67
1: https://github.com/MarkPieszak/aspnetcore-Vue-starter/issues/67
Other big challenge going with Nuxt is, they are likely launching Nuxt2.js version, which may or may not have breaking changes. https://medium.com/nuxt/nuxt-2-is-coming-oh-yeah-212c1a9e1a67
Next option is to looking for following:
https://github.com/MarkPieszak/aspnetcore-Vue-starter
https://github.com/vuejs/vue-hackernews-2.0
http://mgyongyosi.com/2016/Vuejs-server-side-rendering-with-aspnet-core/
Above links mentions using ASP.net core API Microsoft.AspNetCore.SpaServices.Webpack.
I believe you must have faced this situation and reached to an optimal solution. I am looking for suggestions from veterans have achieved the same, what path to be followed?
IF this can be achieved at all? and what are the challenges I should look forward?
Thanks
I already have one existing website project which is in production. Now i want to have another different functionality with set of new pages. So i want to keep another web application project and refer the same in my existing website.
Button click in my website will call my webpage in seperate web application project.
Am not using M.V.C
Is this possible? Can i host my newly creating web application along with my website?
I have tried to call webpage from website to my web application. It is working. But is this the correct way?
what is the best way?
You can point your new domain to previously hosted website. Also you can use url rewriting to show whatever url you need to display to user.
OK, co I have searched and tried what I think is everything. Basically I have an app I have built in Sencha Architect that uses a JSON proxy to call a Get method in my Web API. Running local host, not a problem, deploy to live, not a problem. Run localhost against live web api.. PROBLEM! :)
So, have spent the last couple of hours reading up on CORS and implementing Access Allow Origin in response header, even allowing "OPTIONS" in response header as part of the "pre-flight" check before trying to make the call and still no go. I have set request headers just in case in my call, but convinced this is not the actual issue. I get a 405 method not allowed, no matter what I do.
The crazy thing is, I just wanted to bundle this up as a native app and see if it worked... How does anyone else make a call to a public service using ASP.Net and IIS7.5 +?
Move your sencha app folder in asp.net project folder and run sencha app using IIS server
I made 2 usercontrols for sharepoint 2007 site. Everything is working fine on test server. I deployed it on production but only 1 got deployed and placed properly. The second user control is added n deployed to web part galleries but gives File not found error when i add it on web part page. I deployed it using WSP. yet it gives this error. I checked logs it did not show anything. I have no idea what to do. please help. If more details are required I am ready to share but please help me
![Error which I get] http://i.stack.imgur.com/jOjwb.jpg
WSP will deploy according to your requirements. You could build your WSPs automatically using WSPBuilder http://wspbuilder.codeplex.com/
You should not deploy the user controls to web part galleries. The user controls should be deployed to CONTROLTEMPLATES so modify your WSP accordingly.
You could use the SmartPart to show any controls you developed.
http://smartpart.codeplex.com/