Microsoft Office Excel cannot access the file ‘C:\inetpub\wwwroot\Download\mahedee.xlsx’

I have deployed my application in a 64 bit OS and got the following error at the time of uploading an excel file.

Microsoft Office Excel cannot access the file ‘c:\inetpub\wwwroot\ Download \ mahedee.xlsx’.
There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.

Solution:
1. Create directory “C:\Windows\SysWOW64\config\systemprofile\Desktop ” (for 64 bit Windows) or “C:\Windows\System32\config\systemprofile\Desktop ” (for 32 bit Windows)
2. Set Full control permissions for directory Desktop (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user “IIS AppPool\DefaultAppPool”)

Solution disappears in solution explorer : Visual Studio 2010

I installed visual studio 2010 in my pc. I created a blank solution. When ever I add a project to the solution the original i.e root solution is disappear. This means that as soon as you add a project to a blank solution, the solution disappears and you are unable to add another project. I spent a lot of time to solve the problem. It is very easy.

To do this, goto tools->options->Projects and Solution and check the “Always show solution” option.

First program using visual studio 2010

Hopefully you have already installed visual studio 2010. If you didn’t install yet, Install Visual Studio 2010 Step by Step.

So, let’s try to write our first program in visual studio 2010.

Step 1: Click Start -> Program -> Microsoft Visual Studio 2010 -> Microsoft Visual Studio 2010.

1

Step 2: If you open Visual Studio 2010 first time after installation in your computer. You will see the following screen. Select Visual C# Development Settings and click Start Visual Studio. We have selected Visual C# Development Settings because we will work with C#.

2

Step 3: After Clicking Start Visual Studio at previous steps you will see the following screen. Click File -> New -> Project.

3

4

Application among the projects. Note that I have changed my project location and Project name. You can keep default location and name.

5

Step 5:  Now you will see the following screen where you will develop your first program. You will see default code snippet which comes automatically.

6

System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{

}
}
}

Add a simple statement in the Main Method:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("This is my first program in C#");
}
}
}

Step 6: Click Debug -> Start Without Debugging or Press – Ctrl+F5. You will see the following screen.

Output:

7

Yes! You have done! This is your first program in C#. Happy

Install Visual Studio 2010 Step by Step

Visual studio 2010 has eight major versions.
1. Ultimate
2. Premium
3. Professional
4. Express
5. Team Foundation
6. Test Professional
7. Team Explorer Every Where
8. Light Switch

The clear picture of Visual Studio 2010 is given below

0Prerequisite to install visual studio 2010

  1. Disable anti-virus or anti-spyware software
  2. Close all of your running software
  3. If you are using windows xp make sure it is service pack 3
  4. If you install other than windows xp make sure it is service pack 2 or more
  5. 1 GB RAM
  6. 3 GB of Hard disk space

Step by Step installation

Let’s start to install visual studio 2010. Here I will install visual studio 2010 Ultimate Edition. You can install it from hard disk or DVD ROM. If you install it from DVD ROM, visual studio 2010 will run automatically. I am installing it from my hard disk.

Step 1: Double click on setup.exe

0.1

Step 2: After clicking setup.exe file, you will see the following screen. Click Install Microsoft Visual Studio 2010

St-2

Step 3: Click next to start installation.

st-3

Step 4: After clicking next you will see the following screen.

01button I accept the license term

02

Step 6: Select the features that you want to install and the path you want to install visual studio 2010. If you don’t select path it will install in default location. You can select either Full or Custom features. If you select custom you have to select features which you want to install. For the beginner I suggest to select full feature.

st-5

Step 7: Then the setup will start to install its components.

st-7

Step 8: Reboot your computer. To complete installation you may have to reboot your computer for one or twice

05

Step 9: After the rebooting, the setup will start again

6

Step 10: The setup starts to install the rest of the components.

07Step 11: The installation complete.

complete
If you see the above screen, your installation completes. So, let cheers!!!