Asp + Code Behind: Reference Missing?
Jan 7, 2010
I'm currently working on a project I've just received that is asp.net + vb.I have to add a gridview in one part of the page, but it simply won't let me set the datasource
<%@ Page Language="VB" MasterPageFile="~/Common/Common.master" title=whatever" %>
<%@ Register TagPrefix="uct" TagName="SubmenuControl" Src="whatever.ascx" %>
[code].....
View 2 Replies
ADVERTISEMENT
Apr 12, 2010
Using VB.NET 2008 SP1 on Windows XP Pro SP3:
I am using an existing COM dll that works fine in VB6, on the same development machine. The VB6 app compiles and uses this dll without issue.
I start from scratch to design a new Windows Form application in VB.Net. Then when I try to add a reference to this dll, the reference is added to the references list but the path shows as <The system cannot find the reference specified>. If I select this reference in the list, the properties window shows a blank for both the reference name and the path. At the same time, a reference is added for VBA, and it shows the reference name (Interop.VBA) and path correctly.
I used dependencywalker to find the dependencies for this dll. It has 3: user32.dll, kernel32.dll, and msvbvm60.dll. So presumably I have all necessary dependent files.
I have tried un-registering, re-registering the dll. I have tried the command line switches for devenv.exe to reset settings and to launch in safe mode. I created a new user account to see if it was related.
I have tried picking the dll from the Add References, COM tab and also via the Browse tab to select the file directly. Same result all cases. I also tried putting the dll and msvbvm60.dll in my bin folder.
I don't understand how the reference name and path are missing in the properties window when the reference name is right there in the list and I select the path directly when I added it. There are no other instances of this dll registered.
I tried using tlbimp from the command prompt with verbose switch, I get the error:
System.Runtime.InteropServices.COMException - Error loading library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRAY)). I wish it would tell us what is missing.
It must be registered properly and all dependencies available for it to work in my VB6 app, Re-writing the dll is not currently an option.
View 1 Replies
Jun 14, 2009
I have installed WCF / WPF Extension with Visual studio 2005.
I developed the sample WCF services and to consume it I have developed the client project.
In client project I need to give the service reference, however I noticed here Add service reference option is missing.
View 4 Replies
Jun 29, 2010
I must be missing something very obvious...Using Visual Studio 2005 to write a vb app for Windows CE. I'm trying to use the NetworkInformation namespace of System. I can see it in my object browser, but when I try to use it in my form, it doesn't come up in the autocomplete and the compiler complains that "NetworkInformation is not a member of Net".
View 1 Replies
Jan 24, 2012
I have been using the VB IDE for many months on a VB6 translation to vb.net 2010. I have had no troubles building and running in debug,until the message below just appeared. This now prevents me from running in debug. I have not used Publish in the Build menu or used ClickOnce. The Project - application page has "enable XP visual styles" checked. I do not want this unchecked, which will remove the error message below.
The error message is:
Error 2 Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture=*, PublicKeyToken=6595b
[code].....
View 18 Replies
Dec 2, 2011
#1 is C# Class Library, where I have my EF model defined (3.5 sp1) and some public methods.#2 is a VB winforms app.In the winforms app, I have referenced the C# library and added the connection string for the EF model. The problem I am having is that I have a form where the user selected a .txt file to import. On the VB side, I create a byte() from the file, then pass it to a public method cleverly called Process. In Process(), everything runs smoothly until I instantiate the EF model.
using (WorkersCompImportEntities context = new WorkersCompImportEntities()) { ....
Where I receive this error:
Could not load file or assembly 'System.Drawing, Version=1.0.3300.0,
[code]....
View 1 Replies
Oct 15, 2011
Dim N As String
N = InputBox(Combo1 & " search")
adodc1.recordset.find Combo1.List(Combo1.ListIndex " ' = ' " & N & " ' ")
[code].....
View 7 Replies
May 21, 2012
I have a problem with my vb.net program. Some parts of the code dissapeard but i still can run the program normaly. Even if i add a new button it doesnt appear.I have a button that uploads some files to mysql database but then i double click that button a new sub appears with nothing in it..
View 5 Replies
May 12, 2010
I come from ROBLOX. Anyway, whats wrong with with code, it's in a button.
ProgressBar1.Value = "100"
if ProgressBar1.Value = "100" then
Me.Close()
I do realize it's missing all of the Private Sub, and end class stuff... This is just the main body of code.
View 8 Replies
Jul 20, 2009
I'm reading three bytes from a byte array. They are supposed to be the "Binary code of the e-card no". (e-card is a electronic card used for storing different information). Well, it works fine sometimes, and sometimes not.
[Code]...
View 3 Replies
Dec 27, 2009
You have a form with 5 Textboxes and 1 button.
Write the code missing in Form1.Load so when the button is clicked, Textbox5 takes the value Done
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, _
[CODE]...
View 16 Replies
Sep 30, 2009
I am trying to use the xml comments suggested (with VB in a ASP.net project in Visual Studio 2008).I want to give examples of how to use a class, for example, so I write [code]This is readable in the code itself, but the resulting help information in the Object Browser is unusable.The summary, parameters and returns stuff is OK,but the example code is all as one block, with a single space instead of the line endings.I know that most XML treats all whitespaces the same (space, line ending, etc.) but since <code> is described as being for multi-line code blocks, I expected it to respect line endings and indentation.Ideally it would colour-code the code as visual studio does, but the least it should do is respect space (similar to the HTML <pre> tag).Otherwise how is it useful for multi-line code blocks?
View 1 Replies
Jun 29, 2010
I've tried to incorporate this code in my app and can't figure out what the missing link is? Lotsa experimenting and head scratching later, I'm coming here to the forum for help. The dialog opens and allows me to select the file saved earlier,except the file doesn't open. I can't figure out the missing code which goes at the comment "insert code to read stream here." The code:
[code]...
does it have something to do with StreamReader.IO ?
View 16 Replies
May 31, 2011
I'm running Visual Studio 2010 on a terminal server, and have been, with relatively few problems, for some time. This morning I fired up my PC and over the UK's long weekend, the following issue seems to have developed.I've got a bunch of projects (but not all of my projects, and not all of the projects in a given solution) complaining that a particular file (which does not exist on the computer) cannot be opened, and so those projects will not compile anymore. Here's the error:
Error 31 Unable to open module file'C:Users[username]AppDataLocalTemp2.NETFramework,Version=v4.0.AssemblyAttributes.vb':
System Error &H80070003&
I could simply copy the file into that directory and be done with it, I'm pretty sure that will work,EDIT: Okay, now things have gotten to a whole new level of weird. I've rebooted the server, I get the same error message, only now the file it is asking for exists and can be opened in Visual Studio with no problems. another part of the IDE still insists that it's unable to open the module file.
EDIT 2: Can't delete the file because it claims to be open in another program, but I've logged off and logged on again, and there shouldn't be anything accessing it.
EDIT 3: Because there's a wall of comments below his answer, I'll mention here that Jared's suggestion to delete the SUO file for the solutions having the problem (not files specifically to do with any of the problem projects, strangely) was what solved this, eventually.
View 2 Replies
Dec 17, 2009
recreating a board game with 36 picBoxes representing each block in the game.image is displayed in the picBox1 to start. then roll die (generate random num 2-12) now i want to move the image (gamepiece) to the picbox that corresponds to the die total.so if i'm at picbox1 and roll a 10, it should display the image in picbox11.problem is once i generate die throw i dont know how to reference picbox11 in my code (or if its possible?)[code]
View 6 Replies
Mar 23, 2010
I'm creating an application in Visual Basic 08 for a friends company, and im trying to store a unique reference number after it being entered in the textbox.I've been messing about with classes, objects and arrays but can't get it right so far
View 3 Replies
Oct 10, 2011
I want to make a program that will ask the user to enter the service reference URL in the text box then click a button to add the service reference. how to add and remove a service reference?
View 2 Replies
Jun 22, 2012
i have Office 2003 on my developer computer, but my client have Offie 2010. i handle the error on access adding the reference of outlook.exe programatically, but when i have to fix the VB.Net solution, i can't find a way to programatically add the reference of Office 2010 when i don't have that version installed on my computer.
View 5 Replies
Oct 14, 2011
I have an ASP.NET website written in VB.NET and trying to add MVC to it.
I managed to add controllers (to CS_Code folder) and make them running. However, I have to use some code from aspnet pages.
When I try to call method from page I ma having compile time error
public CustomerFrontend.DefaultForm DefaultForm { get; set; }
Error:
The type or namespace name 'DefaultForm' could not be found (are you missing a using directive or an assembly reference?)
Page directive definition which proves than namespace is correct:
<%@ Page Language="vb" ValidateRequest="false"
EnableViewState="False"
AutoEventWireup="false"
Inherits="CustomerFrontend.DefaultForm"
CodeFile="DefaultForm.aspx.vb" %>
View 2 Replies
Apr 3, 2012
I'm wondering about a feature in Visual Studio. Personally it bugs me when I open a solution someone else has been working on and it's full of Controls with Ids like "label27" "textbox3" etc. One of the first things I do is either rename them or remove them if they are never referenced in code behind (as is usually the case with the labels).
[Code]...
View 2 Replies
Dec 9, 2011
I am puzzled as to why this following code does not replace the word in each arraylist as a reference.
Dim AllMyWords As New ArrayList
AllMyWords.Add("hello")
AllMyWords.Add("how")[code]....
I would have assumed the FOR EACH bla IN BLA works like a reference but it seems like it does not.
View 14 Replies
Jan 22, 2012
I'm using vb.net and sql server 2000 for developing my application....The problem i'm having is the Null Reference Exception on the Following line of code:
Dim cmd5 As New SqlCommand("select crtns_removed, pieces_removed, scheme from Outgoing_Invoice where invoice_no = '" & Me.ComboBox5.SelectedItem.ToString.Trim & "' And category = '" & Me.ComboBox1.SelectedItem.ToString.Trim & "' and item_name = '" &
[code].....
View 2 Replies
Jan 15, 2011
I am basically 4 weeks into my first ever programming class and we are working on a project for the game "Hangman". While I have struggled with everything for the past 3 weeks, I have finally cams across something I have no idea how to correct. I am getting a Null.Reference error in the following line of my
If Not strWordToGuess.Contains(strLetterGuessed) Then
Now this code was provided in my project files, it was dated 4/07, I am currently working in VB 8 express, I am thinking this might have something to do with it.
View 14 Replies
Jan 10, 2011
I have a block of code which is used to save some information to a text file. I need to use this a few different times in my app.I could just copy and paste it each time but that seems messy and is adding unnecessary code. I'm sure I can just save the code once and reference it when I need to. I think it's done in either a module or a class or something
View 8 Replies
May 13, 2012
I'm currently starting a new job in which I will be working on some coding in the future and need some advice on some good places to start so I can learn this correctly. Essentially we need to bring VB4 code over to the new VB.net language and I will be tasked with this. The project consists of a large battery of tests for psychiatric patients consisting of mostly multiple choice questions presented one at a time - since VB4 isn't very compatible, I think I will create a new battery from scratch while using the old code as a reference point.
I started creating the code this weekend for fun and am really enjoying it. However, a huge problem has been the abandonment of control arrays in the new language... by the time I got to creating my first questionnaire I'm stumped and can't follow the old code. Clearly I'm not ready to tackle such a large project with no experience and need to start from scratch; who would have thought .
The reason why I'm here is not to ask you to help me with my work. What I'm wondering is if any of you have any cool advice of great places to start learning the language (books, websites, etc). The amount of literature is very overwhelming so I thought I would ask some people with experience for tips. If any of you have stumbled across learning material with emphasis on coding that would be useful in the design of questionnaires or multiple choice exams, it would be particularly useful.
So far my starting place is Visual Basic 2010 Step by Step with Michael Halvorson, it seems good at a glance in the sense that it couples theory with practice but I'm already sure I'll need a little more.
View 12 Replies
Nov 6, 2011
What used to be C:Documents and SettingsAll UsersApplication Data is now Win7 as C:UsersPublicPublic Documents or similar..This folder is not part of the Environment.SpecialFolders list. Is there another way to expose the above Public folder?I'm hoping you can programatically use that location for non virtualized read/write/alluser files.
View 1 Replies
Feb 19, 2010
i develop the following code in vs2005, now i just using this module in my new project @ vs 2008..But this error was araised. I cant able to fix this problem...
Private Sub DataAccess()
Dim errHandle As New ErrorHandler
Dim lobjCommon As New eCopsCommonFunctions
[code].....
View 1 Replies
Mar 6, 2011
I am trying to create a application scripting environment for my VB .Net application. I have a form type in the application called Project. What I want to do is dynamically compile (i.e Eval) VB .Net code on a Project form. This dynamic code always has a Main function. One of the arguments to Main is a reference to the calling Project form. Here is the Eval code:
Public Function Eval(ByVal vbCode As String, ByRef MyAssembly As System.Reflection.Assembly, ByRef ProjectForm As Project) As ArrayList
Dim Provider As VBCodeProvider = CodeDomProvider.CreateProvider("VisualBasic")
[code].....
View 1 Replies
Feb 4, 2012
good way to run windows script host code from vb.net? Im trying to run some dsf com components but they are only for the 64-bit version of scripting engine installed. I wish i could execute my code from vb.net but sometimes it doesnt want to work because im referencing the 32-bit version script control and not the 64-bit scripting environment.
So my goal out of this is to find a 64-bit scripting component dll or library that i can use for executing a wsf file thats mostly written in vbscript but has some xml from the windows script host.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda
View 7 Replies
Mar 30, 2006
I could use a reference to any code classes for enabling the selection of a folder via a dialog window.
View 5 Replies