I am NOT new to programming however new to c#, asp, and visual studio. For my course project I have to take a seniors existing code and add some more functionality to it to demonstrate my ability in Software Maintenance.
Bug Tracking or is my project and I have to select from two different project however they are old Web Site template and NOT Web Application.
Found a way to open them now I just help with basic SQL settings
all numbered images
Refer to picture and then read please. 2 sub-folders in the project folder, once contains code and the other contains DB files (Pic# 1-3). Pic-4 shows the SqlConnection ctor and Pic-5 is my problem.
Both project appear to be the web forms template, and appear to be the web site template approach, which doesn't have a CSPROJ or VBPROJ file for the project. If there is a solution, you can open it from there. So use Visual Studio or the web developer express tools, which are free.
Related
I have a rather large Web Application that I began to create using the "Web Projects" solution type in Visual Studio.
I now have a need to incorporate some legacy VB.NET into the application, but low and behold you cannot mix languages using the "web project" model. I have to use what is referred to as projectless development (which is basically just a single folder for the entire website).
Any idea on how I can covert a project to a projectless model?
I hope this makes sense...
Creating a web-site from a web application is relatively straight forward.
Open a new instance of visual studio
File > New Website
Select the folder that has your web application.
Visual studio will warn you that there is already a website containing files at that location.
Select Create a new web site at the existing location.
It will warn you that some files like Default.aspx exist. Choose not to replace them.
And you are done.
The reverse, creating a web application from a web site is difficult. So be sure before you make the change.
I have recently been tasked with updating a system done in C#. I am coming from a Kohana MVC web based development but have experience in C#.
Problem is: My solution is in some 'weird' namind convention. I would like to know what it could be and how to load the solution in VS 2010 Ultimate.
MySolution.BusinessLogic
MySolution.Common
MySolution.Contracts
MySolution.DataAccess
MySolution.DatabaseInstaller
MySolution.Entities
MySolution.Reporting
MySolution.UI
MySolution.UIControls
How does this work? Do I need to edit each folder separately or there is a way to load the whole solution in my developer IDE?
There should be a .sln solution file, probably in the project root folder. That is typically what you would open in Visual Studio. You can open individual project files (.csproj), but its much easier/better to work with a solution that contains all required projects.
I have a highly complicated web site that is under source control and has a long history. I would like to migrate this website into a web application project but I do not want to lose the source control history. We use Visual Studio 2010 and Team Foundation Server (Currently 2005 tfs but we are in the process of upgrading to 2010).
How can we create a webapplication project and migrate the files from the web application into it without losing the source control connections?
Is there a need to "migrate" the files to a new directory structure?
Seems to me that if you left all the files where they were, created a new WebApplication project, and just use "Add Existing Items" to add the files to it, that everything would be fine. All the files would stay in the same place, you'd have a brand new project file, and your history would be preserved on everything.
Every time I use Setup & Deployment to create a new Web Setup, and run it (after edit all the nice things in the properties), the output is always a copy of the Web Site project...
How can I output a PreCompile version of the WebSite project?
What I did was, publish the Web Site (so I get the precompiled version), add this new precompiled web site as an existing Web site to my solution and add it to the content output of the Setup...
well, the idea was good but I get an error saying:
"This application is already precompiled."
alt text http://www.balexandre.com/temp/stackoverflow_precompiledquestion.png
:-(
Bottom line is that I just want a Setup file that gives me the precompiled version of my Web project, how can I accomplish this?
I see you tried the standard Web Setup project from VS.
Scott Gu's blog post takes you to this page:
Visual Studio 2008 Web Deployment Projects
which is a plugin for Visual Studio that activates an additional "right click" option to any Web Site project to add such a deployment project. You can see here what I created.... And the output is a pre-compiled web application. Now, if you add a regular Web Setup project to your solution, and point it to the previously created Web Deploy project as its content, ... I got a valid build, no errors and an MSI file was created...with dlls inside it.
http://img222.imageshack.us/img222/6177/71881923mj9.jpg
I hope this helps you.
I was searching for this solution from google for long days. What i did is i precompiled my website to one folder and added that folder as a new website to my
solution(While adding it will give a warning message that it was already precompiled content. No probs). Now add this project output to the my setup project and one more important thing is in my web deployment project i just disabled Building of my precompiled
website.
I just got my thinks working. If you want you can try that.
Regards,
Rousseau.A
you may be having "PrecompiledApp.config" file in the root of your web application (please check in solution explorer).
I faced this issue and removed "PrecompiledApp.config" from solution explorer and solved the issue.
I need to get existing web pages into an existing ASP.NET web site project in Visual Studio 2008. I simply tried to drag and drop the whole file folder content into the Visual Studio Solution Explorer or even to copy them into the web site folder.
Both ways, Visual Studio seems unable to map the .designer.cs files to the corresponding .aspx (or .master) file, even after restarting the whole IDE. The Solution Explorer entry looks in a way like this:
- Main.aspx
Main.aspx.cs
Main.aspx.designer.cs
Can I make Visual Studio file the designer-file below the aspx-file in any way? I strongly hope there is a simpler way than manually creating each file and copying and pasting the contents into each file by hand.
It sounds like you are trying to bring web application files into a web site. IIf that is the case, The designer files are not even needed. Just dont include them. They are generated and compiled in at runtime when the website runs.
Kind of partially self-answering my question:
In a web project - in contrast to a web site - it works perfectly through drag and drop onto the solution explorer, as I did for the web site before. To make the decision which type of "web site unit" to use there is another thread here on stackoverflow: ASP.NET Web Site or Web Project.
In a web site I can't even use YonahW's solution, because I can't just put files into the proper web site directory without causing them to be added to the web site automatically. Thanks to you anyway, YonahW. :-)
try copying the files through the filesystem and then right clicking on the project and selecting to add an existing item at which point you can choose all at once and this usually puts them in the proper places.