Friday, July 20, 2012

Configuring IIS to work with ASP.NET 4

Step 1:  Enable IIS on your computer.

  • go to control panel
  • Add or remove programs or program and features
  • Turn windows features on or off
  • Internet Information Service
  • select, all web management tools
  • expand world wide web services 
  • expand Application Development Features
  • check ASP.NET and .NET Extensibility
  • Click OK
Step 2:  Register ASP.NET 4
  • For 32 bit windows in cmd prompt enter
  • %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
  • For 64 bit windows  in cmd prompt enter
  • %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
Step 3: Configure your website to use ASP.NET 4
  • right click my computer and manage
  • In Services and Applications you will see IIS Manager
  • On clicking it a console will open up.
  • on right column of the console there is one change .NET Framework
  • Change it to .net framework 4
You Are Done and you can now run your local site on localhost


             

Monday, April 16, 2012

Solution to Drivers problem in Windows7 64bit

I recently purchased a laptop with Windows7 64bit OS preloaded as my old PC was proving a bottleneck for me. And believe me since then I had so many problems installing or running many of my favourite programs or IDEs.
And everytime after going through so many posts by my learned friends on net and trying many many supposed to be solutions I was finally able to get through the problem successfully. (Thanx to all those who take time to post all those useful informations).
And now I want to share with you all, the root of these problems(as understood by me). My able and learned friends are requested to guide me if I am wrong or if anything is to be added to the post.

Scene1: You have copied glut32.dll file into your %windir%\System32\% folder and when you link a file for opengl project in VC++ you get missing drivers or file error.


Scene2:You want to create an ODBC date connection and when you try to create a DSN you see that you are unable to add an ACCESS DSN due to missing drivers.


and many more........


Reason for the problem or error:
In windows7 64bit for security reason the drivers or .dll files path is changed to %windir%\SysWOW64\%.
But your program or IDEs still search for .dll in %system32% folder.


Solution:
Scene1:
Add .dll files to %windir%\SysWOW64\% folder instead of %windir%\System32\% folder.


Scene2:
In Administrator tools right click Data Source(ODBC) > properties and set Target path to %windir%\SysWOW64\odbcad32.exe 
Now you will be able to add ACCESS or many other data sources type for ODBS.


So if you face any issue for drivers or .dll please take this angle into consideration as a solution.

Friday, January 6, 2012

Using MySQL with asp.net using visual studio 2010

If you want to use MySQL as database with asp.net using VS 2010, you need to follow following steps.
1.   Install MySQL.(Download)
2.   Prepare database.
2.   Install MySQL connector(Download) for .net.
3.   Now create a new web project or open a web project, right click the project name, click on add reference option,  from .NET tab select MySQL.data version (version of your downloaded MySql connector) and select runtime as v4......
4.   Connection detail will be added into web.config file.
5.  Now you can MySQL with your ASP.NET application like any other database connection.