Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a Asp.net MVC 3 application which I want to give to a user to use without them having to host it in IIS to run.
What I would like to have is some sort of executable that they click or a service which will host the application and then they can use it from any browser on the network.
What are my options?
Have you looked into IIS Hostable Web Core?
This feature basically allows you to host the entire IIS functionality
within your own process. This gives you the power to implement
scenarios where you can customize entirely the functionality that you
want "your Web Server" to expose, as well as control the lifetime of
it without impacting any other application running on the site.
You can look into IIS Express http://learn.iis.net/page.aspx/868/iis-express-overview/ Although it is still IIS it's much lighter weight and might be what you need:
It doesn't run as a service or require administrator user rights to perform most tasks
IIS Express works well with ASP.NET and PHP applications
Multiple users of IIS Express can work independently on the same computer.
If the application is meant for production use, you need to host it under an IIS environment. IIS Express is intended as a development server and not for production use.
Otherwise, IIS Express is the way to go if you want someone else to work on it in a local development environment.
Take a look at the following example.
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host
http://owin.org/
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
http://blog.micic.ch/net/owin-and-razor-enabled-mvc-application-framework
Regards
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
For me, Windows Services are inconvenient and cumbersome enough to question their validity in all apps that aren't "Watch this folder for a change, react to this change."
I understand that this oversimplification is ignorant, why would one choose a windows service over the Web API.
Every time you have something that isn't activated by a HTTP request?
To get a hint, run services.msc from WIN+R (run program). Go through the services and try to see if all could be hosted within IIS instead.
If not: Well, there is your answer.
I do believe we can skate by the reboot issue with our centralized monitoring service, as well as the IIS "never go down" module. I've chosen to leave the service as a Windows Service while I automate his deployment, however I'm not completely convinced it's worth the inconvenience of install -> attach debugger -> make change -> start/stop -> attach debugger -> flail when debugger fails because service locks a file, etc
imho it's much more fragile to depend on a monitoring service and a always on module when you have stuff for that already built into windows (monitoring = windows event log).
As for debugging windows services, they are easy to debug with a small adaptation in Program.cs. I've written about it here: http://blog.gauffin.org/2011/09/05/an-easier-way-to-debug-windows-services/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I finished my asp.net website ,I am using vs 2013 and sql data base I designed the web site on my pc and it is work on IIS 7 , now I want to move the web site to our server which include Sql server 2008 .for my database no problem I will move it .but now any thing required to move the web site to the server, I do not know if I need to install vs 2013 on the server??
*note:the web site include report viewer .
you do not need Visual studio for deployment but you need .NET Framework installed in the remote server. You need to have Internet Information Services installed and it is advisable to have web deployment tools. In large scale enterprise applications we do not use manual web deployment but it should be automated with MSBUILD. Have a look at [Deployment automation][1]. You can deploy your code to a remote server and have a look at Remote Deployment.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
we are facing application slow down and user unable to use it. for simple transaction it takes 5 to 10 minutes or not responding. but if we restart IIS & Sql Service then it work fine but only for next 4/5 hours. following is the details of application.
Application is 3 tire architecture. WCF web service project is hosted in IIS6 on server having OS Advance Server 2003 and SQL Server 2005 is on the same server and client application is separately install on every client machine (approx. 50 users) by click once deployment.
For data access we have used Microsoft Enterprise Library. application developed on framework 3.0.
any help will be really appreciated. Thanks in advance.
Well there are so many possible reasons of this starting from poor written queries, lacking of useful indexes etc. It's hard to tell anything really useful without any details. However I recommend getting familiar with sys.dm_os_wait_stats dynamic view in SQL Server. It is a very good starting point. Check out this great article: http://www.mssqltips.com/sqlservertip/1949/sql-server-sysdmoswaitstats-dmv-queries/
And be aware that all the information stored in DMVs is lost whenever you restart SQL Server. It's complicates the troubleshooting and considered as a bad practice, try to avoid it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm new to C# and decided to write a small client server chat application to approach the new language with learn by doing.
The question I have now is whats the best way to code the server part on.
The client is built with C# and for now a MySQL connection to my hosting server(Linux).
But i realized this is a dumb way to go at it.
So I was thinking of writing a server part that all clients connect to and that server will have a MSSQL connection and handle all the requests and chat delegation.
So the options I'm thinking about is either
WCF Service (as I understood they can be installed on any IIS server)
Windows Service (don't know if you can run this on hosts online)
ASP.NET WebService (This would actually only by a website that takes requests)
Node.js with socket.io
Other options?
What do you guys think would be the best approach for his?
To keep in mind is that I would like this server to be hosted online without spending tons of money on a VPS-Server or similar.
As the most productive solution, you should probably go with SignalR (http://signalr.net/), or ServiceStack (https://servicestack.net).
Both "frameworks" are fully mono compatible, so you can run the solution you build on your linux-server.
As an ORM-Mapper, you could use the EntityFramework, which would allow you to use not only your linux-server, but also your MySQL-DB. See this blog-post for more details: http://blog.3d-logic.com/2013/04/14/entity-framework-6-on-mono/
Depending on your "other language"-knowledge, you want probabbly to start off with no framework at all, but to build everything from scratch.
Maybe it was just me, but I learned the most about how .net works, as I had to "rebuild" stuff like linq, etc.
You can also consider:
ServiceStack
ASP .Net Web Api
Windows Service is not a technology, it is may be using as host (IIS, Windows service)
The easiest way to get started is to stay in the Microsoft walled garden and adhere there their ideas about how this should be done. Microsoft developer products integrate exceptionally well.
Probably a console application connecting to a WCF service connecting to a SQL Server using Entity Framework.
This is rather straight-forward to set up. Tutorials for this are available in heaps. Make sure to use recent tutorials and try to stay simple.
I advise against writing a chat because that requires either polling or a push mechanism. I think that is unnecessary for a beginner project. Write a data-driven application like a to-do list. Get fancy later. The first steps are hard enough.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have developed a windows application. The application is basically a console that helps the user to launch multiple 3rd partly applications e.g. MS word.exe, MSExcel.exe, Windows calculator etc. The application is currently running fine as windows application. Generally launches applications through Process.Start() method.
Now, I am planning to release a web based version of my application. My idea is that if the user has access to my application through web, he/she can run MSword, Excel and all applications which are available through my application.
kindly guide me how I can achieve this.
Thanks..!
Your Process.start() function is attempting to open MS Word on the server and not on the client. It will open the word file if the server and client are on same machine i.e. the document is on the same machine you have hosted web application on .
In the case of opening word.exe etc on client side you can not due to browser security restrictions. You can do one thing give the link to some word or excel file which can be downloaded on client side and the client can use it then . Hope it helps
Something like this is not easy to do in ASP.NET. Using Process.Start() is simply going to run the application on the ASP.NET Web Server, not the client. Because of browser restrictions, its a security hazard to be able to execute application on the client.
One solution I would suggest though is to use SilverLight. Using SilverLight, you can use the following code to run an application on the client:
dynamic cmd = AutomationFactory.CreateObject("WScript.Shell");
cmd.Run("calc.exe", 1, true);
Note you must be running Silverlight 4.0 or higher for this code to work.