Convert JSON objects to classes

17. April 2013

Convert JSON objects to classes 


A very useful utility i found on this web page which lets you create classes for the format of JSON objects a service returns which in turn can be used to de-serialize JSON objects . 

The link is - json2csharp - generate c# classes from json

WCF ,

How to configure IIS to use a specific IP in Multi IP configuration server

14. April 2013

How to configure IIS to use a specific IP in Multi IP configuration server . 

There can be times when you want to run apache and IIS simultaneously on your single Server and also on port 80 , in that case the only option is to get an extra ip allotted to your machine and assign each one of them to each server . 

Now configuring apache is simple just go to this below link 

http://www.codeproject.com/Tips/395286/How-to-Access-WAMP-Server-in-LAN-or-WAN

and for configuring IIS 7 to use 1 IP you will have to explicitly change that , changing binding settings in IIS to specific IP wont work until and unless you reconfigure IIS using this blog post http://support.microsoft.com/kb/954874

 

 

IIS ,

How to create multiple ftp sites in IIS over single domain

8. April 2013

How to create multiple ftp sites in IIS over single domain

Using these blog posts i was able to create multiple ftp site on single domain with different virtual hosts/sub-domains , i also got to know how to access these with clients like username should be subdomain.examplpe.com|username

Using FTP Virtual Host Names in IIS 7

http://www.iis.net/learn/publish/using-the-ftp-service/using-ftp-virtual-host-names-in-iis-7

Virtual Hosts and Host Names in FTP7

http://blogs.msdn.com/b/robert_mcmurray/archive/2007/08/28/virtual-hosts-and-host-names-in-ftp7.aspx

IIS ,

Running IIS and Apache in Same computer simultaneously using different ports

8. April 2013

Running IIS and Apache in Same computer simultaneously using different ports

The following posts were beneficial in this case :

http://altafhussainbd.wordpress.com/2011/12/22/running-iis-and-apache-in-same-box/

IIS ,

How to create an IIS FTP Site

8. April 2013

How to run php website on IIS 7 with ASP.NET website simultaneously

7. April 2013

How to run php website on IIS 7 with ASP.NET website simultaneously

The process to do this is ( i suppose that IIS 7 is currently working and serving a ASP.NET website ) install php from microsoft web platfom installer ( you can get that here - http://www.microsoft.com/web/downloads/platform.aspx ) it will automatically install the dependencies .

Now php is installed and we will have to install CGI from control panel -> Program and Features - > Turn windows features ON or OFF

and check CGI features as shown in picture

 

 

Now simply add a new website in IIS with default app pool and your site is up and running with php installed .

 

 

IIS

Accessing SQL Server on Windows Server 2008 R2 from remote client

27. March 2013

This is a nice Blog post for the solution to this problem :- http://stackoverflow.com/questions/5717310/accessing-sql-server-on-windows-server-2008-r2-from-remote-client

The solution which worked for me is :- 

Here is a summary of what worked for me to get remote connections working. I am not an expert in this so some of my steps may not be necessary. I took some of the steps from other answers to this question.

  • Open SQL Server Configuration Manager
  • Select SQL Server Network Configuration
  • Chose your instance of a SQL Server
  • Make sure that TCP/IP protocol is enabled
  • Right click TCP/IP protocol
  • Select properties
  • Click IP addresses tab
  • Scroll down to IP4. The IP address of the server should be here. Set active to yes and enabled to yes. Set TCP port to 1433 (don't know if this is necessary. Can some expert comment)
  • Scroll down to IPAll. Set TCP port to 1433
  • Make an inbound firewall rule for port 1433
  • open sql server management studio, right click server instance, properties->connections-> allow remote connections. Security-> SQL Server and Windows Authentication mode
  • restart sql server service
  • restart sql server browser

MSSQL 2008

Taking over your website server under different Domain name by someone

26. March 2013

Recently i found out that my site was captured under a different domain name . When i was searching for some link in google there was a link which was pointing to my website's page but the domain name was entirely different from mine . I checked in my server that IIS was bound to all HTTP request coming through port 80 to my site hence someone just used my ip address under their domain name and started publishing my site under it . 

 

Solution to this problem is simple, bind your website in IIS to specific domain and never leave domain binding empty else you could also face the same problem .

IIS , ,

How to use default required validators in HTML

21. March 2013

I just got to know something new ( i know its not a very recent thing its just i was unaware of it till date ) that we can use HTML 5 inbuilt validation . You just have to include 'required' word in <input> tag and there will be an automatic validator.

<input name="something" type="text" required />

HTML5 , ,

Updatepanel gives full postback instead of asyncpostback When using Dropdownlist inside listview inside Updatepanel

19. March 2013

Updatepanel gives full postback instead of asyncpostback When using Dropdownlist inside listview inside Updatepanel . This Problem i faced when i had a listview which dynamically gets items and populates itemtemplate with dropdownlists . I had this listview inside an updatepanel and when selectionchanged event fires a complete postback was fired .

Solution to this problem i found out at this link http://stackoverflow.com/questions/4319156/updatepanel-gives-full-postback-instead-of-asyncpostback

OR

you can directly add ClientIDMode="AutoID"in listview

 

 

ASP.NET ,