473,796 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to Run ANY ASP.NET Samples :: REALLY Frustrated!

Hi!

I'm pretty frustrated learning ASP.NET. I'm learning ASP.NET by downloading
samples from various ASP.NET websites and none of the samples worked so far.

The SAME error was shown whenever I browse and ASP.NET sample, which is...

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 'MySite.Web.Tes tProgram'.
So I'm getting 'Could not load type <<Class Name>>' error for any ASP.NET
applications I tried to execute. Majority of the ASP.NET samples I tried to
execute utilize Code Behind VB.NET and Custom ASP.NET controls and minority
uses C#.

I have Virtual Directory created in IIS to run the samples and it is
configured to "Run Scripts" and also configured as "Applicatio n" as well.

So what is the problem?? I've been trying this out with more than 8 ASP.NET
samples for more than 3 DAYS!!! NONE OF THEM WORKED SO FAR. PLEASE HELP!

I maybe doing something so stupid and so obvious to experienced .NET
developers, so please, help me out!

Here are my computer specific information...
- .NET Framework v1.1.4322
- Windows XP SP1
- IIS5

Don
Nov 18 '05
10 1593
Yep, No DLL whatsoever!

Here are the source of the files...

-------------START "WebForm1.a spx"-------------

<%@ Register TagPrefix="cr" Namespace="Crys talDecisions.We b"
Assembly="Cryst alDecisions.Web , Version=9.1.500 0.0, Culture=neutral ,
PublicKeyToken= 692fbea5521e130 4" %>
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Web Form1.aspx.vb"
Inherits="WebCh artTest.WebForm 1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1 </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Form1" method="post" runat="server">
<CR:CrystalRepo rtViewer id='CrystalRepo rtViewer1' runat='server'
style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 56px"
Height="50px" Width="350px"></CR:CrystalRepor tViewer>
</form>
</body>
</HTML>

-------------END "WebForm1.a spx"-------------

-------------START "WebForm1.aspx. vb"-------------

Imports System
Imports System.Web
Imports System.Web.UI

Public Class WebForm1
Inherits System.Web.UI.P age

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub
Protected WithEvents CrystalReportVi ewer1 As
CrystalDecision s.Web.CrystalRe portViewer

'NOTE: The following placeholder declaration is required by the Web
Form Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeCompo nent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
CrystalReportVi ewer1.ReportSou rce = "CrystalReport1 .rpt"
End Sub

End Class
-------------END "WebForm1.aspx. vb"-------------

I've also removed the Global.asax file and ran it, the error is the same. So
the error is not in the Global.asax file.

I've also tried replacing the ( Inherits="WebCh artTest.WebForm 1" ) with (
Inherits="WebFo rm1" ) in WebForm1.aspx but the error is the same. This
project sit on http://localhost/WebChartTest/

I've done most of the coding in Notepad but the samples I've downloaded from
the net may have been used VS.NET. Having said that I've installed VS.NET
2003 on my computer as well as SharpDevelop RC2.

I hope you can figure the problem out! For me, I've completely given up :(
[well not completely but almost].

Thanks!
Don

"Mike Smith" <te**@test.co m> wrote in message
news:u2******** ******@TK2MSFTN GP10.phx.gbl...
what no dll files ? could that be the problem ?
if the source code is written inline , the server side code is written in
the aspx pages itself then thats ok.. but if there is code behind pages then it would need a dll of the precompiled code.
Since u said it wasnt done in vs.net im guessing its not using code behind
(done is web matrix ?)

hmm an issue with the reference of the global.asax perhaps ? did u try
deleting that if its not need (no codes in it)

would like to see a screen shot or the actual code.. im curious whats up
with ur sample..

"Don Wash" <do*@wash.com > wrote in message
news:OO******** ******@TK2MSFTN GP11.phx.gbl...
Hi!

There are no dll files included in the downloaded samples nor did I compile
them.

Don

"Mike Smith" <te**@test.co m> wrote in message
news:eq******** ******@TK2MSFTN GP09.phx.gbl...
u might also wanna try and delete all the *.dll files from the \bin folder before u rebuild the entire project.. see if that helps...

"Don Wash" <do*@wash.com > wrote in message
news:eQ******** ******@TK2MSFTN GP11.phx.gbl...
> Hi Mike,
>
> "Mike Smith" <te**@test.co m> wrote in message
> news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
> > have u tried creating a blank asp.net program and just testing if that > runs
> > in the first place ?
>
> Yes, I can do a test page with <% Response.Write (Now()) %> or do some > validation in Page_Load event.
>
> > u had IIS installed before .Net ? or after ?
> >
>
> I installed .NET after IIS.
>
> Don
>
> > "Don Wash" <do*@wash.com > wrote in message
> > news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
> > > Hi!
> > >
> > > I'm pretty frustrated learning ASP.NET. I'm learning ASP.NET by
> > downloading
> > > samples from various ASP.NET websites and none of the samples worked so
> > far.
> > >
> > > The SAME error was shown whenever I browse and ASP.NET sample, which > is...
> > >
> > >
> > > > > > 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 'MySite.Web.Tes tProgram'. > > >
> > >
> > > So I'm getting 'Could not load type <<Class Name>>' error for any > ASP.NET
> > > applications I tried to execute. Majority of the ASP.NET samples I tried
> > to
> > > execute utilize Code Behind VB.NET and Custom ASP.NET controls and > > minority
> > > uses C#.
> > >
> > > I have Virtual Directory created in IIS to run the samples and it is
> > > configured to "Run Scripts" and also configured as "Applicatio n" as > well.
> > >
> > > So what is the problem?? I've been trying this out with more
than
8 > > ASP.NET
> > > samples for more than 3 DAYS!!! NONE OF THEM WORKED SO FAR.
PLEASE HELP!
> > >
> > > I maybe doing something so stupid and so obvious to experienced

.NET > > > developers, so please, help me out!
> > >
> > > Here are my computer specific information...
> > > - .NET Framework v1.1.4322
> > > - Windows XP SP1
> > > - IIS5
> > >
> > > Don
> > >
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free. (well i'd like to think it

is.. )
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.712 / Virus Database: 468 - Release Date: 27/06/2004
> >
> >
>
>
---
Outgoing mail is certified Virus Free. (well i'd like to think it is.. ) Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.712 / Virus Database: 468 - Release Date: 27/06/2004


---
Outgoing mail is certified Virus Free. (well i'd like to think it is.. )
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.712 / Virus Database: 468 - Release Date: 27/06/2004

Nov 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2494
by: MichaelF | last post by:
I've embedded a RealPlayer window in a page, and am unable to get mouse clicks. The clip plays, but clicks are ignored. I'm running IE5.5 on Win2k, with the following code: <embed name="RPEmbed" src="http://..." CONTROLS=ImageWindow AUTOSTART=true onLButtonUp="alert('rpm');return false;"> I've also tried setting SetWantMouseEvents(true), but to no avail:
2
10395
by: Jim Chapman | last post by:
This is driving me nuts. I've been using VB.NET for about a year on this machine and decided to try C#. This is what I get when I try to debug (F11): Window title = Microsoft Development Environment Error while trying to run project: Unable to start debugging. Unable to start program 'C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\winforms\samples\helloworldform\cs\HelloWorldForm.e xe'
4
11915
by: Al Murphy | last post by:
I have a windows application called "WindowsApplication1". I have a variable of tyoe DataSet called myDataSet as shown below: namespace WindowsApplication1 { public class Form1 : System.Windows.Forms.Form {
10
4994
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able to figure out the solution to this problem. First off, the server is Windows Server 2003 - Web Edition (IIS 6) and I'm using .Net Framework v1.1.4322.
1
5071
by: Pepe | last post by:
Hi, I have created the "Hello World" web service with one web method on it "HelloWorld" (yes the tag is there). I have deployed the web service to a Windows 2003 server, then I create a new project in my local pc and try to add a web reference to the "Hello World" web service and I get the warning message: Custom tool warning: DiscoCodeGenerator unable to initialize code generator. No code generated.
9
17970
by: Zak Milas | last post by:
I have the code below: Private Sub cmdFill_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFill.Click Dim Employee As UploadFile, Count As Integer, Temp As String FileNum = FreeFile() FileOpen(FileNum, TextBox1.Text, OpenMode.Random, , , Len(Employee)) Count = 1 lstView.Items.Clear() Do While Not EOF(FileNum) FileGet(FileNum, Employee, Count)
0
1136
by: mtczx232 | last post by:
I try to run from vs2005 the simples from "101 Samples"-Web Development from Microsoft. the Site is work but i got Err: Unable to attach. The binding handle is invalid I got this Err for all Examples
2
2012
by: e michael brandt | last post by:
I am frustrated. It appears that one can not use insertBefore to insert an A node before a DL node. Is that really true? I *am* able to insert before a <p id="hh"> tag, but not before a <dl id="hh"> tag. i am able to do a body.appendChild with no trouble. Finally, winIE6 pops an error: 'Invalid argument' at the last snip line below (FF1.5 fails silently):
0
1284
by: Jordi | last post by:
I'm making a feature-file to train a Neural Network, but now that I've added a new feature, the output becomes corrupted. The output is as follows: 3000 25 1_002858 5 0 0 0 0 2 2 0 0 0 0 2 2 0 0 0 0 0 4 0 0 0 0 0 4 5_002671 2 1 1 0 0 0 0 0 0 1 2 0 0 0 2 1 0 0 0 0 3 0 0 0 1 7_001096 0 0 0 0 3 0 0 0 0 2 0 0 0 0 2 0 0 0 0 2 2 2 2 2 3 7_003394 0 0 1 0 0 0 0 1 0 0 1 1 2 2 0 0 0 0 1 0 2 1 1 1 3 2_003185 2 4 2 2 2 2 0 2 0 0 0 0 1 0 0 0 0 1 0 0...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10467
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.