We have an ASP.NET MVC 3 application deployed in production with 3 servers on an LB. The application accessed via SSL and is working in each of these servers separately. When it is on the domain with LB the same Urls goes on infinite loop. Any thoughts, Thanks in advance
-George
Related
I have an IIS server hosting 40-50 ASP.Net MVC websites.
Each website has its own ApplicationPool.
When I need to restart the server for updates or config changes it takes about 3 hours for IIS to startup again. If I change each appPool to not Start Immediately IIS starts as normal and I have to go through each appPool to start them up manually. Which is a pain but it is faster.
Any Ideas why these AppPools should be taking so long to startup?
Regards
Carl
I am working in a small asp.net mvc application , so i want to self host this application without the help of IIS because i know IIS is not a light weight process.
Thanks in Advance
You could consider using an OWIN self hosted application - see Use OWIN to Self-Host ASP.NET Web API 2
There's also the option of IIS Express if you want something more lightweight.
We got Mvc4 Web application on server1 calling our Restfull Mvc4 Web Apis on server2 both hosted on IIS 7.5. This architechture works fine. When we put each application on loadbalanced servers the web application works fine however web api project doesnt run on the second server on the loadbalancer. We have just cloned the environments so they both have identical code and configuration but the servernames and mappings.
Is there any extra configuration for hosting MVC4 Web Api applications on loadbalancer?
has anybody actualy got MVC4 Web Api working on loadbalanced environment?
thanks,
Is there any extra configuration for hosting MVC4 Web Api applications on loadbalancer?
Not necessary if your Web API is stateless and you are not using any ASP.NET session. If you are using an ASP.NET session you might need to use an out-of-process session state instead of the default in-memory.
Has anybody actualy got MVC4 Web Api working on loadbalanced environment?
Yes, I have.
I have found the problem! The damn problem was our firewall blocking the web request
I'm wondering how to run a Wordpress and virtual MVC application under the WP on Azure. I found a lot of articles about this but it is not working and Azure SDK is changing all the time, there is no actual informations.
Am I able to connect to the Azure Web Role IIS server remotely?
If you have any questions, please ask before answering.
Update by Jim O'Neil comment
Yes I mean ASP.NET MVC. "Not working" means taht WP on Azure by this and ASP.NET MVC app works separatelly but together doeasn't. When I try add ASP .NET MVC as VirtualApplication by this tutrial VM on Azure is always in Busy state.
I need have an WP deployed on my domain example.com and ASP.NET MVC app at example.com/mvcapp. This should work on the Azure platform and could be reached by Virtual application feature of IIS. Then I hope that the Azure Web role is usable for this.
Do you have any idea?
If you really want to run wordpress website as www.example.com and ASP.NET MVC app as www.example.com/mvcapp then you could need to be little more creative to get it working. It is a doable task but need good understanding of Windows Azure platform, how Web Role works as well as PHP/WordPress knowledge.
I can point out some ideas on how you could do it but you would need to venture out to try and test. What you really need to create a ASP.NET Web Role with PHP support and have Wordpress configured to it. This could be done at runtime or you can put together worldpress along with the PHP itself so when you deploy your application whole wordpress is configured as package. Now in the same web role you add virtual diurectory and have MVC app running as application there.
Keep in mind that whole web role will have one single web.config so you would need to make it work with both ASP.NET PHP application and then MVC application. Tough task to handle these two and will take time to put together.
The other easier option is to have PHP running inside a ASP.NET MVC application and in the PHP folder setup your Wordpress application. This setup is easily configurable but it will change the location for wordpress and MVC app other way around.
Overall I really think you should rethink what you really want at the last because your objective just does not match with a need to have wordpress and ASP.NET MVC running together. If you just want to try for experiment, it sure is a great project and make you learn a lot.
This question is asked earlier # SO also but had same response i.e why?
I am not sure about on azure, but on IIS7 we have WP and the URL Rewriter setup as the default website and then deploy asp.net and ASP apps to virtual directories and turn off the URL Rewriter in those subdirectories. Works beautifully. Downside is that PHP runs like a dog on IIS compared to ASP/ASP.net. We are switching to using WP on LAMP and then continuing to run our ASP/.net apps on IIS7. Downside is that the WP after switch over may effect our SEO a little. IIS is www and WP will be ww3.
You might check your URL Rewrite rules if any.
You can create a website in Azure using a wordpress template VM.
You can also use http://wordpress.brandoo.pl/project/ which has an image available in Azure, this means you can use a SQL database rather than a MYSQL database which may help.
You can have one VM being your MVC app pointing to www.mydomain.com and you could have the worpress in a separate VM with say blog.mydomain.com
This would make maintenance easier I think
I'm developing an ASP.Net MVC application in C#, and it is hosted in an IIS server. Right now the client asked me to have a CMS on the same app url, that will be used to serve the public pages.
I have looked for ASP.Net MVC CMS apps and could not find anything that would be easily integrated with the current application, so I choose to do it by changing the server configuration.
What I need is:
Custom App:
exampleappurl.com/User
exampleappurl.com/Company
etc
CMS:
Any other URL, including "index" (exampleappurl.com)
Can I do it using any kind of Rewrite rule? Or IIS configuration? What is the best solution?
Thanks in advance!
On IIS6, there is a feature called 'host headers', that does exactly this: several websites may share the port 80, and the request goes to one of the sites its URL points to.
http://www.it-notebook.org/iis/article/understanding_host_headers.htm
http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx (this one is about IIS 7)