Visual Studio :: Sharing Settings Between Projects / Console App And WPF App

Oct 20, 2010

I'm trying to share settings between two projects: a console app and a WPF app. The WPF app only exists to view and change those settings.

So in my console app, I wrote the following class...


My WPF app has a reference to the console application, so it can access the members of this Settings class.

So you'd think that if I use the WPF app to change one of these settings, then the next time I run the console app that changed setting would be available, but that is not the case. I'll change the masUserID setting from Bill to Ted, for example, but when I launch the console app it shows the setting is still Bill. If I run the WPF app, it's set to Ted.

View 1 Replies

Similar Messages:

Visual Studio :: Sharing A Solution File - Projects Settings/Configurations Maintenance?

Sep 1, 2010

I am using VS2005 and I have a solution file (.SLN) which has 8 projects. I moved the solution file to a different path on a shared folder to have better organization of my projects and to allow access to the solution/projects from any computer on the network. After that, I edited the .SLN file so that the path of the projects in the solution file are correct (all on shared folders).

After that, I opened the .SLN and everything seemd to be working fine. However, I notcied that the "Start Options" of the website part of the solution file is missing the "Start Options", ie, the Start Options are reset to default values. I think also, but not sure, some other settings of the Solution/Projects have been reset.


1. Where the Web Site "Start Options" are stored ?

2. How I can maintain the Start Options and similar settings if the .SLN file is moved or opened from different computers on the network ?

3. I am not using an team development tools, only plain (vanilla) VS 2005 Prof. Edition. Is it possible to have 2 or more developers work on the same solution/projects (shared on the network), if both developers will coordinate manually simultanous access to the porject files/resources/source code ?

View 6 Replies

Visual Studio :: Old Projects Not Showing Up In The Start Page Recent Projects List?

Jan 31, 2011

I just moved to a new PC and installed VS 2010. I copied all of my websites over from the old machine and now when I open the old websites on the new machine, they do not show up in my recent projects list on the start page. New websites that I make do show up there but the old ones do not. This is very inconvenient. Is there a way to make old projects that I open show up in the list?

This brings up another question. Is there a way to make a shortcut that will open VS2010 up with a website already loaded so that I don't have to go through the file open dialog every time?

View 3 Replies

Visual Studio :: Can Prevent Projects From Being Referenced By Other Projects

Jun 7, 2010

I have a multi-tiered application. I would like to publish the class libraries to UI developers to let them add to their web or windows projects to add all the functionality.

I would like to restrict access so only a certain project can be referenced. The reason is so that they do not refer to the data access layer directly and start making calls that would bypass the business logic built into the business tier.

UI->>Business Logic->>Data Access

So in other words, BL and DA are deployed as compiled assemblies. BL references DA. UI will reference BL, but I would like to strictly prevent any other project from referencing DA directly.

View 1 Replies

Visual Studio :: Visual Studio 2010 Suddenly Lost My Settings ?

Dec 8, 2010

I'm using visual studio 2010 professional, I dont what had happened but i lost my settings suddenly and the VS editor is generating a HYPHEN (-) everytime when i press SPACE BAR key..

I've tried restoring the settings, changing the settings from OPTIONS without any luck.

View 2 Replies

Visual Studio :: Group Profiles Settings - Users In The Group Update The Same Settings?

Jan 19, 2010

We have many different clients, and each client can have multiple user accounts.Right now, we have user settings set up on the ASP project, and a WinForms application can see these settings, depending on which user logs into the winforms application. They are specific to the user. I want to make them specific to the client, so users can be in "groups" by their client, and all users in the group would see/update the same settings.

View 1 Replies

Visual Studio :: Convert From Dataset To PDF In Console Application?

Jun 3, 2010

I am having set of tables in dataset, that need to convert into PDF in console application, i can do that in website by using this code

DataSet dsMainContent = new DataSet();
string strConn = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
SqlConnection conn = new SqlConnection(strConn);
SqlDataAdapter sdAdp = new SqlDataAdapter();
sdAdp = new SqlDataAdapter("select * from CLIENT_MST", conn);
sdAdp.SelectCommand.CommandType = CommandType.Text;
GridView1.DataSource = dsMainContent;.......

I am getting error in HTMLTEXTWriter its not accepting in console application.

View 1 Replies

Visual Studio :: Run A Simple Console App On Win7 VS2010?

May 19, 2010

I'm trying to run a simple console app on Win7 VS2010.

Here's the code:

using (FileStream stw = new FileStream(@"c:OrdersToday.pdf", FileMode.Create))

View 9 Replies

Visual Studio :: Broadcast Email .NET 3.5 Console Application?

Jun 21, 2010

I have requirment o send bulk Email to client more than 10,000 a day so howz to manage into console .NET / c# applictaion if any of Email id failure to send then application didnot stop it wil continueolsly sending email from next one

View 1 Replies

Visual Studio :: VWD2010 - New Project - Console Application Template Missing?

Jul 22, 2010

My VWD 2010 Express Edition appears to be missing the console application template. I have searched all the options under new project in VB and C# but it just is not there. I would like to add the console application template option .

View 3 Replies

Visual Studio :: Cannot Open Web Projects Configured To Use IIS

Jun 23, 2010

I constant get the following error when I try to load existing web project in Visual studio

"The Web Application Project is configured to use IIS. To access Web sites on the local IIS Web server, you must run Visual Studio under an Administrator account."

It started happening after I had to re-install IIS because of metabase corruption. I have already tried following

1. create and re-create application in IIS
2. register aspnet using aspnet_regiis
3. I am already member of adminstrators group I also added aspnet to administrator group, no luck
4. I have tried repairing Visual studio 2008 and still same issue appears

I am using XP SP3, Visual Studio 2008 Team System and IIS 5.1. I have Visual Studio 2005, Visual Studio 2008 and Visual Studio 2010 installed on my machine.

View 6 Replies

Visual Studio :: Web Deployment Projects In 2010?

Jan 18, 2010

This is getting me a little frustrated, and I looked around the net for the solution and was not able to find any as of yet.I'm trying to have Web Deployment projects in VS 2010. I have it installed for VS2008, but I was not able to find anything to install for VS 2010.I basically want to merge all outputs to a single assembly in 2010. How do I do that??

View 5 Replies

Add Multiple Projects At Once In Visual Studio 2008?

Nov 16, 2010

I know that I can add more than one project to a solution, but I have a load of pre-developed projects that I want to add and rather than going

Add > Existing Project > Navigate to folder > click on project file

I wondered if there was an easier way to add lots of projects at once.

View 1 Replies

Visual Studio ::2003 Not Showing Web Projects?

Jul 22, 2010

I recently got a new PC and had all my development tools installed/configured, including Visual Studio 2003 (for support of older apps) and IIS. When working on web projects in the past, I would open the project via File->Open->Project from Web.The defaultURL is http://localhost, as it was on my old PC. When I click OK, no web projects are showing, even though I've setup a few web projects in IIS. To set these up, I moved the project to c:inetpubwwwroot<project name>, then go into IIS and change the folder to an app, and select 1.1 under the tab. I've also made sure the Frontpage server extensions are installed.I can open the project by using File->Open->Project, but I get "Error while trying to run project: Unable to start debugging on the web server. You do not have permissions to debug the server".I found several articles online addressing this and have made all suggested changes but so far nothing has worked.I feel that if I can get the project to show/open as a web project it will resolve this issue as well.

View 3 Replies

Visual Studio :: How To Set The Number Of Most Recent Projects Displayed

Sep 29, 2010

How do I set the number of Most Recent Projects displayed. I have tried the obvious -- Tools-Options..... but I cannot see it.

View 9 Replies

Visual Studio :: Web.config Transforms For Web Site Projects

Apr 8, 2010

Does anyone no why web.config transforms are not available for Web Site Projects in VS2010. I thought that Web Site Projects where once introduced as the successor of Web Application Projects. But now the lack the deployment feature which I would really like to use.

Maybe someone knows a workaround, without having to convert 70 websites? Converting to Web Application Projects isn't a real option because I use Table Profile Provider by Hao Kong, which doesn't work with this type of project.

View 4 Replies

Visual Studio :: .net 3.5 Project And .net 2.0 Projects Work Togather?

May 8, 2010

I started work for company i they have older software with .net 2.0 framework. I want to create a new project with 3.5 framework i the solution so i can use linq and entity framework for access to DB.

View 5 Replies

Managing Visual Studio Projects For A Website And Custom Usercontrols?

Aug 26, 2010

I have one main project for the cms we are using for our website. I have also created usercontrols to include in the site, but I think I would like to keep these in a separate project and just reference them in the main project. Is this a best practice and how would I do this?

View 1 Replies

MVC :: Sharing A Folder Between Projects?

Jun 22, 2010

I have 2 projects, where they both can upload attachments into a directory.

The problem is how do you get the projects to be able to access each others attachments or even save these attachments in the same folder...

At the moment my ProjectA saves uploads into its "uploads" folder... But when you are running ProjectB it doesnt have the same uploads folder (if that makes sense)


ProjectA uploads folder: localhost:50732uploads
ProjectB uploads folder: localhost:50331uploads

I want these projects to be able to view attachments that the "other" project has uploaded.

View 2 Replies

Sharing Bin Folders Between Different Projects?

Jul 16, 2010

it's possible for multiple projects to reference/share the same bin folder?

View 4 Replies

Visual Studio :: Website Structure Settings?

Nov 16, 2010

I have an ASP.Net website as one of the projects in a Visual Studio 2010 solution. I have several files in my ASP.Net website project which are named correctly according to the expected pattern of *.aspx and *.aspx.cs, however, when I view them within the ASP.Net website project, they are not displayed hierarchically and are instead displayed in a flat file view adjacent to each other. How do I get the files to display hierarchically within Visual Studio as they are normally when I add a brand new .aspx page to the website project? I have been looking all over for a corresponding Visual Studio MSBuild or settings file that might be storing these hierarchical display settings but have found nothing as of yet.

View 1 Replies

Web Deployment Projects For Visual Studio 2005 - How To Find Plugin On MSDN

Feb 15, 2010

The Visual Studio 2005 web deployment project plugin used to be here:

This just goes to the ASP.NET home page now, and I've had no luck Googling (or ... Binging?) for it. Does anyone know if this is still available for download anywhere?

View 2 Replies

C# - Visual Studio 2010: How To Enforce Build Order Of Projects In A Solution

Sep 6, 2010

I had no problem with this in Visual Studio 2008 but it seems that VS 2010 is having an issue, and I'm betting it's probably me.I have a solution with an ASP.NET Web Site Project and a few C# projects (BLL, DAL, Tests in NUnit). I have configured the build process for the test project to automatically run NUnit to run the tests. I would like to ensure that the BLL and DAL projects build before the test project so that the tests will run against the latest compiled version (yes, I know I could do this all in one project, but I'm choosing not to -- please bear with me :) )

So, I set the dependencies of the Test project to include the BLL, DAL, and Web Application projects, and the build order shows BLL, DAL, Web Application, and then Tests. However, I noticed that the BLL doesn't actually build when I build the Test project.Any idea what this could be or any option I might be missing to force the other projects to build when I build the Test project?

View 3 Replies

Sharing Web User Control Between Various Projects?

Feb 2, 2011

Is there a way to share user controls between various projects ?

I have created user controls like login control, menu control, header control, lost password control and etc and they are all connected to sql database for data.

I would like to share these between various web site projects, it means I have same functionality and the only modifications I can do is within CSS styles.

Do I need to copy modules or is there a way to keep them as shared classes/modules and call what I need every time I need it?

View 1 Replies

Visual Studio :: Settings To Check To See What Bogging Down My Application?

Mar 8, 2010

I just uninstalled VWD 2008 Express and installed VWD 2010 Express (all details below). I'm noticing VERY slow load times, on the order of a couple minutes to like 5-6 minutes to load a page. I really don't think this is working right. Is there some setting that I can check to see what is bogging down my app?

Microsoft Visual Studio 2010
Version 10.0.21006.1 B2Rel
Microsoft .NET Framework
Version 4.0.21006 B2Rel

View 3 Replies

Copyrights 2005-15, All rights reserved