Wanted to run the .Net project in my local machine. I have taken the backup of the live server as well as the DB. Now I have to run the project in my laptop.
As mentioned in my comment,
If you have the source code and visual studio install, great.
You should have an .sln file. Just double click on it and your visual studio will open.
There are lots of tutorials of how to run Visual Studio / c# code (You can also use Visual Studio code, or any other ligher software) you decide what is your preference.
Let me know if this helps
You didn't mention backup in dll form or source code,
if it is in source code you can simply load project in Visual studio and set as start-up project run that.
and if it is in in dll then you can locally host your project in your IIS server.
Related
I have developed a website using Visual studio 2010. Now one of my friend needs that website/project to copy in his system for further development. But whenever i copy from default VS project folder, it is not running in other system( Installed same version of Visual studio). I have done same with VS 2008 and it was working fine.
Follow the below steps :
image 1:
Copy the entire project folder (must Copy the entire project )
Open Visual Studio in Admin Mode
Open the solution file (you can see in the image 1 -project file)
Re-Build the Solution
How to copy from root folder of project :
Just right click the project and find options.
Note : Visual Studio 10 - Framework = 4.5 ,previous versions will not have the same framework so tools and references should be taken care of.They will not load if framework is different.
Probably the full path to the solution folder should be the same on both computers.
It is always recommended to use tools like Github.
These help to maintain a version of the files and all the organizations use some kind of version-ing system
https://www.unleashed-technologies.com/blog/2014/08/01/what-github-and-how-can-it-benefit-your-development-team
So following this practice will help you later when you will start developing professionally
and the tool is free :)
I have a C# project written using Visual Studio Express 2013 for Windows Desktop. When I run the project in debug mode via Visual Studio (on Windows 8 Pro) it executes just fine, and so does copying the files out of the bin directory.
I need to deploy to a Windows 7 Embedded System with the correct version of .NET Framework. I tried:
copying the files over with the .dll and everythig from the bin folder and when starting I get no error, but doesn't start at all. I get no information at all.
tried the one click installer (choosing the option to install from dvd) and it seemed to install fine, but when I start it, I get same issue. Not starting, and no messages.
I also tried the Advanced Installer (free version) and when importing the visual studio project files it fails with the message "Failed to start Visual Studio. Error: Invalid Class String"
[UPDATE] Advanced Installer cannot import VS Express solutions because the API from VS that provides assistance on import is not available for VS Express edition. Only solutions created with paid editions of VS can be imported in Advanced Installer.
So how can I log or see what is happening to debug this?
I am trapped in to a misterious issue. The visual studio 2012 test project, whenever I am tring to run it, is loading configuration settings from machine.config but not from app.config.
What you are describing here is normal. The reason for this the test runner is an external application that is ran by visual studio when you run the tests. As such, the test runner has its own config file that you would have to modify to pull this off. Conversely, the machine.config applies to every .net process that runs on your machine, so those settings will come in to the test project.
The problem in Visual Studio 2012 itself. To run tests by default it doesn't use your bin folder, it deploys assemblies to system folder.
So, your app.config doesn't work in this case. There are several solutions like copy your app.config to this folder on post build event or use .runsettings File. But the simplest way is to update your Visual Studio.
This issue was fixed in Visual Studio 2012 Update 4 and Visual Studio 2013.
I have Visual Studio Express 2012, and I'm looking to create an installation project for it, using WiX. I can't use the plugin because it's Express, so I'm using the candle and light approach.
I know how to make the wxs file I need, but my problem is that I'm not sure what files to include in the setup app (ex. the actual application file) and how to get Visual Studio to give me these files.
Any help will be appreciated.
Thanks.
-tradeJmark
You need to build your project in the Release configuration, which will create .exe and perhaps .dll files in bin\Release.
Do you have another machine? I happen to know that WiX works nicely with the free Visual Studio Integrated Shell.
hey there. So, we have a VS2010 project and the VisualSVN server on one machine. We added a new machine with the client visual svn and the projected loaded in. except for the WCF service. i'm getting a...
" error : the project file c:/..../wcfProject.csproj cannot be opened.
The project type is not supported by this installation."
i've checked the directory, the files and file structure are there and the same as the main development machine. any tips/solutions?
thanks
David K.
I had a similar problem with some WCF solution which I downloaded from a blog.
The solutions of running deveng with the switches did not resolve my issues. After some more searching it turned out that the following clue in the answer of Ralph Willgoss lead to the solution of my problem:
I resolved it by installing the Visual Web Developer.
I also had to (manually) install the Web Platform Installer to (automatically) download the last requirements for the project to properly load.
I had a similar problem when trying to create a new project of the following types:
WCF Service Application
WCF Work Flow Service Application
Syndication Service Library
I was using Windows 7 Ultimate 64bit, with no other versions of Visual Studio installed.
I also had tried many other options, such as:
devenv /resetsettings
devenv /resetskippkgs
ensuring I had C++ option of VS2010 installed
VS2010 Service Pack 1
I resolved it by installing the Visual Web Developer.
There are a few things this could be so I can't give you one specific answer. However, here are a few things to try on your machine that is throwing the error:
First, verify which version of Visual Studio is set as the default for opening csproj files. It could be that you installed SQL or something else that uses an older version of Visual Studio. Sometimes that can give an error. Even if the default is the Visual Studio version selector I've seen it throw an error. Open up the correct version of Visual Studio (through the Programs menu) and then inside Visual Studio try to open the package. If that works, you know the issue is with which version is opening the file.
If that doesn't work, you could try resetting the Visual Studio settings. From the run menu type devenv /setup This should reset the Visual Studio environment and hopefully it will fix the issue. If this does not work, try running devenv /ResetSkipPkgs from the Run menu. This will try to load any packages that Visual Studio previously skipped.
If these steps don't work, let us know. Give us any further error messages that come up after attempting these steps.