Bizarre Project Collapse - Can't Edit Or Add Anything Without Compile Error
Apr 20, 2012
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'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 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.
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 have a project that I have been working on for about a year. I open it up now and it will not run. I am using sharpdevelop. It is erroring on this line of
Protected Overrides Sub OnCreateMainForm() Me.MainForm = My.Forms.MainForm End Sub Here is the stack trace:
i am trying to compile my project into a .exe application. this project has already been compiled already but i made some improvements. i tried build>build solution but the program is not working
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
infos 50
warnings 0
errors 0
# 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
I'm not sure what happened. I saved my project last night and everything was in working order. I opened it this morning and it's not recognizing a lot of the System methods and functions
MsgBox Format FormatCurrency InputBox
Even the constants like vbTab and vbCrLf aren't appearing. Any suggestions on this? I'm running VS2008 Express Edition.
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.
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 get the following error message when I try to compile anything, I've tried creating several different projects and they all do the same thing. does anyone know anything about this and how to fix it?
Error2An error occurred while signing: Failed to sign bin\Release\app.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains
I had to switch computers at work to a laptop. My co-worker was using this laptop and we where both working on the same project using CollabNetSubversion to update the VB project. Well he left and reformatted his Laptop and now I am using it.
I took the VB project from my PC to the laptop and now every change I do won't show up if I run the program.I can completely commit out code for a form and it still runs!My trial version of VB ends in six days so I can't use the PC anymore.
I have a new project , It has two forms, I want to edit the properties so that the second form is the startup form, however, when I go to project properties I see the everything in the application tab is dimmed.
I had weird compile errors. When I opened a project of mine today, suddenly I received over 100 errors. It gives even error for try catch, foreach and all those functions under system and Microsoft.VisualBasic namespace. I have also class libraries and although references are looking added, main project doesnt recognize references as well. I tried clean solution, rebuilt solution, cleared my aspnet tmp folder, re-added references but no help. what could be the problem? anyone experienced such problem. my VS2010 isnt spoiled because any other project works fine,even with same class libraries.
I'm trying to do a multiline If,then, else statement and I keep getting the Compile Error code "Block if without End if" This is part of my code (the rest is the same just repeated)
If ActiveCell.Value = 1 Then ws2.Select Range("A3").Select ActiveSheet.Paste
We have a compilation with GC.KeepAlive (Object) method.When we try to complile, there is an error GC variable not defined.We try to reference mscorlib.dll manually in the project but it doesn't work.
I am having a problem while compiling one of my projects in vb.net. I have a solution consisting of multiple project,one of which is the exe. Now when i am trying to compile that project i get an error which states
I am programatically creating a virtual directory for a new project deployer. The creation is fine and the setting are all exactly as I want them, however IIS Administrator shows ERROR. If I open the properties for the virtual directory and change the ASP.NET version from 2.0 back to 1.1.4322 and hit ok then refresh it will compile and show all the files properly.
Private Sub CreateVirtualDirectory(ByVal Path As String) Dim IISSchema As New DirectoryEntry("IIS://localhost/Schema/AppIsolated") Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper
i am using vb6 and sql express. came to this error when i press the update button it says "compile error invalid qualifier". the error is at " live.tostring("dd/mm/yy") "
private Sub cmd_update_Click() Dim conn As New ADODB.Connection 'ADODB Connection Object Dim recset As New ADODB.Recordset 'Recordset Object Dim sql As String ' String variable to store sql command
I am teaching myself VB.Net at the moment but seem to be doing something wrong with ShowDialog. It pops up twice when I run the program. I do not get a compile error. [Code]
I have built a web browser using Visual Basic 2008 Express Edition, but I don't know how to open the .exe file back in Visual Basic so that I can improve it and fix some problems that are in it. Can someone tell me how I can edit the project in Visual Basic 2008 Express Edition?