I've got this scenario: I want to build a website to a friend só he can manager his business. I want to do it like it is going to be online, using C# MVC. The thing is that only my friend will use the system, on localhost:/something...
My question is: if I put the files of my app on Apache, installed in my friends computer, will he be able to access the web site thru localhost:/mysite...?
I think for your use case ASP .net Core makes perfect sense. Have a look at the these articles and sample
https://docs.asp.net/en/latest/intro.html
https://github.com/aspnet/MusicStore
Easy to run/deploy and don't need IIS Install either.
https://sourceforge.net/projects/mod-aspdotnet/
mod_aspdotnet is a loadable Apache 2 module for serving ASP.NET
content using the Microsoft's ASP.NET hosting and .NET runtime within
the Apache HTTP Server process. Non-Windows users should look at mono
(mod_mono) for an alternate implementation.
Related
I have developed an ASP.NET C# Web application with 2 web forms and I have purchased a domain from Fasthosts in order to host my site. I have changed the server to be Windows-based and used the correct ftp details to upload my app to the site. The only problem I am having is that when the site is published I am receiving this error.
I am hoping that this issue is fairly easy to resolve. Any help on what I can do to get around this issue would be much appreciated. Thanks:)
Since you have not provided details of any set up using IIS, I would imagine that your issue is that you have simply deployed the file and gone to the URL expecting the site to be there. Normally you'd have some setup to do, unless they are handling that for you?
Have you make sure that you have setup your default page? Do they support .net core? Maybe this post https://windowswebhostingreview.com/troubleshoot-403-error-when-publishing-asp-net-core/ can help you.
I am developing an windows application and I need to load some local asp .net web pages.
how could I do this ?actually I need a local server application that works with my application then i can run asp .net web pages in my windows application.
tanks for your help
can I use asp .net development server as a component to work with my application?
IIS Express is a standalone instance of IIS that can be deployed to users (there's a .MSI).
IIS Express is, according to the linked page, a wrapper round "hostable web core" - which sounds like it might be an even better match to your needs - but I've not investigated that at all so can't comment on what's involved in using it.
As an aside, I'd have to agree that its a slightly strange requirement - you might want to clarify that.
I wish to build a Windows application that will generally run in the background, but have a configurable front-end Windows Forms GUI. I also would like this program to publish a small web page which can be accessed from other machines/devices and interact or call functions of the server application.
I'd rather not deploy a full-fledged ASP.NET web site with IIS, etc. I just need something simple.
So how would I go about doing this?
Take a look at Kayak. It's a relatively small and lightweight HTTP server that you can embed into your application and should provide all the functionality you're looking for.
FWIW, I am in no way associated with this project.
Maybe it's just because i've been doing asp dev for years, but I really think you should go the iis asp route as its very simple and built into windows. I can't imagine a more straightforward way of serving a webpage that has c# behind it to programmatically effect the host system.
Thanks to Kev in the comments on my question, he pointed me to this question, in which I found a link to a lightweight C# HTTP server component I could just drop in to my application: http://webserver.codeplex.com/
Works well for little stuff like I was doing.
I have planned to develop a web application using MVC, can any one suggest me the how easy to deploy the application on the IIS?
And also let me know the steps to that.
regards,
Satish
Just publish your application either to your server directory or locally and copy it to the the destination server. Make sure your server is configured for MVC, see below:
Using ASP.NET MVC with Different Versions of IIS
Server installation options for ASP.NET MVC 2
as rick says, and also, make sure (if IIS6) to use wildcard mapping - this needs to be added in the IIS control panel. again, our old friend google should throw up plenty of options on doing this. if you're under shared hosting, you can request it and most are happy to add it.
jim
There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM.
I have been trying (unsuccessfully) to integrate Sharepoint 2007 and Silverlight. Many of the sharepoint/silverlight blogs i have read are outdated, meaning that they target SL Beta 2.
So, my question is...
What steps are necessary in order to host a Silverlight 2.0 (RTM) application, in a web part, on Sharepoint Server 2007 ?
I haven't tried this out but
it seems like a good start:
Silverlight Blueprint for SharePoint
This isn't too difficult to do. There are a few steps you need to follow:
Update IIS with the xap mime type.
Put your files some that SharePoint can get them. In our case we developed a feature which deployed the silverlight javascript files and our xap out to folders in the ISAPI folder (%Program Files%\Common Files\Microsoft Shared\web server extensions\12\ISAPI). We created a folder called _xaps to host these files.
Put the Silverlight object code in either the page itself or in a content web part.
[EDIT: For some reason my object code isn't showing up. So here is a link to an example instead]
That's all there is to it. You're probably best off creating a feature to copy of the files and update whatever page you're hosting the control in. But to just stick silverlight in SharePoint the above should work.
This might help: http://www.u2u.info/Blogs/Karine/Lists/Posts/Post.aspx?ID=40
If you are going to be using User Controls [i.e. Web Parts], then I'd highly recommend looking at SmartPart. You'll still need to do the things in the blogs above to get the assemblies recognized, trusted, etc, but this may help you get your user controls deployed faster.