473,480 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

error:-Could not load type with vb

idsanjeev
241 New Member
The code
Expand|Select|Wrap|Line Numbers
  1.  <%@ Page Language="vb" Codefile="test3.aspx.vb" AutoEventWireup="false" Inherits="test3" %>
is working but by using Codebehind instead of Codefile its reported error:- Could not load type 'test3'
Jul 21 '08 #1
5 1374
DrBunchman
979 Recognized Expert Contributor
Hi jha,

What do you mean by using codebehind rather than codefile?

Dr B
Jul 21 '08 #2
idsanjeev
241 New Member
Hi jha,
What do you mean by using codebehind rather than codefile?
Dr B
i try to understand .net
when using codebehind instead of codefile it reported error Could not load type
why this error is reported i don't know
Jul 22 '08 #3
DrBunchman
979 Recognized Expert Contributor
Are you creating a Website or Web Application? Is there a reason why you want to use CodeBehind rather than CodeFile?

Dr B
Jul 22 '08 #4
idsanjeev
241 New Member
Are you creating a Website or Web Application? Is there a reason why you want to use CodeBehind rather than CodeFile?
Dr B
I am creating web application and i try to know where can use codefile and codebehind ?
Jul 23 '08 #5
Curtis Rutland
3,256 Recognized Expert Specialist
Ok. Here's a standard ASP.NET header when you are using a CodeFile. This is what Visual Studio adds to every ASPX page you create in it when you check "Place Code in Separate File"
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  2.  
and in the codefile (default.aspx.vb)
Expand|Select|Wrap|Line Numbers
  1. Partial Class _Default
  2.     Inherits System.Web.UI.Page
  3.  
The partial class name must be the same as the file name, and must be the same as the "Inherits" attribute of the header in the .aspx page.

So in your case, I bet that your filename and class name aren't correct. The file should be test3.aspx.vb, and the class name in the file should be test3.

Make sure that you are doing this. If you are uncertain, make a new page in Visual Studio, making sure to check the "Place Code in separate file" check box, and paste your code in appropriately. If you don't have Visual Studio, Microsoft distributes the Express versions for free. The one you'd want is Visual Web Developer.
Jul 23 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6376
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
6
8433
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
13
4429
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
0
2382
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
1
13129
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal...
2
5297
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
4
9037
by: jk2l | last post by:
Error 10 error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ) GLTexture.obj Error 11 error...
1
4138
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
6589
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
15
5659
by: madhu.ab | last post by:
Hi All, I am getting the following errors when i am including header file winuser.h I dont know whats happening. How will an error occur in winuser.h?? Please help. \microsoft visual...
0
7039
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7037
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
176
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.