hello there, pls am a newbie to asp.net, Sometimes ago i bought a book "The joy of dreamweaver" by paul newmann,a great book that taught me asp and php. he however supplied the asp.net code version of every project,recently i tried using the codes for asp.net guest book and it tthrew the followin errors,pls what can i do,or have i not done,kindly hep me as his bog at
www.newmanzone.com/forum is currently under attack,thanks very much
abiola
it gave the following errors
Server Error in '/' Application.
--------------------------------------------------------------------------------
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: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found.
Source Error:
Line 1: <%@ Page Language="
VB" ContentType="text/html" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
Line 3: <MM:DataSet id="rsGuestbook"runat="Server"IsStoredProcedure="f alse"ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_newmanzone") %>'DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_newmanzone") %>'
Line 4: CommandText='<%# "SELECT * FROM Guestbook WHERE Active <>0 ORDER BY PostDate DESC" %>'
Source File: c:\inetpub\wwwroot\guestbook\TMPx9u06nqd0.aspx Line: 2
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DreamweaverCtrls' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspn et.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\confi g\machine.config.
LOG: Post-policy reference: DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls/DreamweaverCtrls.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls/DreamweaverCtrls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/2135a508/8d69a834/DreamweaverCtrls/DreamweaverCtrls.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/DreamweaverCtrls/DreamweaverCtrls.EXE.
the codes are as follows
for sign in
<%@ Page Language="
VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet id="rsGuestbook"runat="Server"IsStoredProcedure="f alse"ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_newmanzone") %>'DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_newmanzone") %>'
CommandText='<%# "SELECT * FROM Guestbook WHERE Active <>0 ORDER BY PostDate DESC" %>'
Debug="true"
> </MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Newman Zone - View Guestbook</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK rel="stylesheet" href="../newman.css">
</HEAD>
<BODY bgcolor="#FFFFFF" topmargin="0" marginheight="0">
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" rowspan="2" width="148" align="right"><img src="../images/left-toc.gif" width="148" height="456" vspace="0" hspace="0" border="0" usemap="#menumap" alt="Contents">
<map name="menumap">
<area shape="rect" coords="45,369,87,388" href="../home.aspx" alt="Home" title="Home">
<area shape="rect" coords="57,310,99,329" href="../news.aspx" alt="News" title="News">
<area shape="rect" coords="57,338,115,357" href="../contact.aspx" alt="Contact" title="Contact">
<area shape="rect" coords="56,285,126,303" href="../guestbook" alt="Guestbook" title="Guestbook">
<area shape="rect" coords="58,257,129,277" href="../resources.aspx" alt="Resources" title="Resources">
<area shape="rect" coords="58,230,126,247" href="../downloads" alt="Downloads" title="Downloads">
<area shape="rect" coords="58,203,119,220" href="../tutorials" alt="Tutorials" title="Tutorials">
<area shape="rect" coords="58,164,116,193" href="../about.aspx" alt="About Newman" title="About Newman">
<area shape="circle" coords="79,57,50" href="../home.aspx" alt="Home">
</map>
</td>
<td valign="top" height="108"><img src="../images/topback.gif" width="194" height="108" alt="top"></td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="592">
<tr>
<td align=left valign=top><br>
<img src="../images/headers/guestbook.gif" width="199" height="34" align="absmiddle" alt="Guestbook"> <b><a href="sign.aspx">Sign
Guestbook</a></b><br><br>
ASP:Repeater runat="server" DataSource='<%# rsGuestbook.DefaultView %>'>
<ItemTemplate>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="legalArial"> <%# DateTime.Parse(rsGuestbook.FieldValue("PostDate", Container)).ToString("D") %> </td>
<td align="right" class="legalArial"> <%# rsGuestbook.FieldValue("City", Container) %>
,
<%# rsGuestbook.FieldValue("State", Container) %>
(
<%# rsGuestbook.FieldValue("Country", Container) %>
)</td>
</tr>
<tr>
<td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="10" class="tblGreen">
<tr>
<td class="gbkentry"> <%# Replace((rsGuestbook.FieldValue("Comments", Container)),vbNewLine,"<br>") %> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="legalArial"> <a href="mailto:<%# rsGuestbook.FieldValue("Email", Container) %>">
<%# rsGuestbook.FieldValue("FirstName", Container) %>
<%# rsGuestbook.FieldValue("LastName", Container) %>
</a> </td>
<td align="right" class="legalArial">
<MM:If runat="server" Expression='<%# (rsGuestbook.FieldValue("Website",Container) = "") %>'>
<ContentsTemplate>
No URL Given
</ContentsTemplate>
</MM:If>
<a href="<%# rsGuestbook.FieldValue("Website", Container) %>" target="_blank"><%# rsGuestbook.FieldValue("Website", Container) %></a>
</td>
</tr>
<tr>
<td class="legalArial" colspan="2" height="30"> </td>
</tr>
</table>
</ItemTemplate>
</ASP:Repeater>
<p><br>
<p class="navlinks"><a
href="../home.aspx">Home</a> | <a
href="../about.aspx">About</a> | <a href="../tutorials">Tutorials</a>
| <a
href="../downloads">Downloads</a> | <a
href="../resources.aspx">Resources</a> | <a
href="../guestbook">Guestbook</a> | <a
href="../news.aspx">News</a> | <a
href="../contact.aspx">Contact</a></p>
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
<%@ Page Language="
VB" ContentType="text/html" %>
<%@Import Namespace="System.Web.Mail" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO Guestbook (City, Comments, Country, Email, FirstName, LastName, State, Website) VALUES (?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_newmanzone") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_newmanzone") %>'
Expression='<%# Request.Form("MM_insert") = "previewGuestbook" %>'
CreateDataSet="false"
Debug="true"
>
<Parameters>
<Parameter Name="@City" Value='<%# IIf((Request.Form("City") <> Nothing), Request.Form("City"), "") %>' Type="WChar" />
<Parameter Name="@Comments" Value='<%# IIf((Request.Form("Comments") <> Nothing), Request.Form("Comments"), "") %>' Type="WChar" />
<Parameter Name="@Country" Value='<%# IIf((Request.Form("Country") <> Nothing), Request.Form("Country"), "") %>' Type="WChar" />
<Parameter Name="@Email" Value='<%# IIf((Request.Form("Email") <> Nothing), Request.Form("Email"), "") %>' Type="WChar" />
<Parameter Name="@FirstName" Value='<%# IIf((Request.Form("FirstName") <> Nothing), Request.Form("FirstName"), "") %>' Type="WChar" />
<Parameter Name="@LastName" Value='<%# IIf((Request.Form("LastName") <> Nothing), Request.Form("LastName"), "") %>' Type="WChar" />
<Parameter Name="@State" Value='<%# IIf((Request.Form("State") <> Nothing), Request.Form("State"), "") %>' Type="WChar" />
<Parameter Name="@Website" Value='<%# IIf((Request.Form("Website") <> Nothing), Request.Form("Website"), "") %>' Type="WChar" />
</Parameters>
</MM:Insert>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Newman Zone - View Guestbook</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK rel="stylesheet" href="../newman.css">
<script language="
VB" runat="server">
Sub SendEmail(obj As Object, e As EventArgs)
'**** Send Email to guestbook owner ****
Dim mail As New MailMessage
Dim i As Integer
Dim FieldName As String
Dim FieldValue As String
mail.From = Request.Form("FirstName") & " " & Request.Form("LastName") & " <" & Request.Form("Email") & ">"
mail.To = "
[email protected]"
mail.Subject = "New Guestbook Entry!"
mail.Body = "Your guestbook was signed by " & vbNewLine & _
Request.Form("Email") & " on " & DateTime.Now & ":" & vbNewLine & vbNewLine
For i = 1 To Request.Form.Count - 1
FieldName = Request.Form.GetKey(i)
FieldValue = Request.Form(i)
mail.Body = mail.Body & _
FieldName & ": " & FieldValue & vbNewLine
Next
'mail.BodyFormat = MailFormat.Html
mail.Priority = MailPriority.High
SmtpMail.Send(mail)
'****Send email to guestbook signer****
Dim mail2 As New MailMessage
mail2.From = "Newman Zone <
[email protected]>"
mail2.To = Request.Form("Email")
mail2.Subject = "Thanks for signing!"
mail2.Body = "Thank you, " & Trim(Request.Form("FirstName")) & ", for signing my guestbook."
SmtpMail.Send(mail2)
End Sub
</script>
</HEAD>
<BODY bgcolor="#FFFFFF" topmargin="0" marginheight="0">
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" rowspan="2" width="148" align="right"><img src="../images/left-toc.gif" width="148" height="456" vspace="0" hspace="0" border="0" usemap="#menumap" alt="Contents">
<map name="menumap">
<area shape="rect" coords="45,369,87,388" href="../home.asp" alt="Home" title="Home">
<area shape="rect" coords="57,311,99,330" href="../news.asp" alt="News" title="News">
<area shape="rect" coords="57,338,115,357" href="../contact.asp" alt="Contact" title="Contact">
<area shape="rect" coords="57,285,127,303" href="../guestbook" alt="Guestbook" title="Guestbook">
<area shape="rect" coords="58,257,129,277" href="../resources.asp" alt="Resources" title="Resources">
<area shape="rect" coords="58,230,126,247" href="../downloads" alt="Downloads" title="Downloads">
<area shape="rect" coords="58,203,119,220" href="../tutorials" alt="Tutorials" title="Tutorials">
<area shape="rect" coords="58,164,116,193" href="../about.asp" alt="About Newman" title="About Newman">
<area shape="circle" coords="79,57,50" href="../home.asp" alt="Home">
</map>
</td>
<td valign="top" height="108"><img src="../images/topback.gif" width="194" height="108" alt="top"></td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="592">
<tr>
<td align=left valign=top><p><br>
<% If (Request.Form("Mode") = "") Then %><img src="../images/headers/sign-gbk.gif" width="270" height="34" align="absmiddle" alt="Guestbook"></p>
<form action="contact.aspx" method="post" id="contactForm" runat="server">
<table width="400" border="0" cellspacing="0" cellpadding="5" class="tblGreen">
<tr>
<td colspan="2"><img src="images/spacer.gif" width="1" height="1" alt="-">
</td>
</tr>
<tr>
<td align="right"><b>First Name:</b></td>
<td> <asp:textbox ID="FirstName" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>Last Name:</b></td>
<td> <asp:textbox ID="LastName" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>City:</b></td>
<td> <asp:textbox ID="City" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>State:</b></td>
<td> <asp:TextBox id="State" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>Country:</b></td>
<td> <asp:TextBox id="Country" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>Email:</b></td>
<td> <asp:TextBox id="Email" runat="server" /> </td>
</tr>
<tr>
<td align="right"><b>Web site:</b></td>
<td> <asp:TextBox id="Website" runat="server" /> </td>
</tr>
<tr align="center">
<td colspan="2"><b> Comments<br>
<asp:TextBox id="Comments" runat="server" TextMode="Multiline" columns="35" rows="6" />
</b></td>
</tr>
<tr>
<td colspan="2"><img src="images/spacer.gif" width="1" height="1" alt="-">
</td>
</tr>
<tr>
<td align="right"> <input type="hidden" name="Mode" value="preview">
</td>
<td> <asp:button type="submit" text="Preview" runat="server" class="button" onMouseover="this.className='buttonover'" onMouseout="this.className='button'" /> <input name="button" type="button" class="button" onClick="history.go(-1)" onMouseover="this.className='buttonover'" onMouseout="this.className='button'" value="Cancel">
</td>
</tr>
<tr>
<td colspan="2"><img src="images/spacer.gif" width="1" height="1" alt="-">
</td>
</tr>
</table>
</form>
<p><br>
<br>
</p><% ElseIf (Request.Form("Mode") = "preview") %>
<form method="POST" name="previewGuestbook" id="previewGuestbook" runat="server">
<p><img src="../images/headers/preview-gbk.gif" width="300" height="34"></p>
<p>Below is a preview of your guestbook entry. Click Sign to submit
it. </p>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="legalArial"><%= DateTime.Now() %></td>
<td align="right" class="legalArial"><%= Trim(Request.Form("City")) %>, <%= Trim(Request.Form("State")) %> (<%= Trim(Request.Form("Country")) %>)</td>
</tr>
<tr>
<td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="10" class="tblGreen">
<tr>
<td class="gbkentry"><%= Replace((Request.Form("Comments")),vbNewLine,"<br> ") %></td>
</tr>
</table></td>
</tr>
<tr>
<td class="legalArial"><%= Trim(Request.Form("FirstName")) %> <%= Trim(Request.Form("LastName")) %></td>
<td align="right" class="legalArial"><%= Trim(Request.Form("Website")) %></td>
</tr>
<tr align="center">
<td height="30" colspan="2" class="legalArial"><input name="Mode" type="hidden" id="Mode" value="sign">
<asp:button ID="Sign" type="submit" runat="server" Text="Sign" class="button" onMouseover="this.className='buttonover'" onMouseout="this.className='button'" onClick="SendEmail" />
<input type="button" name="Button" value="Cancel" onClick="location.href='index.aspx'" class="button" onMouseover="this.className='buttonover'" onMouseout="this.className='button'">
<input name="FirstName" type="hidden" id="FirstName" value="<%= Request.Form("FirstName") %>">
<input name="LastName" type="hidden" id="LastName" value="<%= Request.Form("LastName") %>">
<input name="City" type="hidden" id="City" value="<%= Request.Form("City") %>">
<input name="State" type="hidden" id="State" value="<%= Request.Form("State") %>">
<input name="Country" type="hidden" id="Country" value="<%= Request.Form("Country") %>">
<input name="Email" type="hidden" id="Email" value="<%= Request.Form("Email") %>">
<input name="Website" type="hidden" id="Website" value="<%= Request.Form("Website") %>">
<input name="Comments" type="hidden" id="Comments" value="<%= Request.Form("Comments") %>"></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="previewGuestbook">
</form>
<% Else %>
<p><br>
<img src="../images/headers/thanks.gif" width="270" height="34">
<p>Thank you, <%= Trim(Request.Form("FirstName")) %>, for signing the guestbook.</p>
<p><a href="index.aspx">View Guestbook</a></p>
<p><img src="../images/spacer.gif" width="1" height="100"></p>
<% End If %>
<p class="navlinks"><a
href="../home.asp">Home</a> | <a
href="../about.asp">About</a> | <a href="../tutorials">Tutorials</a>
| <a
href="../downloads">Downloads</a> | <a
href="../resources.asp">Resources</a> | <a
href="../guestbook">Guestbook</a> | <a
href="../news.asp">News</a> | <a
href="../contact.asp">Contact</a></p>
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
llllll
busteronline