How to nest MVC site within an MVC site - asp.net-mvc-4

In visual studio, I create an MVC 4 app. I then publish it.
I then create a subfolder called SubApp, and copy the same MVC app to the subfolder.
I then add a link on the home page of the Main App, to the sub app.
For example, the link looks like this:
Go To Sub Site.
I then run the app, and click on the link.
I then get the error: The Web server is configured to not list the contents of this directory.(the sub directory).
How should I be linking to the SubApp?
Greg

Related

Blazor WebAssembly - How can I add a new *.razor page that don't need to recompile or rebuild the project

I am developing a survey project which collects data from the client with Blazor WebAssemly for the Client-side. Each survey form will have a different design and edit-checked rule. So I decide when I create a new survey form, the application will generate a new *.razor page automatically, for example, ClientSurvey.razor page. Everything works well until I navigate the web application to the ClientSurvey.razor I just have created. The system shows error:
404 Not found.
I have to rebuild the project again, and it can show the ClientSurvey.razor page on my website.
With ASP.NET MVC before I don't have to rebuild the project when I add a new aspx page. Does it still work with Blazor WebAssembly? If yes, how can I change the razor page, and it can update on my website automatically without rebuild or recompile?
And I also meet a problem that when I deploy the project in IIS, I don't see where the UI (.*razor) pages are stored, I know they are compiled to dll. How can I keep them in raw files in the same way with ASP.NET work? With ASP.NET, when I deploy it in IIS, there is always a folder to store aspx pages.
Updated: please see the figure to more clearly

deploy ABP framwork angular into iis

I want to deploy ABP angular Application into IIS I don't know how.
I created a folder contain the backEnd Folder And The FrntEnd Folder then i build the frontend into the frontend Folder and in the visual studio, I publish the backend into the backEnd Folder
in IIS I created a website with the backEnd with HTTPS and inside the Website I created a App contain the frantEnd
the App works and the data appears in the list
but in create and update method not function
I look inside the log
It looks like you haven't changed the application settings.
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/appsettings.json
You need to change application ports, URL. etc

how to host webapplication and webapi in single solution

I created a solution with two webapplication project. One is asp.net mvc and second one is web api. Now I want to publish. Kindly suggest me how to publish my webapplication and webapi
all mvc pages, web api controllers and aspx pages can be added to single project, no need to different project, if you need to seperate business you can use areas and class libraries
Process 1 :
You don't need to create separate project for Web API and MVC application in a single solution. You can create a MVC application and add an WebApiConfig.cs (route for api) file in App_Start folder. Write the route for API,(you just need to copy your route from Web API project and paste here). Now you can add/keep your all Api controllers in Controller folder which must be inherited from ApiController. That's it!
Process 2 :
But if you want to keep in separate project in a single solution,
then right click on your solution -> click on properties -> It will open property page. Here select the Multiple Startup projects radio button -> Then you can set both MVC and Web API application as start in action column -> Click on Apply -> Then Ok.
Suppose your Domain name is example.com. Then you can publish your MVC application there. And create a sub-domain, for example, myapi.example.com, and publish your API there. Then enable CORS on API project.
I would recommend to go with Process 1.
If you want to know more about how to publish both project from a single solution, please check this link

Copy web-builder created website to new hosting

I have a website created in a web-building online app (link to the app: http://www.webnode.com). The app doesn't allow me to actually view the folder structure of my web, it's something more like creating a blog using blogspot by google or similar web apps.
The problem is that I want to quit using that web builder and map the whole website to my private hosting. In order to do it I need to get somehow my web created in this app into the folder structure (or any other uploadable structure).
I'll be very grateful for any kind of advice
It can be easily done using winhttrack application, which downloads entire website to your computer.

Cannot see "Custom" web part folder SharePoint 2010

I am new on SP 2010 and VS 2010.
After installation of SP, I am able to surf to localhost, and see a page called "Home".
I made a test Visual Web Part, and it deployed fine.
I am able to edit the home page, and see and add the web part from the Custom folder.
I then made a new site, called Foo Site. When I edit its home page, I do not see the web part Custom folder, so I may choose my web part and add it.
Why does the Custom folder show up on one page, when adding a web part, and not on another?
Did you activate the feature on your new site? When you deploy from Visual Studio it will automatically do this based on where your project is configured to deploy it to (which is why you see it on your original site).