Error 3205 Too Many Backup Devices Specified.

. Thursday, March 31, 2011
0 comments

Cause:
This error occured because of you sqlserver is not compatiable with current backup version



Solution:

1)first run SELECT @@version and find the version

2)exit from current sqlserver and connect with other server for which your backup file(.bak) is compatiable.

RouteExistingFiles and IgnoreRoute in asp.net mvc

. Thursday, March 24, 2011
0 comments


How to Use RouteExistingFile and IgnoreRoute in asp.net mvc.

RouteExistingFile is a property of Routecollection class Which is True or false.
eg: routes.RouteExistingFiles = true

as you can see all css have been acting as route and hence no longer available for Home/
whenever you write this it routes the files present on your harddisk which in turns acts as a route.
for example if you have css in /content/file.css and you make RouteExistingFiles true then it will match
{controller}/{action} url for file.css and this will no longer available for existing pages.

Only two cases are possible to get file.css
1)if you directly hit that file eg:/content/file.css
2)if you use routes.Ignore route.

Case 1 is quite simple

Case 2 routes.IgnoreRoute is and extended method which accepts routes to be ignored and below will
ignore the route matching for css.
eg:
routes.IgnoreRoute("{Content}/{file.css}")
as shown in above figure now those files present on hard drive not acting as route and available for pages.

Thanks friends see you soon

Avoid css,Html errors-Asp.net

. Sunday, March 13, 2011
0 comments

Do you receiving css+ html errors when compiling asp.net application,and want to remove these validation errors its quite easy do following:

Goto Tools>options>css specific now uncheck the show errors
&      Tools>options>validations uncheck show errors for (netscape7,opera7,ie6) from dropdown.


Thanks