Showing posts with label article. Show all posts
Showing posts with label article. Show all posts

Saturday, March 24, 2012

Please HELP ! Compiler Error Message: BC30466: Namespace or type HelloWorldobj for the Imp

Hi, i have created a class called "HelloWorldobj.dll". Yes, i compiled it with VBC.exe. And, no compilation error shown.

I have read an article on teaching people to run custome namespace/classes. It said that we can just create a folder called "bin" inside the web application folder, and put all the classes / calss file inside this "bin" folder.

Then, inside our code, what we need to do is just :
<%@dotnet.itags.org. Import Namespace="HelloWorldobj" %>
...
...
But, it can't work here!!! why? Error msg :

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: BC30466: Namespace or type 'HelloWorldobj' for the Imports 'HelloWorldobj' cannot be found.

Source Error:

Line 13:
Line 14: Imports ASP
Line 15: Imports HelloWorldobj
Line 16: Imports Microsoft.VisualBasic
Line 17: Imports System
Source File: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\hotelex\0fa6dfdb\85a29584\dehxro7g.0.vb Line: 15

I have tried it with another dll "Microsoft.Data.Odbc". it works!
<%@dotnet.itags.org. Import Namespace = "System.Data" %>
<%@dotnet.itags.org. Import Namespace = "Microsoft.Data.Odbc" %>
...
...

Really don't understand..

Can anyone teach me how to apply own class in ASP.NET?
What should i do or what should i set?Did you put the DLL in the application's root /bin folder?
Yes, i did. I have created a folder called "bin" inside my application folder.

Or, do u mind to tell me the step of start a new application? such as ,... what setting should do,.. where to configure,.. how,..
and especially those customer class file...

Or anyone can help?

Friday, March 16, 2012

please help me with my first "project"

Hello! Here is the simple code I followed the instruction on the article in msdn.net.
Now it has error msg:

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message:Could not load type 'WebApplication1.Global'.
Source Error:
Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" %>

Source File:c:\inetpub\wwwroot\qingaspnet\WebApplication1\global.asax Line:1

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
I use microsoft visual studio. net
I double click on the button and add one line code in function Button1_Click --it is under WebForm1.aspx.cs

rivatevoid Button1_Click(object sender, System.EventArgs e)

{

Text1.Value="Hello, Web Forms!";

}
and then right click on WebForm1.aspx--> view in browser.

I don't know how to get code into global.asax , I checked the global.asax, it is nothing in there.
-----Code Here:
/*

<%@dotnet.itags.org. Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT style="Z-INDEX: 101; LEFT: 85px; POSITION: absolute; TOP: 88px" type="text" id="Text1" name="Text1" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute; TOP: 143px" runat="server" Text="Button"></asp:Button>
<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 59px; WIDTH: 211px; POSITION: absolute; TOP: 26px; HEIGHT: 37px" ms_positioning="FlowLayout"><STRONG><FONT size="4">Sample
Web Forms Page:</FONT></STRONG></DIV>
</form>
</body>
</HTML> */ Thanks for help!

i am not sure exactly but i saw thesame problem ... it might be the asp.net can not be read by the iis.... have you installed iis before or after the VS.NET?

Hello!
I use IIS for my PHP and MYSQL project. It run fine. I just recently installed the .net and try to learn it.
I search the internet for the problem. It seems the .dll or directory problem. It is compile problem--it didnot compile it for me.
I went to the property of the folder under IIS and don't know what I should to change.
The project WebApplication1 is under C:\Inetpub\wwwroot\qingaspnet\WebApplication1
Please tell me what to change step by step.

Thanks!
Hello!
I use F5 to rebuild it. It works and showed on the browser. But when I click on button, the text did not show on the text box.
why?
Thanks for help!

rivatevoid Button1_Click(object sender, System.EventArgs e)

{

Text1.Value="Hello, Web Forms!";

}
this is your code and as i can see if your text box ID is Text1 so your code telling me that when you click on the button the text box will be filled by this string provided in code so what is the strange !!!!! if something else please expand what you mean and what is the problem !!?? but any way how it is worknig now what have you changed?