Showing posts with label internet. Show all posts
Showing posts with label internet. Show all posts

Sunday, February 16, 2014

HOW TO: Use ASP to Force SSL for Specific Pages

Forcing ASP page to use https can be done in couple of ways, here I’m sharing how we can do this using ASP.net code itself, rather than configuring IIS. Step 1: Create INC file with following code
<%
if(Request.ServerVariables["SERVER_PORT"]== "80")
            {
                string strSecureURL;
                strSecureURL = "https://";
                strSecureURL = strSecureURL + Request.ServerVariables["SERVER_NAME"];
                strSecureURL = strSecureURL + Request.ServerVariables["URL"];
                Response.Redirect(strSecureURL);
            }
%>
Then save it as “ForceSSL.inc” in web application root directory. Step 2: Add reference to INC file by adding below line:

Note: If you are using Master page, then you have to add this code inside




Step 3: Add https as new binding in IIS.
Reference: http://support.microsoft.com/kb/239875

Tuesday, June 25, 2013

Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.

Today I tried to run Silverlight sample project in my machine and I got below error.
“Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.”

I checked the Silverlight version I installed and it was version 4. Then I just did a Google search and found the below blog post, after installing Silverlight_Developer.exe I was able to run Sample Silverlight application successfully. 



Thanks

Friday, July 15, 2011

How to change debugging browser used in VS 2010 , MVC 3

Recently I have work with Asp MVC 3 and had a problem with changing my default Brower from Firefox to IE.

In Asp.NET it is possible with “browse with” option. See more details on ScottGu’s blog.
But in MVC project we don’t have any aspx files, so how to configure our solution to do it so?
There is a way to do this.

1. Right click on solution and go to the “Properties”
2. Go to “Web” Tab
3. Set the Start Action to use Start external program and then pass the Internet Explorer executable path and the url as Command line arguments.
4. Set the Servers’ specific port to the same port set in the url in step 3.
See the following image to get more info.

Thursday, July 14, 2011

VS2010 not opening CSS files : MVC 3

Hi all,

I am using Visual Studio 2010 as my development platform. Recently I have install MVC 3 with Web Standards Update for Microsoft Visual Studio 2010. But unfortunately when I try to work with MVC 3 applications I was unable to open CCS file with Visual Studio.

So I just Google it and found the solution. Here is the link .

Try to repair your installed Web Standards Update for Microsoft Visual Studio 2010 SP1 by using following path.

Got to Tools - Extension Manager - Online Gallery and search for/install the "Web Standards Update for Microsoft Visual Studio 2010 sp1"

Then click on repair link. And restart Visual Studio. Hop everything fine now ….

Friday, May 22, 2009

Web Hosting

If you want to take part in the internet as a business, information resource, directory, or as a hobbyist wanting to share data, information and knowledge with the many people and communities on the internet, you have to contain this in a central spot on the internet. You have to own a piece of space in cyberspace

Web hosting empowers you and anyone with a computer and internet connection to own a piece of cyberspace. In your space, you can have news, bulletins, documents, data, files (your web site) and your own post office (mail server) to accept mail, all in the context of you or your business. This is your space and to get this space you either have to own a piece of the physical internet with a network connection to the internet backbone and computer(s) operating as server(s) offering access to your files and post office, for people on the internet to view your web site or send and receive email with you.

The cost of owning a direct connection to the backbone and a server dedicated to a web site and email is out of reach for the average business and especially general members of the internet. Even running a web site and mail server on your own computer when it is connected to the internet requires a lot of technical ability and knowledge. The internet itself has to be your business for either of these options to be viable.

In a web-hosting environment, you are offered a web site to place your files, data, documents, and bulletins for people to access with their web browser and an email server for you to send and receive email messages. The web host will also provide you a means to get an address for people to get to your web site with a web browser and post email to you.

This is just a begin. I’ll write more about web hosting in my next post… cheers you all.

MS CRM 2011 KB Article customization Issue.

Recently I have encountered some issue while customizing Kb Article Entity. I was doing following configuration in Article form. 1. Add Ba...