VS 2008 - How To Set Up Project Folder

Mar 3, 2010

I'm trying to set up a new project (Web Application, not Web Site) in such a way as the web root is in a different location to the "supporting files" (ie. .sln, .vbproj and My Project folder). I'd like to keep the web site root clear of these files.

It seems to be possible when creating a new "Web Site", as the project files are put in VS's "projects" folder, and only web.config and default.aspx end up in the web root, which is good.

For a Web Application, however, I'm having trouble. It seems to require web.config in the same location as the project file. I've tried this sort of arrangement:

As you can see, when I run it with F5, VS complains and creates a new web.config in the same folder as the .vbproj file. However I can run it in IIS without a problem (the IIS app path is configured for the wwwroot folder). But VS doesn't like it.

Is there an established, proper way of separating project files from the web site content with a Web Application?

View 18 Replies


Similar Messages:

Configuration :: Web Deployment Project 2008: Exclude Large Folder From Being Copied?

Mar 18, 2010

I have a large folder (1.5 GB) in my ASP.NET Web Site, called Downloads, which contains media files, graphics, etc. No code that needs to be compiled or even deployed on every build.

I use Web Deployment Projects to compile and deploy. Every time I build the deployment project, the Downloads folder gets included and copied to the output location. This is taking a significant amount of time, because the folder is copied twice.

I've tried modifying the wdproj file like this:

<ItemGroup><ExcludeFromBuild
Include="$(SourceWebPhysicalPath)Download*"
/>

I've also tried not adding the * after the folder, but then I get a message that says the directory is not empty during the build process.

I've also tried this approach:

<ItemGroup>

<RemoveBeforeMerge Include="$(OutputPath)Downloads*" />

</ItemGroup>

And that still did not help. (also says: The directory is not empty.)What is the proper way to tell WDP not to consider a folder at all?

View 1 Replies

AJAX :: Display Directory (Folder) Structure For Folder Outside Project In TreeView Control

Nov 22, 2015

[URL] ....

In above link you clearly describe (How to display directory folder structure).  

The path only works when the folder insight the project.

When I put folder outside the project it didn't work. What type of changes I need to made to acces the folder outside the poject. & How can I show other details of files which are including in folders Like. Last Modified Created Date, Modified Date etc..

View 1 Replies

Configuration :: How To Read Write Folder Contents Outside Project Folder

May 15, 2010

We store backup archives in subfolders of a folder on one of the server's external USB drive. I would like to have an ASP.NET app read the contents of this folder so the manager can view the backup files to confirm backups are working and optionally delete these backup files when an old drive is reconnected so it can be used for the next weeks backups.

This backup folder is oubviously outside the server's webroot. Is there some way I can grant authority so the ASP.Net app can access this folder for this purpose? I would be using VS Web Express, so can't create any signed packages and such.

View 3 Replies

Visual Studio :: Will VS 2008 And VWD 2008 Both Use The Same VS 2008 Folder For Projects?

Feb 16, 2010

If VS 2008 and VWD 2008 are both installed on the same machine, will they both use the same Projects folder to keep my projects in?If so, can I open the projects and run them interchangeably with VS2008 and VWD 2008? This is the folder that is located at " User>Documents>Visual Studio 2008>Projects

View 1 Replies

Visual Studio :: Conversion From 2005 Project To 2008/2010 Project Error?

Jul 17, 2010

I have downloaded a project from the internet called the SMS Source example. I wanted to open this project in VS2010, so a conversion wizard has popped up prompting for the conversion. But it has errors in converting.

Error msg:

Conversion Report - SMSSend.csproj:
Error converting project file. MSB0001: Internal MSBuild Error: Missing resource 'MissingAttribute'

View 3 Replies

How To Debug Web Project And Wcf Project On Same Vs 2008 Instance

Apr 6, 2010

I have two projects in my solution
1- asp.net web project.
2- wcf serivce project.
3- other common projects between two listed above

Current on the local dev machine I have to run two visual studio instance to run both projects in debug mode. That makes the system run out of resources as these projects share some other project in the soultion which are heavy in files.

Is there a way i can hookup the wcf project on a sinlge visual stodio instance and also be able to debug my asp.net web project. ? I do not want to combine the web and wcf project in to one. Have already considred this option.

View 2 Replies

Visual Studio :: Cannot Add .mdf File To The Project In 2008 And Sql Server 2008

Mar 18, 2010

we can not add .mdf file to the project in vs2008 and sql server2008 when i am adding .mdf file its displaying an error message so it is not possible to add

View 2 Replies

Installation :: Project Import From VWD 2008 To Visual Studio 2008

Sep 9, 2010

I recently bought a new computer, so I want to copy the projects into current system which has visual studio. I have a project developed in VWD 2008. I copied the folder into a flash drive and copied it back into the new system.

Knowing the location, how I do import the project into new system?

View 1 Replies

VS 2008 Convert 2005 Project To 2008?

Apr 27, 2010

I have a project that I developed in VS2005 and that has been put into VSS. I am trying to "get" it on a new machine and convert it to VS2008 because that is what is installed on the new machine. I am having problems with it that I think originate in its working folder. So my basic question is, when you try to work with a solution that's in VSS should you maintain the same folder structure that it had when it was originally checked in? I'm not particularly happy with its original structure because it goes on and on seven levels deep, and I wanted to just cut it down to C:ProjectsResNew, but if that's what it takes to get it to work, I'll do it.

View 10 Replies

Bin Folder Is Not Included In The Project?

Jan 15, 2010

I am working on my company's website and when I get the project from the Source safe and compile it. It compiles and run's fine.

But how come the Bin folder is not included in the project and how come my application is still running fine.?

Don't the BIN folder needs to be included my doing the right click on the BIN folder and including it in the project.?

View 2 Replies

Specify Project Folder Path?

Mar 24, 2011

How do you specify the path to a folder in you project. I have a Documents folder in my project. How would I refer to the path ie "~Documents"; instead of on the C drive ie

StreamWriter sw = new StreamWriter("C:\Test.txt");

View 3 Replies

App_Code Folder Of Project Contain Both C# And VB# Classes?

Sep 17, 2010

Using vb.net/asp.net 2005. I have a project that is done with all vb.net, however I want to get some more experience with C#.Net. I am considering creating a new database class to put in the app_code folder.

View 3 Replies

C# - Remove Project Folder From Website URL?

Mar 21, 2011

I have a c# website project in visual studio 2010, and all of my .aspx pages are currently being stored in a ~/Forms directory. The problem is that when I want to go to any web pages, they are all prefixed with "http://localhost:000/Forms/", when what I really want is "http://localhost:000/". So, "http://localhost:000/AboutUs.aspx" instead of "http://localhost:000/Forms/AboutUs.aspx". What is the preferred way to deal with a situation like this? I don't want to rig anything up.

View 1 Replies

How To Get License File From A Folder In C# Project

Apr 20, 2010

I have a license file that I need to access at runtime in order to create pdf-files. After I have created the in memory pdf, I need to call a method on that pdf to set the license, like this:

pdf.SetLicense("pathToLicenseFileHere");

The license file is located in the same project as the.cs-file that creates the pdf, but is in a separate folder. I cannot get this simple thing to behave correctly, which makes me a bit sad, since it really shouldn't be that hard. :(

I try to set the path like this:
string path = @"ResourcesFile.lic";
But it just isn't working out for me.

Edit:

A bit more info. I should mention that this is a web service which returns pdf:s as byte[]. The web service creates the pdf:s, and during this creation process I need to set the license file so as to remove any watermarks from the pdf document. The pdf itself is not saved to disc, and only needs to access the license file once when it is created.

View 2 Replies

C# - Add The View Into The Views Folder In Main App Project?

Jan 29, 2011

I've got my Controllers in its own project, my Models in their own projects, and the Main App in ITS own project, which contains the Views folder.

So when I open up my controller cs file and right click on, say for example, the Details action and choose "Add View", it creates a Views folder within my Controllers project, and adds the view there. I want it to add the view into the Views folder in my Main App project. How in the world do I do this?

View 1 Replies

Web Forms :: Unable To Access A Folder In The Same Project

Mar 29, 2011

I have 2 folders - 1. Data 2. Presentation which is following the 3-tier model of designing programs.

I have a slight problem. I am trying to access a class which is found in the Data folder from a web form found in the Presentation folder. How can I do this? For some odd reason my project does not have namespaces.

View 2 Replies

C# - How To Reference The Base Folder In Website Project

Jun 18, 2010

My urls when I run the asp.net website project (in vs.net 2008) looks like:

http://localhost:54269/www/Default.aspx

So referencing things like:

/sytle/css.css

Doesn't seem to work.

Why does my project have a '/www' folder? Did I set things up wrong?

View 1 Replies

App_Code Folder In Project In VIsual Studio 2010

Jun 22, 2010

at vs2008 i could set App_Code folder, but at vs2010 i can not do it, that's why i put my dataset's and class' to App_Data folder. Either I do not know even App_Data folder is secure?

View 4 Replies

Visual Studio :: To Add An Existing Folder (and Contents) To A Project?

Jan 21, 2011

I know you can add an existing item(s), but is there a way to add an Existing folder (and contents) to a project? It sucks without this option. I need to add a folder that has many folders and a lot of content.

View 1 Replies

Configuration :: How To Access Database File Outside The Project Folder

Apr 12, 2010

I am trying to deploy my C# based ASP.Net 3.5 webapp

The hosting service provider said "Access 2003 (.mdb) file has to be put in 'access_db' folder in root folder"

I am currently using

OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("~/access_db/filename.mdb"));

The folder structure is like

ParentFolder/access_db/filename.mdb
ParentFolder/ProjectFolder/<Project files> (App_Data, bin, *.aspx, web.config)

1) I am using a GridView on another page that doesn't allow to connect to a database outside the project folder. What should I do?

2) How do I modify the programmatic connection string ( shown above) ?

View 11 Replies

Visual Studio :: Unable To Copy Project Folder?

Apr 26, 2010

I currenty have a project hosted on our server, when i open that project folder i see about half of the folders i should normally see, i dont see the Controllers folder, Properties folder, obj folder, as well as the csproj file. Before I could copy this same folder and put it on my laptop and after it brought all of them over it would show these folders. Now it wont, it just copies over what it sees, not the other folders...I'm trying to create a copy on my laptop that I can work on then publish it to the server...I was able to do this before just fine, now its not copying/generating the necessary folders/files to my comp

View 2 Replies

Web Forms :: Export A Word And Autosave In Project Folder

Jul 13, 2013

I need to export an word document and save it in a folder which is in the project filder with out asking any open save dialog box in asp.net ...

View 1 Replies

SQL Server :: Unable To See The Table In Database After Moving The Project Folder

Aug 22, 2010

I created a ASP.NET project under Visual Web Developer 2008. Under that project I had a Database (along with ASPNETDB.MDF) which has about 3/4 tables (I had SQL server 2008). Everything was working fine (like insert, delete, etc.). And I was able to view the tables in database explorer view.

Then I had to format my computer for some reason and I copied the whole project in a USB drive and then after formatting the computer I copied the folder and tried to open it in Visual Web Developer (now I have VWD 2010). I can see the both Database under App_Data folder (ASPNETDB.mdf and the DB I created). ASPNETDB has all the tables and data as expected. But I do not see the tables under the DB I created.

View 8 Replies

Data Controls :: How To Display Images From Project Folder To DataList

May 7, 2015

I am first working on this module. Target is to show all the pictures from images folder to datalist. I myself got the code from other sources and not getting the logic that's why I am continuously receiving error..

<asp:DataList ID="dlpic" runat="server" RepeatDirection="Horizontal" RepeatColumns = "4">
<ItemTemplate>
<img src='<%# Bind("Name","~/images/Gallery/{0}") %>' class="scale-with-grid" />

[code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved