I've been passed a solution that has a vb.Net 2.0 project that references to a .Net 3.5 library. The library compiles with out problem but the vb project does not. It complains of missing objects which are in the library which are correctly added in the imports. Also I see a yellow yield sign next to the reference library also when I add the reference it complains of the framework version difference. Any help is apritiated. Also I'm using VS10. Imported the projects with no errors. A colleague has this working on VS9.
I am having a problem running an Excel/VBA program that has been working till this morning. The error I got when I ran a macro I wrote is: Compile error: Cannot find project or libraryWhen I check the references in VBA editor, I find the list of references to be different than when I ran it on another machine. I have some xla libraries on a server that I've linked to the application, and the libraries are being shared among my colleagues. I tried relinking the libraries but that didn't work either. Sometimes, I get another message saying the library is being used by another application.
I'm using Visual Studio 2005 (college only has 2005 so..) and I have a very important program to write for college.My problem is, every time I try to compile I get the error: "Error while trying to run project: Could not load file or assembly "Program" or one of its dependencies. The given assembly name or codebase was invalid." We're talking a very simple program - I've only been learning for a few weeks.
I have been developing a Visual Basic 2010 .NET GUI based control application that has been growing over the last six months into quite an albatross. Suddenly, I have reached a brick wall where I cannot even edit a text label in the GUI without the following exception at compile time (debug) :
InvalidOperation Exception was unhandled
An error occurred creating the form. See Exception.InnerException for details. The error is: Index and count must refer to a location within the string.
Parameter name: count
This is entirely code independent - it happens if I simply drag a new control onto the GUI without even any code behind it - Once it happens the project is hosed - even if I undo or remove what I did.I have reinstalled VB from scratch on a new computer, and same problem. I am using Windows 7 and this happens with VB Express, Even with a trial version of Visual Studio Ultimate. I am completely stuck.
I have a Linq-to-SQL class diagram in my web application containing the two tables in my database (held in a DBPro database project in the same solution). All was working fine yesterday. I start doing some work tonight and note that the solution compiles fine in Visual Studio, but when I run the web app I get a compilation error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30002: Type 'FrostAlertDatabaseDataContext' is not defined.
A co-worker checked a very simple Visual Basic Visual Studio 2010 application into our version control system. When I checked it out and tried to build it I got the weird error below, which I am guessing has something to do with which .Net Framework the build is targetted towards and also which Framework I have installed.
------ Build started: Project: VB-DEER10, Configuration: Debug Any CPU ------ Build started 10/20/2010 3:35:57 PM. C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1558,9): warning MSB3283: Cannot find wrapper assembly for type library "Microsoft.StdFormat". Build FAILED. Time Elapsed 00:00:00.15 Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
How do I reference the library project when I get this error?
"A project with an output type of class library cannot be started directly In Order to debug this project, add an executable project to this solution which references this library project. Set the executable project as the startup project."
I have downloaded the attached code from codeproject site, i'm new in vb.net, i have some background knowledge in vb6. when i try to run the code the following error message is diplayed:"A project with a output type of class library cannot be started directly"
Once time, me needed to compile the library with different code inside class which determined with prroject wich inherits this library At first I tried in project declare #const and in library to use condition with #const,
I created a simple user control and everything went fine.Then I created another of the same control (as a different project) from scratch (creating the controls in a different configuration; but pasting code from the previous one from a text file).As far as I know I did everything the same for creating a user controlCreate a Class Library project Then Project>Add New Item> User Control Then delete the initial class that was added automatically (usually named Class1.vb) Put all of my code and components into the user control class.However, when I wanted to run it in the debugger as I did in the previous project, I now get an error message:"A project with an Output Type of Class Library cannot be started directly."
Now I did a clean build, and tried to publish, and I get a lot of errors and warnings that I don't understand.
Error1Cannot publish because a project failed to build.11AllJ Slots
Warning2Assembly 'Microsoft.DirectX.AudioVideoPlayback.DLL' is incorrectly specified as a file.AllJ Slots Warning3Assembly 'Microsoft.DirectX.DLL' is incorrectly specified as a file.AllJ Slots Warning4Assembly 'Microsoft.DirectX.DirectSound.DLL' is incorrectly specified as a file.AllJ Slots Error5An error occurred while signing: Failed to sign binReleaseapp.publish\setup.exe. SignTool Error: ISigned :Sign returned error: 0x80880253
The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: binReleaseapp.publish\setup.exeAllJ Slots
I'm creating this thread simply because I can't figure out how to compile my .sln file extension project. I've basically created a Win32 application (not cmd.exe dependable) in my current project, but I just can't compile it.I can't really find a compile button?
I have a VB.NET solution (call it S1) which produces a .vb file (say File1.vb) to be compiled and then included in another solution (S2). S2 is a console app which I want to run from a cmd prompt, not VS. My plan is to shell out from S1 to run a batch file to do the compile and then copy the .dll file, overwriting the old one in S2 (then I can run S2 in a separate operation). Here's the batch file for the compile:
I got a legacy solution targeting .net framework 2.0. When I open the properties - Compile tab of the VB projects in VS2008 or 2010, the VS always crashes. Other C# legacy projects are working.I am using windows 7 64 bit. (It's working in the xp mode.)
Activity Monitor Log
# Type Description GUID Hr Source Time
1 Visual Studio Version: 9.0.30729.1 Microsoft Visual Studio 2010/12/22 12:44:57.002
2 Running in User Groups: Administrators Users Microsoft Visual Studio 2010/12/22 12:44:57.004
3 ProductID: 92357-152-0000034-60049 Microsoft Visual Studio 2010/12/22 12:44:57.004
4 Available Drive Space: C: drive has 139105247232 bytes; D: drive has 284777865216 bytes Microsoft Visual Studio 2010/12/22 12:44:57.005
5 Internet Explorer Version: 8.0.7600.16700 Microsoft Visual Studio 2010/12/22 12:44:57.006
6 Microsoft Data Access Version: 6.1.7600.16385 Microsoft Visual Studio 2010/12/22 12:44:57.007
7 .NET Framework Version: 4.0.31106.0 Microsoft Visual Studio 2010/12/22 12:44:57.008
8 MSXML Version: 6.30.7600.16385 Microsoft Visual Studio 2010/12/22 12:44:57.009
When I try to compile my VB.NET web project, I get an error that reads:[PropertyName] is not a member of '[Namespace.Class]'The class referenced is part of a dll that the project references. The property definitely exists in the referenced class, and its access modifier is Public. What's more, if I update the reference, or just remove it and add it back, the error goes away: the intellisense shows my property -- all is fine.. that is until I try to compile again. Then the error returns. I've even restarted Visual Studio to no avail. What is going on?[UPDATE]After Will's comment, I've changed the namespace to something I am absolutely sure is unique. Now, I am getting more compiler errors of the same genre. The compiler is not recognizing some of the overloads although they are right there in intellisense. Weird!
Dim gis = New MapQuestGeocoder Dim r = gis.GetResult(address) originCoord = r.Coordinate
I have dowiloaded vb 2008 express and cannot find the msdn image library. I go to where the intellisense tells me to go and the image folder is empty. Is there a way to download the appropriate library.
I had to reinstall my system and i installed the following on my system.XP SP2 with all fixesOffice 2007VS 2003 VS 2008I have a vs 2008 web project using .NET 2.0When i load the solution and i compile it i got the following error:Could not findibrary'C:WINDOWSassemblyGAC_32System.EnterpriseServices22.214.171.124__b03f5f7f11d50a3aSystem.EnterpriseServices.dll'I don't know what to do. Someone ahs seen this problem before? Anyone knows how to get rid of it?I read in some posts to use gacutil to register, but i cannot find the file in the folder. C:WINDOWSMicrosoft.NETFrameworkv2.0.50727I
I am using vb 2008, and I am not able to find the microsoft speech object library. I have gone to Project > Add Reference... > COM tab and looked for it but it is not there. Am I missing something? Will anyone be able to help me find the or download and install the Microsoft Speech Object Library?
I would like to open a word document in vb.net windows forms.I read that the first thing do to is import the library of word from COM Library.I'm using Microsoft Office 2007 and VB.NET 2008.. I couldn't find the word object in the library I read the items one by one and I've seen the small icons of the application at the corner of the page, I couldn't find word
I found the spread sheet object that belongs to Excel and Data Source that belongs to MS ACCESS also Infopath was there too.. except word.
I have a Class Library project with a appSettings.config file included into the project. The file is not embedded. So I have a ClassLibrary.dll with a appSettings.config beside in the bin.I have another project which is a Web Service. It has a reference on ClassLibrary.dll with a Copy Local=true. When I build the Web Service, the ClassLibrary.dll is brought into the bin of the Web Service. However, the .config doesn't follow.Do I need to do some postbuild event to copy the .config file or there is another setting I can set?
I have a class library called Encrypt.dll that I added to my project (that class encrypts strings..). I have a problem that when I drag the app out of the Release folder, it crashes, giving me this error:Could not load file or assembly 'Encryption_Class, Version=126.96.36.199...' or one of its dependencies. The system cannot find the file specified.What am I doing wrong?I added it from the Reference tab->Add->Encrypt.dll
I was wondering is it possible to put forms into a class library project and if so could I use those forms as an mdi child from my main forms app?A bit behind what I am trying to do:I am creating a game which is essentially going to have its own 'operating system' As the user progresses in the game they can 'install' new software into their operating system.I have my 'Desktop' that is an MDI Parent and what I want the users to be able to do it when they have purchased a new bit of software (also in game) the game will connect to my central server download a dll and place it in a directory, that is essentially installing the new bit of software and the game will then pick up that dll and add a new button the Programs list and when the user clicks on that software in the Programs list it will launch the form in the Class Library as an MDI Child of the 'desktop