‘ASP.net MVC’ Archive

How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error

The Problem: You have a brand new Windows 2008 server and you are testing your web application and trying to send an email.  Every time you try to send an email via the web application you get the following error

“System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25″

The Cause: SMTP services are not installed on the server, they do not seem to be installed by default. Read more on How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error…

Popularity: 8% [?]

What is the best jQuery modal popup method?

I do not know that much about jQuery, or any of it’s offshoots (jQueryUI, etc) but I do have a need for modal popups.  As I am building the website in ASP.net MVC, instead of ASP.net webforms I  have decided to use the jQuery platform instead of the standard Ajax Toolkit.

Read more on What is the best jQuery modal popup method?…

Popularity: 14% [?]

How to fix invisible view in ASP.net mvc

This is not the most significant I know, but the goal is to document every problem that took more than 15 minutes to solve, and I did try the more complicated methods before I tried the obvious one, so here it is.

The Problem: When programming in ASP.net MVC in Visual Studio 2008 you create a new folder, in the views directory, then create a new view in that directory called Index. For example I was working on the Stronico public site (coming soon, really) and created a directory called “Contact”, and a view called “Index.aspx” so the url could be http://www.Stronico.com/Contact/. I also created the Controller “ContactController.cs”. When I went to the staging site on LocalHost, I got the “File Not Found” error.

The Cause: I never did find out. I tried changing the verbiage slightly, in case contact was a protected word, I reset IIS, I did several other things. None of the usual methods worked.

The Solution: I finally just closed the solution and restarted it and I was able to get to the contact page. No idea why that worked, but it did.

Sort of a a lame post, but I did spend slightly more than fifteen minutes trying to see why the page would not appear, only to find it to be a simple Visual Studio error.

Read more on How to fix invisible view in ASP.net mvc…

Popularity: 1% [?]