VS 2008 Linking Classes From Other Project?

Feb 11, 2010

here is simple:

I have a windows project and a web project within the same solution. I want to share the classes from the Windows project with the Web project. I do that by adding them as a linked component.
The problem is that the classes calls forms, controls and other things that when in Web project makes error.
Is there a way to ignore that kind of error? I mean, I won't even use those functions on the project, they just work on the Windows one.

View 3 Replies


Similar Messages:

Web Forms :: Using C# Classes Vb Classes Together In VS2008 / 3.5 Project

Mar 24, 2010

Can I use VB and C# classes together in the same asp.net 3.5 project?

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

Project Couldn't Find Classes, While Present...

Feb 22, 2010

I've got a old working project. But i like to work in 2008 with it.

So i've made a new clean project.

And imported the code, also the .cs files with the classes, the thing, i could not add a ASP.Net Folder for the App_Code (strange?).

So i made it by hand, maybe thats the problem... ?

But if i try to run the project coud'nt find the classes, while they are there, in the App_Code folder.

View 4 Replies

Referencing C# Classes/methods In Silverlight Project?

Aug 24, 2010

Does anyone know how to do this? I built a backend c# class in asp.net but want to access these same classes without recreating them in silverlight. Is this a possibility?

View 4 Replies

Visual Studio 2010 Getting .dll For Project Classes?

Sep 21, 2010

I'm using VS 2010. I got the references to the classes from my project, now I need the .dll files but I can't seem to find them. How do you add the .dll's?

View 1 Replies

Visual Studio 2010 Puts 4.0 Classes Into 3.5 Project?

Jun 21, 2010

I have existing ASP.NET 3.5 project I migrated to Visual Studio 2010. I didn't migrate it to .NET 4.0. Every time I try to edit .aspx page, it alters the .designer.cs class to point to System.Web.UI.WebControls.WebParts.UpdatePanel class instead of

System.Web.UI.UpdatePanel

class and then the build of course produces an error. The project properties says ".NET3.5".Also the "design" tab produces just one box saying "unknown server tag asp:UpdatePanel". It seems like it is looking at .NET4.0 to generate the desgn view, not 3.5

Is there a setting somewhere I need to change?

View 3 Replies

Visual Studio :: Add Shared Classes / Files Into Project

Feb 20, 2011

VWD 2010 Express.

We have shared CSharp classes put into a shared folders for re-use. Now I want to add those classes into my project by creating a new folder:

1) Right click the solution,
Add -> New Folder
Give it a new, eg. SharedClasses

2) Right click the new folder "SharedClasses"
Add- > Existing Item...

Browse to the "Shared Folder", include those shared classes. But those files are added physically into the folder "SharedClasses" rather than a reference. How do I just add a link to those shared files? Since these files might be modified from time to time, I don't want to delete and add those file frequently.

View 3 Replies

Visual Studio :: Classes From Class Not Present In Web Project

Nov 24, 2010

I've build a Class Library, in the same project i put a web project. But its impossible to access the classes from the dll generated by the class library. Whats wrong? JumpTide XML uses the namespace like:

namespace JumpTideClassLib
{
public class jumptidexml
{
public class MetaTags
{

Image:

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

Any Starter Project On Simple Master Detail Through Objects / Classes?

Apr 29, 2010

I just want to start coding a simple master detail form but through with loosely typed datasets/objects and also layer or tier architecture. Is there any starter project for this kind of code? Most of the help I find on google discusses strongly typed data objects or very advanced designs.

View 5 Replies

Visual Studio :: Unable Access To Classes From Other Folders Out Side Project Files

Jan 24, 2010

im facing problem to access classes out side my project folders. for example if i want to use some methods from store.vb file inside my project i get error : Name Space is not defiend, i have tried all ways such as import sdf.ITracjer.Data

[Code]....

i can't fetch the Store Class Methods or Function because its out of project directory, as its showin in image.

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 Classes Subject To Session Timeout?

Mar 17, 2011

Using VS2008 .Net 2.0 ASP.Net I'm using a singleton class to store user info on my ASP website.I was wondering - will this class be subject to session expiry? [eg] If the user logs in and I save a successful login as 'true' in a boolean property for the instance of the class, will this value expire after the session times out?

View 3 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

DataSource Controls :: Created LINQ To SQL Classes And Built The Project, Then Created An Aspx Page?

Jun 3, 2010

I have been using LINQ to SQL for quite a while (about two years). Every thing was fine until now. As usual, I created LINQ to SQL classes and built the project, then created an aspx page. However, I cannot see the DataClassesDataContext in the code behind file. It is not listed in the intellisense list.

View 5 Replies

Visual Studio :: What Is The Difference Between Designer Classes And T4 Template Generated Classes

Jan 11, 2010

I am new to LINQ. when we drag tables we get a dbml file and designer file.

For example DataClasses1.dbml and DataClasses1.designer.cs.

Once we have them then we can start using our LINQ Queries.

In my company project I do not see this designer files and instead there are .tt files which were used as templates to greate ABC.generated.cs files. Is this same as designer class?

View 3 Replies

C# - Class Structure With LINQ, Partial Classes, And Abstract Classes

May 17, 2010

I am following the Nerd Dinner tutorial as I'm learning ASP.NET MVC, and I am currently on Step 3: Building the Model. One part of this section discusses how to integrate validation and business rule logic with the model classes. All this makes perfect sense. However, in the case of this source code, the author only validates one class: Dinner.

What I am wondering is, say I have multiple classes that need validation (Dinner, Guest, etc). It doesn't seem smart to me to repeatedly write these two methods in the partial class:

[code]....

This doesn't "feel" right, but I wanted to check with SO to get opinions of individuals smarter than me on this. I also tested it out, and it seems that the partial keyword on the OnValidate method is causing problems (understandably so). This doesn't seem possible to fix (but I could very well be wrong).

View 1 Replies

C# - Can Base Classes See The Protected Fields Of Derived Classes

Aug 11, 2010

I don't know if this has to do with how FindControl works or how scope works. But my base class is having a hard time seeing the fields of child classes. Currently I'm planning have the derived class set a property in the base class, but there are a lot of derived classes, so that isn't a very attractive solution.

[code]....

View 4 Replies

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

VS 2008 Cannot Open My Project?

Jun 8, 2010

here's what i did. on my desktop computer, i first installed VS 2005.. after few weeks i installed VS 2008.. i created a project on VS 2008. on my laptop, i installed VS 2008. i transferred the project from my desktop to my laptop but i can't open it.. one of my clasm8s said told me that even if i created it on VS 2008 on my desktop, it still uses framework 3.0 because VS 2005 was the first installed.. is he correct? what should i do?

View 1 Replies

Lambdas In A VB .NET (2.0) Project In VS 2008?

Aug 13, 2010

I built a small chunk of code based around lambdas in a VB Windows form project earlier which works perfectly, but it gives me "expression expected" warnings (which block compiling... should probably be considered errors, no?) when I copy the code to an ASP.NET project. The only difference I can see is if I make a Windows form project vs a Web project... works in one, doesn't work in another.

Even something basic like this doesn't work:

delegate function stringify(byval x as object) as string
public sub test()
dim f as stringify = Function(x) x.ToString()
dim s as string = f(5)
end sub

Is there a way to get Lambdas to work in ASP.NET? Or is there a setting somewhere yanking my version of VB down a level or two (since they apparently only work in 9.0 or later, but I don't know how to tell which version I'm using)?

Edit: Bah! LinqBridge doesn't seem to work for me. I get the objects (Func(Of TResult)), but no lambda support. I suppose that's the death-knell to my hopes? Or is there something obvious I'm missing to use it (drag to bin, target in references, Imports System.Linq) ?

View 1 Replies

VS 2008 Conversion From 2005 Project

Apr 16, 2010

I have a Visual Studio solution created in 2005 and I want to start working with it in 2008. I opened it and it was run through the wizard. My first error is a message that says: The Web Applicatin Project is configured to use IIS. You must install the following IIS components: IIS 6 Metabase and IIS 6 Configuration Compatibility.So, I googled that and found this:IIS 7.0 is included with Windows Vista. However, when you first install Windows Vista, by default IIS 7.0 is not enabled. This topic describes how to enable IIS and configure it so that in Visual Studio you can create local IIS ASP.NET Web sites. This enables you to use a local copy of IIS to run and debug the Web site instead of using the ASP.NET Development Server.The bold is mine, because I want to know why I can't just use the ASP.NET Development Server? I always have in the past. Oh, and I'm not running Vista, I'm running Windows 7, but I don't think that matters.

View 18 Replies







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