ASP.Net MVC + Wordpress - asp.net-mvc-routing

I have ASP.Net MVC project. Plus wordpress blog under a subfolder "/Blog".
Now, when I access the URL www.domainname.com/Blog, I get the following error:
"The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map."
I guess the problem is because the Blog url is accessing a .php files (Wordpress) which MVC Routing handler does not understand.
Can you please help? What can be done?

Does your hosting support PHP? It does not look like a routing exception, more like a server config error.

I found the solution.
In my server admin (Plesk), I had an option to run php as CGI app, FastCGI or ISAPI Extension.
Earlier it was CGI app. So it did not work.
I set it to ISAPI Extension and it worked.
Thanks.

Related

http status 302 error in tomcat eclipse

I am developing a Telco application (Dyanamic Web application project to send and receive sms) using Eclipse & tomcate version 7
When I try to run it on
http://localhost:8080/SMS1
It gives an error message HTTP-ERROR-CODE:302
What should I do to resolve this error
This is the link to Application and video tutorial what I am following
https://drive.google.com/file/d/0B3VmCeqDC7SDcFZaWVZhRUNmaTQ/edit?usp=sharing
HTTP code 302 is a standard "redirect" message--that is, it tells your web browser that the page was moved and where the new page can be found. I'm guessing whatever you're using as a web browser (Eclipse?) just doesn't handle that type of redirect. Try using a standard web browser like Chrome or Mozilla to see if that helps...
Also a guess, but the redirect may be trying to move you to HTTPS instead of HTTP, and your certificates may not be set up properly, or the port isn't enabled, or there may be some other problem with your HTTPS configuration. If the app is supposed to work over HTTPS, try going directly to the HTTPS version of the link to see if that's the real issue.
A third guess is the app may be trying to redirect you to a login page if you're not logged in, and maybe it can't find it. I'd need to know a lot more about the built product and I really don't want to mess with some guy's shared Eclipse project. Tell them to use a build tool!

Redirection After authentication on shared host in Zend framework 2

I am also trying to deploy a ZendSkeletonApplication on a shared host but I am facing some problem regarding redirection. The problem is when a user try to login it gets stuck to /projectname/user/authenticate. It doesn't get redirected to dashboard after authentication.Unfortunately all i see is a white, empty page. Locally it worked perfectly Here it looks like Zend doesn't recognize that it should do anything with this url and redirecto to appropriate action.
Thanks in advance
The problem is presented by the new release of PHP. Try updating your version of php above 3.xx. I upgraded to the latest version of php in the hosting and the problem was solved. PHP 5

Deployed MVC4 application not opens completely

I deployed MVC 4 application to Arvixe.com hosting. In local everything is okay, site opens full, but after deploying, site opens, but, not full. css, jquery, javascript is not working. Only html tags seem.
Arvixe support send this to me: How to Bin Deploy ASP.NET Assemblies on Shared Servers. But I can not understand it well. Can anybody help me to find that why site does not open full? What shloud I check to solve this?
When linking your views and resources you should use relative paths
instead of
"Views/MyView.aspx"
use
"~/Views/MyView.aspx"
This is valid for all resources in your application and it is know to cause these problems.
When working locally the paths are correct since it's all resolved to your computer.
In a web environment you will have to use the relative path so the url is resolved in front of all your resources.

Web.config: Redirect from http to https

I'm new to ASP.NET, i have developed a website and hosted it on GoDaddy.
Is it possible to have a folder under the website requires an https to access it or any file under it? in other words, when any file is loaded from that folder the URL address will turn into HTTPS://
Thanks
Decorate the controller which provides access to those URLs with [RequireHttps].
Take a look at http://www.dantor.com/support/misc/web-config-response-redirect.aspx it has some great examples. I guess you can use one of those to redirect to the https URL.

Configuring the webserver on a production site for Symfony

I am setting up my Symfony project on the production site. # this point it states:
This project uses the symfony libraries. If you see no image in this page, you may need to configure your web server so that it gains access to the symfony_data/web/sf/ directory.
Which basically means, I need to get into httpd.conf file and make some changes (for those who have diligently followed the Symfony tutorials, you guys know what I am talking about). Given this situation, I am not sure how I can go about configuring the httpd.conf file on the production server.
Anyone have any strategies around this? Thanks,
Parijat
You can do it by adding symbolic link from your symfony_data/web/sf to web/sf but your web server must follow symbolic links or you can add "Options Indexes FollowSymLinks" in to your .htaccess