Showing posts with label Visual Studio 2012. Show all posts
Showing posts with label Visual Studio 2012. Show all posts

19 November, 2013

My mistake: VS2010 to VS2013 is OKAY

Screeshot of FarPoint Spread for Windows Forms...
Screeshot of FarPoint Spread for Windows Forms version 5 in Visual Studio 2010. (Photo credit: Wikipedia)
19-Nov-13

So I was wrong. I thought that the errors I got from installing Visual Studio 2013 was due to the absence of Visual Studio 2012. I was wrong.

In one of the PCs I tried to install Visual Studio 2013 without Visual Studio 2012. That means I only have Visual Studio 2010. And boy, having these old desktops can cause a lot of confusion sometimes. It did, and I thought that the errors coming up one after another, they were all due to the “jump” from VS2010 to VS2013.

I was wrong.

While installing Visual Studio 2013, some errors came, mostly about SQL-related, and I just either retried the installation (modify or repair), until a restart was mandated. The installation continued after the reboot, until it was fully completed.

I called up VS2013, and when it opened nicely without any hesitation or problem, I was satisfied. When I was able to install updates, it was when I was completely assured that the installation was okay, or that I am able to “jump” from VS2010 to VS2013. I was wrong; dead wrong.

And only after my insatiable curiosity got the better of me did I find out about it, that I was wrong, and now, I am righting that mistake.
Jump from VS2010 to VS2013 is okay; it is possible.

Till then!
Enhanced by Zemanta

03 November, 2013

Don’t jump: VS2010 to VS2013

Image representing Microsoft as depicted in Cr...
Image via CrunchBase
1 November 2013


Visual Studio 2010

I have been using Visual Studio 2010 for quite some time now, and seeing Visual Studio 2012 and having some hands-on with this version gave me some inspiration.

So imagine my excitement when I came across Visual Studio 2013! One thing that got me hooked (immediately) is the Code Lens extension. And that is just the extension…

I now continued my reading of Beginning ASP.NET 4.5 in C# and VB eBook, but I decided to use VS2013. I noticed right away that web site project creates 3 files, and the code-behind file, which is only one in previous versions, are now 2: the program code and the designer code.

I thought right away that Visual Studio has something new to offer, so that I started to clean up one other PC that I use for development, sort of back-up.

Clean-up done, where much old data files were discarded, and the disks were resized, and even repartitioned, I salvaged some space for Visual Studio 2013.

Then, I got some errors during the installation. As always the promise, Microsoft will try to fix it.

Retry, same error, same message. Retry, same error, same message. And finally, retry… same error, same message.

I looked (finally, some serious scrutiny) of the packages having error in the installation, and my immediate guess is that these files I do not know, and owing to the very close release dates of Visual Studio 2012 and Visual Studio 2013, I guessed that these files must be from Visual Studio 2012. The other confirming factor to this wild guess is the installer package size – VS2012 has a bigger installer than VS2013.

Visual Studio 2012

I now digressed to installing Visual Studio 2012. As earlier thought, the installation went through without a single glitch.

Setup completed. Product launched. Updates applied. Done!

Visual Studio 2013

Coming back to Visual Studio 2013, the installation was then retried, and this time, there was no error that came up. Setup completed in a jiffy!

Product launched. Updates were installed. And now, I have a back-up machine that runs Visual Studio 2013.

Lesson learnt: Don’t jump (you cannot jump) from Visual Studio 2010 to Visual Studio 2013. Do Visual Studio 2012 first. They have done much in the in-between years…

Till then!

Enhanced by Zemanta

17 October, 2013

Stylesheet folder or directory - could make or break your web apps

English: CSS rule in Malayalam
English: CSS rule in Malayalam (Photo credit: Wikipedia)
17-October-2013

I have been reading on ASP.NET, so at least I learn something new. I have been coding and coding and coding, and I have become the woodcutter who did not sharpen his axe. And with the slowdown in load (all major projects completed, and pending roll-out only), I have some free time on my hand.

I found an e-book of Beginning ASP.NET 4.5 in C# and VB, and I skipped the chapters that discussed basic web development, but coming to Chapter 3, I found the CSS section a bit of an eye-opener. Not that I know nothing of CSS -- it is something that I have used extensively on my site, but not entirely the optimum way. And what I have just learned, I tried to apply on one of my simple web applications.

Did I find something to blog on?

You betcha!

I am one who always practiced organization, and I just find that the stylesheet file that was created in the process is 'mixing' with the code files. I just didn't like that. So in the middle of streamlining the CSS codes, have done some pages already, I moved the stylesheet to the \App_Code folder. There was no objection in the IDE...

So, I completed migrating all the inline and embedded styles into the Stylesheet file, so they are all in one common place, and this gave me a chance to remove all redundant and duplicate styles. Wow! Just think of the junk I created... And that is just in the simple web apps...

Anyway, having done everything, I now proceeded to test if what I did works.

Surprise, surprise!

In IE, it did not work. I am using IE10, running in Windows 7 Enterprise. The fonts and colors are all using the default values.

I tried it in Maxthon, in most likelihood, the closest browser to IE. The same behaviour was observed.

I now tried Firefox, and the styles came forth, shining through!

But since the majority of browsers used in our company is IE, I have a problem...

I tried defining the font in the individual rule sets, since the * { font: ...} rule doesn't seem to work at all.

No change.

I put the font definition in the body { ... } rule, and still, no effect.

At this point, I now thought of doing one thing: search the web. Search the web for similar issues and of course, the possible solution to my problem.

Found one article that mentioned the problem to be related to some server issues, and also on the folder/directory that keeps the stylesheet file. Spaces must be replaced with underscore (_).

Well, mine is having an underscore (\App_Code\), so I ruled it out.

I stopped for a while, and tried to think some more...

Then, out of a wild guess, I thought of moving the stylesheet file out of \App_Code\ folder, and back into the main folder.

Did that work?

Yes, it did!

So it wasn't the folder having spaces, and it wasn't the server behaving erratically, but simply, and I confess I don't know why (I don't understand it), the problem was simply due to where the stylesheet file was located.

So a few more code corrections, putting back all those definitions [ * { font: ... } ], and making sure all sections work, I published my modified web apps.

Hopefully it is much faster now.

Till then!
Enhanced by Zemanta