References Are Always Droped?
Mar 23, 2009I 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 RepliesI 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 RepliesHow can i refer to a file/Folder that will be draged and droped at a listbox?[code]...
View 9 RepliesI 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 RepliesI want to add References from my another project. How Can I do that.
View 3 RepliesI 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 RepliesI 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 RepliesI'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 RepliesHow can i add Interop.ADODB.dll to my references as i cant seem to find it when i try?
View 3 RepliesOver 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.
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:
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 RepliesI 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 RepliesI 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.
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 RepliesIn 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 Replieswhen 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 RepliesSo 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].....
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?
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.
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)
I have a number of routines that I need to create. The routines are all pretty much the same with some minor differences here and there (too much to just make 1 function that does it all).So I have been trying to abstract as much as possible but there is one part that seems like I should be able to get done... but maybe not.So lets get some sample code: These functions will be modifying 1 field in a pass by reference response class
Public Class Response
Public FooA As String
Public FooB As String
Public FooC As String
[code].....
But... this of course does not work. field becomes the new value but of course does not update response.FooA (since it was reassigned and not updates -- strings are immutable anyway).
I have been programming for some time, but I have some fundamental questions, one of them is as follows:
[Code]...
Is it compulsory to create IsReadyOnly1 and IsReadyOnly2, is there a way to take the parameter from new method to IsReadyOnly1 Directly like in reference type?
I have set references to Excel in my VS2005 .net project but the XIRR function is not available in the worksheetfunctions. In Excel it is necessary to add the Analysis Toolpak to the Add-ins. Do you have to do a similar thing in VB.net?
View 1 RepliesI am using CRL integration with MSSQL server 2005 and Visual Studio 2008.When I create a VB based sql server project and try to add references to it, I only see tabs for Projects and Sql Server. I need the Browse tab but it is not there. I have also tried adding a reference path to the location of the dll's I need yet VS refuses to show me what I need under references. How can I add the references I need?
fyi - I can add these dll's in other project types just not in the sql server project.
I have a vb.net dll MyAssembly.dll (framework 2.0)that is created dynamically using reflection for the first release. I had used Reference assemblies (like Reference Assembly1.dll and ReferenceAssembly2.dll) which were not signed for strong name during compilation. I am going to have a new set of referenced assemblies as a part of upgrade and these will be signed for Strong name. Is there any way to decompile the MyAssembly.dll, update its references to get the updated signed asssembly references into it and compile it back? Can it be done programatically instead of going thru tools like .Net Relector from RedGate.OR can I use app.config file with CodeBase or bindingRedirect or Probing to redirect the unsigned assembly reference to the signed assembly reference? I did not find anywhere redirecting unsigned assembly reference to the signed assembly. As the previous ReferenceAssembly1.dll was unsigned, I cannot put it into GAC. bindingRedirect works with assemblyIdentity which should match with publicKeyToken also. Codebase works better with signed references. it does not consider "version" attribute for unsinged assemblies. Probing I cannot use as I am going to have many upgrade patches which will have signed assemblies.
View 2 RepliesI am looking for the best way to have a kind of runtime dynamical references. I will try to explain the purpose with an simple example.
Lets imagine we have a structure holding a persons data like this
Public Structure Person
Public FirstName As String
Public LastName As String
[code]....
A list of Persons is contained in a List Of Person. On a form we have a textbox showing the (First and Last) Name and a textbox showing ONE phone Number. With a selection we can choose what phone number to show. The selection gives the selections "Home", "Work" and "Mobile". we can scroll through the list of persons with a kind of scrolling mechanism (not important in this case)
For the textbox showing the choosen phone number we DO NOT want to use a CASE statement (it would be possible in this example, but with the real project this results in a runtime changing case).
So we want to use something like this:
textboxPhoneNumber.Text = SelectedPerson.xxxPhone
Where xxx can be home, work or mobile, resulting in the right reference to the structures choosen element (HomePhone, worhPhone amd MobilePhone).
Is there a way to achieve this in VB 2010?
As I stated before in my Sorting questions.When is it advisable to use Shared Functions vs Instance Functions References.The problem I posed was that in a threaded application if I was sorting an array of 999999999 elements I typically want to call a shared function that handles this; however in .NET the way to sort is through a .Sort method which you pass an array to be sorted and a function handler; or Comparisson(t of).
My impression is that if in order to do a ClosestToN Sort I would have to calculate the value of N in the array first; then sort and then subtract the value of N from the sorted array.JohnH suggested passing the value of N as a Property in a Class that contained a reference to a sort Algorithm.The benchmark suggested in a 1 thread model it would work faster (which I knew that it would through math, but the accessors I was speculative on; I turned out to be wrong it worked fine either way).
My issue is in a Multi-Thread application creating instances for an accessor may cause memory to fill quickly if I am dealing with 1000's of threads.Is it better in this case to use a slower Shared function, then a faster Instance Function?
I have a 3 tier applicaiton, winforms, business and data layers.I just pulled the projects out of souce control. My winforms application references business which references data.I added a reference to my business layer and my winforms project is not seeing the reference. "Names or type specified in the Imports . . . doesn't contain any public member or cannot be found . . .
View 1 RepliesHow does the Visual studio populate the references tab?By using something like currentDomain.GetAssemblies() or what?
View 2 RepliesI have never used LINQ before, and I am getting an error in an application that does use it. This is a VB.NET (.NET 2.0) project in Visual Studio 2008.
Here is the offending code:
Dim orderedRows = From r In resultRows Order By r.FIELDNAME Select r
And here is the error (names changed to something generic, but otherwise accurate):
Expression of type '1-dimensional array of
Company.OurLibrary.FunctionalArea.Library.StoredProcStuff.USP_MYPROC.ResultRow'
is not queryable. Make sure you are not missing an assembly
reference and/or namespace import for the LINQ provider.
C:projectfilename.vb
So I recognize that I need to import LINQ libraries. This link led me to add "Imports System.Linq" to the file, but that is an unresolved reference. Based on the same link, I figured I needed to add a reference to "System.Core" to my project, but it is not listed as an available option when I try to add a reference (nor is it already checked).