Thursday, September 22, 2011

Try Windows 8 Developer Preview on VirtualBox !

Today, I tried windows 8 on Oracle Virtual box which windows 8 themes and feature more like seemlier to windows 7 with Chrome features.  Microsoft is planning to move more touch pad base interface with keeping tradition look. Windows 8 requires to upgrade / new install which overwrite my Win 7, instead of that I chose virtual box option as I do not want to reinstall win7 again & reconfigure my setting back. 

Windows 8 offers both a Desktop mode and Metro mode, I am not discussing can find feature from Microsoft and other blogs … I am trying to help setup your own personal machine and evaluate features yourself.

Windows 8 works great on the same hardware that powers Windows Vista and Windows 7:
1 gigahertz or faster 32-bit or processor
1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
16 GB available hard disk space (32-bit) or 20 GB (64-bit)
DirectX 9 graphics device with WDDM 1.0 or higher driver,

For more feature you can go developer Preview guide

My machine runs Win7 home premium with i7 and 8 Gb memory.

To install on Virtual box, you need to download following tools…
1)      Windows 8 developer preview  (ISO)
2)      Virtual Box

Install Virtual box and follow below steps,
1)      Open virtual box and create new VM instance by clicking new
2 ) Select Windows 7 (64bit, if you download 64 bit iso) and define  Instance name
2)      Allocate Memory minimum 2 gb for better performance, min 1 Gb

3)      Select boot hard drive and create

4)      Select VDI
5)      Select Dynamice allocated

6)      Allocated around 30 gb storage as 16 Gb requirement
7)      Select instance setting and select storage, add IDE controller as Win8 iso file to boot and install

8)      Configure wireless adapter as below
Start instance, Allow to book from ISO (DVD)

Restart VM instance and allow to book from CD or DVD..

Select basic setting and go next….

Select express setting …

You can create local user or user windows live account for authentication…

Wallahhh … here’s ur windows 8 home screen… you can select different application from metro interface.

New control panel look,

Lock screen…

Control panel personalization….       
New search…

Legacy windows 7 control panel

User setting..

Metro screen IE

Desktop IE 9

Screen keyboard..

Visual studio 11 for developers…. To build different apps using Javascript, C#, VB and C++

Validating different style apps…. Using windows app certification kit

Different ways of screen navigation like drag screen and using tabs..

New and imporve Task manager with more user friendly ..

As it’s developer version not.. final version.. it breaks many places and many app features are not available yet.

So, quite obviously, the Metro interface is almost specifically designed to be used with touch screens. But since it is meant to also be a full blown desktop OS, it should also be keyboard and mouse friendly. Unfortunately, I often find that the mouse isn't two suited to Metro. It feels very out of place with all the random gestures and flicking, scrolling etc. Maybe there should be a few more options about how the OS handles the mouse, making it more mouse friendly when someone prefers to use that rather than an awkwardly placed touchscreen. I mean, let's face it, How many people actually have touch screen computers?
I feel that the new Metro interface is nice to look at but productivity is where it falls short. Everything you are used to doing takes an extra click. It feels more suited to tablets and phones rather than proper computers. I think there are quite a few improvements which can be made to improve the OS and it isn't a total lost cause. There are still plenty of aspects which I like about it but obviously those don't really fit with the title.
May help you to evaluate Win8..  will update as I discover new features.... & will build new app...

Wednesday, August 24, 2011

My Global Identity... ruin by my Local people..

Sharing my experience which ... may many people do not care but I care and It's personal..

Friday, May 20, 2011

Microsoft SQL Server Management Studio 2008 R2 does not allow saving changes to table structures that requires the table to be re-created

Default Microsoft SQL Server Management Studio 2008 R2 does not allow saving changes to table structures that requires the table to be re-created, like inserting a new column at a specific position or changing the data type of a field. The saving process is aborted with the following error dialog:

You can change this behavior by unchecking the option
Tools > Options > Designers > Prevent saving changes that require table re-creation

Tuesday, May 17, 2011

HTTP Error 500.19 - Internal Server Error

From last two time installation and configuration IIS 7.0 on windows Server 2008 R2 I am having issue after application configure application IIS .. which showing error "HTTP Error 500.19 - Internal Server Error".

I tried different way to solved issue but for me following worked both time
Solution :
Try 1 : I added IIS_IUSER permission to Application - did not work.
Try 2 : Application pool --> Adavance Setting -- > Identity changed to Local System, Local Service, Network Service or IdentityAppPool... - did not work
Try 3 : I added Permission to Local Server\User and It charm :)
(Windows Authentication on and Anonymous off)

Try other Solutions might work for you

I am not Windows / IIS Guru... I worked mostly Architect application, design and implementation ... but I try to figure out issue rather waiting for 2-3 days... and here what i found... updated me if something wrong or not feasible solution.. I am happy to improve myself.

Wednesday, April 28, 2010

Programmatically Generate Report and store as pdf or send as email

Every time going to Reporting service and generate report it's tedious work also some report takes longer with millions of data. User does not have time to click report generate button and wait for 10-15 minutes. Use need ready to use report with real time data. We can schedule service or Task and generate report in background and user get email on his/her schedule time. Here I tried to create some application and it's running very well on my production environment.
below if only basic structure of code.
1) Create New Windows / Web Application (depend on your requirment)
2) Add Web Refrence for Web Site / Service Refrence for Windows
3) If you are using .Net 3.5 can use WCF client, instead of web service client.
4) For excel, csv,web and xml --> try file extetion as .".xls",".csv",".html",".xml"

using System.Text;
using System.Windows.Forms;
using System.IO;

using System.Net.Mail;

private rs2005.ReportingService2005 rs;
private rsExecService.ReportExecutionService rsExec;

rs = new rs2005.ReportingService2005();
rsExec = new rsExecService.ReportExecutionService();

// Authenticate to the Web service using Windows credentials

rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;

//// Assign the URL of the Web service

rs.Url = "http://SERVERNAME/ReportServer/ReportService2005.asmx";
rsExec.Url = http://SERVERNAME/ReportServer/ReportExecution2005.asmx;

string historyID = null;
string deviceInfo = null;
string format = "pdf";

// Byte[] Sendresults;
string encoding = String.Empty;
string mimeType = String.Empty;
string extension = String.Empty;
rsExecService.Warning[] warnings = null;
string[] streamIDs = null;
// Default Path;
string fileName = @"c:\samplereport.pdf";
// Get the report name
string _reportName = @"/FOLDER/REPORT_NAME";
string _historyID = null;
bool _forRendering = false;

ParameterValue[] _values = null;
DataSourceCredentials[] _credentials = null;
ReportParameter[] _parameters = null;
// Load the selected report.
rsExecService.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);

// Prepare report parameter.
rsExecService.ParameterValue[] parameters =
new rsExecService.ParameterValue[2];
// Place to include the parameter.
if (_parameters.Length > 0)
parameters[0] = new rsExecService.ParameterValue();
parameters[0].Label = "StartDate";
parameters[0].Name = "StartDate";
parameters[0].Value = DateTime.Now.Date.ToShortDateString();

parameters[1] = new rsExecService.ParameterValue();
parameters[1].Label = "EndDate";
parameters[1].Name = "EndDate";
parameters[1].Value = DateTime.Now.AddDays(1).ToShortDateString();
rsExec.SetExecutionParameters(parameters, "en-us");
//get pdf
byte[] Sendresults = rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);

MeoryStream ms = new MemoryStream(Sendresults);
//send email
MailMessage mail = new MailMessage();
mail.Subject = "Test_Report " + DateTime.Now.ToString();
mail.From = new MailAddress("");
mail.Attachments.Add(new Attachment(ms, string.Format("{0}_Document." + format, "Test_Reprots")));
SmtpClient smtp = new SmtpClient("");

// Create a file stream and write the report as file
using (System.IO.FileStream stream = File.OpenWrite(fileName))
stream.Write(Sendresults, 0, Sendresults.Length);
catch (Exception ex)

Monday, April 19, 2010

Some ways...

Chicago' 10
"Little fight"
yellow Dream (New York)

Drops of Life

Login failed (rsLogonFailed)

when setup using execution account on reporting Service Configuration and allow Domain user access to reports. To solve issue remove Execution Account or Reset the Password.