I have implemented the Stock Tracker Example and the Chat example in my LAN environment and everything is working fine, within the LAN I hosted it on a Windows Server 2008 within IIS as a MVC 4 app with no problems.
I then moved the App to a replica server inside a DMZ which is accessible globally, I tried running the App within the LAN and the Tracker and the Chat became unresponsive. I Also tried doing this from a Samsung Galaxy S3, this site was responsing but triggering the Stock Tracker nothing happens.
Within our LAN it accesses public sites using a NAT, is it possible to use SignalR in this scenario?
If so is there any firewall exceptions I need to make?
Also, is there any IIS configuration elements I need to consider?
This is the first time looking at SignalR and I can't seem to find examples of such setups.
Thanks in Advance...
Installing the latest MVC Libraries via Nuget fixed this. Previously Installed MVC 3 manually on the server via exe downloaded from MS downloads
Related
I wish to route a phone call to an ASP.NET MVC web app that is hosted on a server, and then open a web socket to gain access to the call's audio. I am not concerned about how to access the audio or process it etc. All I am needing help with is hosting a web app and opening an accessible web socket.
I have tried app engine, but with little success as I couldn't manage to open a web socket... I was able to get everything working with Azure services, however, I would like to transfer my web app to Google's services.
Can I stil use app engine to host the ASP.NET MVC app? If so, how can I open a websocket?
Thanks
You can host ASP.NET apps in App Engine Flexible but can't use websockets YET.
As for comment 231, it seems that its release in Flexible environment is likely in the not so distant future.
This is currently not possible with Google App Engine. However, you can always use Google Compute Engine, which is essentially a VM in Google's network that you can configure as your own webserver and you have virtually full control of its connectivity and ports.
I've built an .NET MVC4 website using C#, and now I want to upload it to the internet.
I've never uploaded any website so I don't really know what steps I need to do.
Does it matter what kind of server to use, because when I run the website through VS2012 I can see it runs with IIS express, but then I realized there are several kinds of servers, like apache. Do I need specific kind of server?
And what about domain? what is the difference between domain and server.
Thanks.
You will need IIS for running .NET applications. Apache is more suited for Java, PHP and other languages.
The server/hosting is the space where you upload your project files.
The domain or ip address is what in put in your browser bar to be able to access your application. (Ex: google.com is a domain which is pointing to some server where the google site is hosted).Unless you want to access your application by typing the ip address of the server in the browser you need to buy a domain.
Take a look here for a more detailed explanation:
http://support.hostgator.com/articles/hosting-guide/what-is-the-difference-between-domains-vs-hosting-vs-website
Many web hosting providers allow you to buy a domain when purchasing the hosting serivce but you can buy it separatly and then point it to the ip address of your server.
I dont know many about WIndows web hosting providers but you might start looking in the Microsoft Asp.net website: http://www.microsoft.com/web/hosting/home
In your case you need to choose a hosting provider which supports MVC4.
Then you need to upload your project to the server. Take a look here: http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx
Your server should come with an FTP account configured. You can use it to upload your files.
A domain is only a address in the internet which allows people to find certain places like an adress in a city.
So in order to make people find your stuff on the internet you have to have it a domain name.
It's the www.mvc4.com <----domain name
The other thing is the type of Server you need apache is also a server but in most cases it is used with java applications. What you need to do is to find a server which supports C# code and
type in .net hosting in google and you will find a lot hosters where you can register domain name for your C# code
step 1: Buy domain from website like Godaddy, net4 india etc
Step 2: Buy windows hosting to host MVC Application from web hosting like Godaddy, net4 india etc. Please buy latest framework hosting
Step 3: Build application using MVC(any version)
Step 4: Upload the published files to FTP.
Run the application.
I have a web application running in a GlassFish 3.1 service on Windows 7 and Server 2008. I would like this application to be able to control a number of other services on the same machine. In particular I want it to be able to start and stop Tomcat services.
Essentially the application is acting as a controller for other applications I deploy on the machine so I can set any security necessary on the controlled applications.
I notice that .Net has a ServiceController class so I'm assuming that programmatic control is possible but I would very strongly prefer a pure Java solution if possible.
All the searches I've done turn up a lot of information about running Java as a service and not much on controlling services from Java. Is what I'm trying to do possible? What security hoops will I need to jump through?
You can do Runtime.exec("net stop tomcat6"). Of course tomcat6 can be replaced with any other service name.
Also check out this tutorial
http://www.java-samples.com/showtutorial.php?tutorialid=8
I have a winform application that controls some transmitters and sound cards. There is a requirement to be able to provide a web interface for controlling those devices.
Currently I use WCF to communicate from the controllers in my asp.net MVC site to the winform app. That works well, but there is now a desire to move the hardware to another machine when needed and that means that IIS has to be installed and set-up on that machine.
I know it isn't that hard, but I won't be the one actually doing the moving. It will be the users. If I could host the site from the winform app them it would basically be portable besides the hardware drivers need for a usb to serial converter we use.
Can you use a windows service? The whole winforms app as a service doesn't seem right to me. It assumes that the app is always running. I would create a windows service and expose WCF endpoints from that.
You will need to install IIS or Cassini to host the MVC web site. There's no way around that.
Huh, I would go with Greg's answers.
Also, making your app IIS dependant is not that bad. Or Cassini dependant. You don't want to end up writing your own webserver, which could easily happen when you continue to add features to the app.
I don't know about you but it just feels you are taking all the load on yourself, you are going to spend possibly dozens of hours to implement it to spare an hour or two for someone who doesn't want to install real webserver.
if you want to host MVC under winforms then i would look into the upcoming .netcore 3 version which should allow this combination.
though you'll have to wait until 2019 Q1
https://github.com/dotnet/core/blob/master/roadmap.md
otherwise i've mostly hosted simper stuff using nhttp library if i want it in a winform app.
(NHTTP is a library that gives you very simple crude http request functionality so no mvc sadly but it works for simnpler stuff)
I have a Virtual Machine running the following:
Windows Server 2008
SharePoint 2007
SP1 Exchange 2007
Dynamics Axapta 2009
I have started the Single Sign On Service and configured it properly. Central Administration is running on HTTPS bound to a specific IP address as a new site in IIS. When I click on the link to manage the server in Central Administration for Single Sign On it keeps redirecting to localhost even when typing the complete Uri in the Address bar. Any idea what is causing this behaviour and how to get around it?
I need to configure this for BDC connections.
After a lot of research it turns out that there is no solution or explanation for this happening. I have since rebuilt the virtual environment and configured SSO before creating the SSL sites and doing the IP binding.