How can we connect two .net web applications? I have only one domain name and hosted the first application. Now i want to host the 2nd application using a link from a page in the 1st app. Can you suggest a way?
There are several considerations around the site / backoffice relations.
But to get to the bottom line of your question: Put your media files inside a totally separate directory, then save its location in each app's (WebForms + MVC) Web.config file, and access it by reading the appropriate configuration key. For example: C:WebsMyFrontEndMvcSite C:WebsMyBackOffice C:WebsContent
Your domain could be called static.mysite.com. It will also help you keep your site (and backoffice) clean from "user generated content", so every time you deploy, you can freely override the whole app and not afraid that you accidentally delete custom user content (the only thing you'll need to worry of is not overriding web.config in the production server).
Leave a comment