IDE :: VS2008: Solution Defined References?
Jan 13, 2010
Is there a way to make a VB based ASP.NET project reference a particular DLL based on the solution in which the project is added?More detailed explanation: I have a solution (which I've inherited) that contains multiple projects, being a mixture of ASP.NET in VB.NET and DLL's in C#.It's running under the .NET 2.0 framework, but being built in the VS2008 IDE.ach one of our customers has a full copy of every single project, with their individual requirements built into those files... but what I'm doing now is creating a "single code base" ASP.NET project which relies on a customer specific DLL beingreferenced So each customer still has their own individual solution, but the ASP.NET project is always the same.However, every time I switch to a different customer, I'm having to remove the reference and add the correct one.
I could have individual vbproj for each client, but then it defeats the object of the "single code base" when I add/remove pages. I've looked into MSBuild - but it's a complex beast, and I'm having difficulty working out if it can do what I need it to do I've managed to set up "conditions" based on a property, but I cannot work out how to use a property from a different project or the solution itself (I don't think it's possible)
View 1 Replies
ADVERTISEMENT
Apr 13, 2010
In the VB6 interface, when you went to Project>References, it would list all the references that have already been added to the project with a ticked box next to the name. However in VS2008, when you go to Project>Add references, the tickboxes are not there. So how do you know whether or not a reference has already been added?
View 1 Replies
Apr 1, 2010
I'm about to try something new in my VB2008 project, but not sure if it will work. Is it possible for me to set a "checkpoint" of the current solution code, so that I could "roll back" if necessary?
View 3 Replies
Aug 3, 2010
I'm implementing some custom serialization (to byte array), and have run into a problem handling circular references.Example:
Class A
public MyBs as new List(of B)
End class
Class B
public MyParent as A
public MiscInt1 as integer[code]....
If I know that an instance of B will only ever be serialized through the serialization of an instance of A, then I can handle the setup of the MyParent reference from the instance of A and not even record that information inside the byte buffer for the instance of B.This doesn't feel quite right, but it might be the best solution.
View 1 Replies
Mar 30, 2009
VS2008 SP1, Winforms solution, VB.NET, compiling for x86 and .NET v2 I have about a dozen projects in the solution, with a couple of Windows forms projects and some class libraries. If I rebuild the solution, it clears out and recompiles all the projects, as you'd expect... and then disappears without trace or error message. Since I'm reconnecting to VSS 2005 over HTTP across the internet, it takes all month to start back up with everything loaded, so it's incredibly irritating. The compiled application itself works fine, and normal build and run after changes also works fine.
EDIT: Just to clarify, No add-ins except Refactor! (I know, I guess I ought to try uninstalling it to see if it's that, but it's just too useful! - I will see if there's an update though). And no custom build steps. It's just a vanilla Winforms app, with references between the projects (and some references to COM dlls for interop).
[Code]....
View 5 Replies
Dec 5, 2011
I have a visual studio solution written using VB.net. The solution contains 4 projects.
[Code]...
View 1 Replies
Oct 10, 2011
I'm developing a vb.net program with VS2008. In my case, dt_list is a instance member as List(of Single). When I wrote dt_list = CType(ser2.Deserialize(r), dt_list.GetType()) VS2008 complains about "Type 'dt_list.GetType()' is not defined.".
View 2 Replies
Mar 9, 2011
I have Crystal Reports 2008 installed on my win7 laptop but when i go to insert references from my application settings the CrystalDecisions references are missing and im not able to find them. Note: they do exist in my "c:windowsassembly" folder.
View 3 Replies
Dec 29, 2011
I am trying to redirect command line output to a list box in a vba macro, and I've found some code that I think might point me in the right direction, but I keep on getting the same error. When I use this code [code]It gives me the error in the title and highlights the first declaration line.What does it take to define a new "process".
View 1 Replies
Jun 21, 2010
[Code]...
a messagebox appear that show user-defined type not defined i had try another code but it still same error.. i'm using vb6
View 1 Replies
Mar 27, 2012
Till yesterday I was working fine with my Project.I din install anything new, am not trying to open my solution file with a different version also.Today when i tried opening my solution, it was saying
"The Selected Fiel is not a valid solution file"
"The Operation could not be completed.Unspecified Error"
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "??E", "..Setup2Setup2.vdproj", "{600F8FB2-B9A9-4138-B7E7-FE7B39815CC1}"
EndProject[code].....
View 6 Replies
Apr 14, 2009
Why isnt this working?Sub Macro1()
[Code]...
View 1 Replies
May 8, 2010
i am trying to read an existing excel 2007 file from vb.net i used a form with single button and i written code in button click event code is :[code...]
View 1 Replies
Jun 20, 2011
I want to add References from my another project. How Can I do that.
View 3 Replies
Mar 29, 2010
I code primarily in vb.net. I've been doing basic dependency injection manually and am looking to learn more about DI/IoC and maybe use a DI/IoC framework/container like Ninject. There are lots of examples and write-ups using Java and C# code. I'm looking for the best resources for vb.net programmers. Likewise, is there a particular framework that would be easiest for a vb.net programmer to pick up?
View 3 Replies
Mar 27, 2010
I am trying out Modi but i cant seem to find the references to add. I have office2k7 but cant find Microsoft Office Document Imaging 12.0 Type Library in com tab. Also cant find the dll in C:Program FilesCommon FilesMicrosoft SharedMODI
View 2 Replies
Mar 23, 2009
I am using vb.net 2005.After I rebuild the solution that has many projects, some references in a project are always dropped.I have to manully add them again.
View 1 Replies
Nov 30, 2009
I've used VS 2005 for a while, when you use 'Add Reference' it puts the DLL in the BIN directory. I did this with VS 2008 and I don't see the DLL in the BIN. I am using an Application ( not a website ).
View 9 Replies
Mar 6, 2010
How can i add Interop.ADODB.dll to my references as i cant seem to find it when i try?
View 3 Replies
Jan 19, 2011
Over and over i keep getting stuck on the idea of adding references to a project. I was looking about visual studios 2010, i clicked the project menu tab, and then scrolled to add reference. When i would click on it, it would bring up a large list to choose from. So, my issue is as follows. I am told to reference via my compile error message a few items. I thought i found the elements i was looking for and pressed OK. When i would try to run, it would still give me the errors.
What am i doing wrong? Am i not doing something correct?
here is my error code, and i looked it up, but for some reason, as stated above, i must not be referencing correctly?
Quotec:\users\fallenreaper\documents\visual studio 2010\Projects\Crystal Report Software\Crystal Report Software\CrystalReport1.vb(99) : error BC30652: Reference required to assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' containing the type 'CrystalDecisions.CrystalReports.Engine.ReportDocument'. Add one to your project.
c:\users\fallenreaper\documents\visual studio 2010\Projects\Crystal Report Software\Crystal Report Software\CrystalReport1.vb(99) : error BC30652: Reference required to assembly 'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' containing the type 'CrystalDecisions.Shared.RequestContext'. Add one to your project.
c:\users\fallenreaper\documents\visual studio 2010\Projects\Crystal Report Software\Crystal Report Software\CrystalReport1.vb(138) : error BC30652: Reference required to assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' containing the type 'CrystalDecisions.CrystalReports.Engine.ReportDocument'. Add one to your project.
c:\users\fallenreaper\documents\visual studio 2010\Projects\Crystal Report Software\Crystal Report Software\CrystalReport1.vb(144) : error BC30652: Reference required to assembly 'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' containing the type 'CrystalDecisions.Shared.RequestContext'. Add one to your project.
View 2 Replies
May 11, 2011
I have a function GetAllProducts() which fetches all products from a database and stores it in the cache for future requests. This works fine, but if I then call the function e.g. ProductSearchResults = GetAllProducts(), and then modify ProductSearchResults variable, this also modifies the cache, which is very important this never happens, as the cache affects the whole website.
I understand this is because both ProductSearchResults and the cache now have the same reference, but how do I solve the problem? Is there something that I can put in GetAllProducts() to ensure the cache always uses its own value?
CODE:
View 1 Replies
Jan 6, 2009
I'm in college and I want to show my friend how to use winsock but for some reason, I can't add the Winsock control through references. Is there any way to load it through code?
View 3 Replies
Oct 26, 2011
I have a project that uses web references to make SOAP calls to several web services. When I'm working locally, the services are hosted on my local machine, so the URL of each web service is something like [URL]. When I deploy the project to a server, the URL needs to change to the production URL. Currently I am accomplishing this with a prebuild event that does a find-and-replace on each URL and overwrites it with the deployment URL before deploying. Surely there is a better way.
View 1 Replies
Jan 11, 2011
I am getting the following error when I add a service references that points to a web service.
'System.ServiceModel.XmlSerializerFormatAttribute' is not accessible in this context because it is 'Friend' in the Reference.vb file.
I have not gotten it in other projects that I have done that point to the same web service. I have recently add some code that I downloaded and cleaned up the errors in to my project and this seems to be what broke it. This code uses several new features that I am not familiar with, mainly the "Friend" declaration and also uses name spaces in the code it self. Also I converted the code from C# using an utility that I downloaded, that untility was not 100% in it's conversion, hence the clean up that was needed.
View 2 Replies
May 6, 2010
I have a tier application based on this video url... So far the client application only has a reference to the Business Logic (not Data Access).If i needed to tie a control such as a TreeView to list certain data fields from my table then where and how should i do that? For example i could write a For each statement to iterate through the table which returns the item from a table or i could do it in the WCF service app but how does this tie in with a control such as TreeView especially when there are no references?
View 2 Replies
Sep 16, 2009
when i select a reference, it doesnt show the properties for it any longer. I would really not have to copy every reference locally for each project im working on, as well as im not too keen on reloading visual studio either.
View 2 Replies
Jun 30, 2009
So I have a picturebox on my windows form and it has an image set to it, I also have a bunch of reference files that reference to a bunch of images.Me.PictureBox1.Image = My.Resources.imgs.image1That piece of code works.Now, I tried to databind the picture box to a database so the images would load on the change of a combo box but that got confusing really fast so what I did was created a database and it holds all the image references such as "My.Resources.imgs.image1" but its stored as type varchar(50).Connecting to the database and retreiving the strings is no problem, that works all fine.The problem is converting the string to the image reference, it doesn't work. I've tried type casting, I tried using imagelocation rather than image but I want to reference to the resources that is attached to the project.
Imports System.Data.SqlClient 'before class constructor
Dim SQLStr As String
Private ConnString As String
[code].....
View 2 Replies
Feb 17, 2012
I'm still new to most of this but I seem to be finding that while you can load the Microsoft Reference Libraries at no charge, I'm told they are the slowest method to use.I have tested Gembox and only read about others. Is it worth the effort to deploy these 3rd party platforms, even if I'm working with small data sets, for the moment at least? Speed is one thing but when you're talking about 2 seconds vs 0.2 seconds, it's not worth $900 per seat.
Are there other 3rd party references which are Open Source, or no cost, etc...I would like to hear what the rest of us are doing on this?
View 1 Replies
Aug 22, 2009
In VB.Net you can do something like the following without any issues... just ignore the fact that this is a pretty useless class :-)
Imports System
Public Class Class1
Public Shared Function ArrayToList(ByVal _array() As String) As Collections.Generic.List(Of String)
[code]....
However if you do the same thing in C#...
using System;
public class Class1
{
public static Collections.Generic.List ArrayToList(string[] _array)
[code]....
You will get an error on the line with the return on "Collections.Generic.List" saying "The type or namespace name 'Collections' could not be found (are you missing a using directive or an assembly reference?)"I know that you have to actually have a using directive to System.Collections.Generic to use List but I don't know why. I also don't understand why I don't get the same error in the function declaration, but only in the return statement.
Edit: Just to note, the question is really about the referencing of a sub-namespace such as in the example being able to reference Collections within System.
View 3 Replies
Nov 17, 2010
Maybe this is a n00bish question, but I'm used to c++'s pointers and references and this is confusing me a bit. Let's say I have the following scenario in a VB.net application:
[Code]...
The situation is this: I have a collection of objects, and during execution of the program, any of them can be fetched from the collection to be used/edited by another part of the program. Now obviously if I edit the data inside the object it is allright, but what if I want to replace the object, as I did above at line 5? I would change only the local reference (y) but not the object inside the collection!
Is there a way around this? How can I take with me a "reference to the object's reference", instead of just a reference, so if I reassign it it will also reassign the one in the collection? I hope I'm making myself clear, unfortunately english is not my native language, to be clear: in c++ this would be easy using a pointer to a pointer, or passing a pointer to the object always by reference, so calling new or reassignment on it would change the original pointer itself)
View 4 Replies