Archive for the “ASP” Category

ASPMail error: Error was 503 Bad sequence

Error: ail send failure. Error was 503 Bad sequence of commands

This normally occurs when the script is unable to authenicate on the mail server.

May 28, 2010 Posted Under: ASP   Read More

ASP mailer error : Server.CreateObject Failed

Error on windows 2008

Server object error ‘ASP 0177 : 800401f3′

Server.CreateObject Failed 800401f3

Solution
the ASPMail component is NOT supported on Windows 2008 You will need to use the System.Net.Mail Component for .net. I pasted some sample code to get you started below. Please be advised that this sample will need to be modified some.

<%@ Import Namespace="System.Net.Mail"%>
<script language="VBScript" Debug="true" runat="server">
sub Page_Load()
Dim oMsg As New MailMessage()
oMsg.From = New MailAddress("mailbox@yourdomain.com")
oMsg.To.Add("recipient@theirdomain.com")
oMsg.Subject = "This is an email"
oMsg.Body = "<HTML><BODY>Hello World!</BODY></HTML>"
Dim smtp As New SmtpClient("scriptmail.yourdomain.com")
smtp.Send(oMsg)
oMsg = Nothing
end sub
</script>

More information on this component can be found at http://www.systemnetmail.com/

also
How do I send mail from Windows 2008 server/IIS7?

M$ KB

February 14, 2010 Posted Under: ASP   Read More

WCF Service: This collection already contains an address

Error: This collection already contains an address with the scheme HTTP

I wont go into much detail about this topic as I am fairly new to it also .. lol

The WCF service does not work within a shared environment without patching your application some. By default the application is retrieving the baseheader binded to the port which returns the servers hostname . You will need to extend the ServiceHostFactory class into your application. This will allow you to modify the return value of the baseAddress. The following blog article may give your some guidance on setting this up.

MSDN
More information

Hosting and Consuming WCF Services

August 16, 2009 Posted Under: ASP   Read More

Windows: Could not load file or assembly ‘MySql.Data

Error:
Parser Error Message: Could not load file or assembly ‘MySql.Data,

solution :
First ensure the mysql.data dll is loaded into the /bin folder under your web root. If you have admin rights to the server you can place this dll in c:\windows\assembly

You will also need to verify the version you are calling in your web.config file.

If you are unable to locate the dll on your local pc. you can download the dll from MySQL
The versions are listed on the left hand side.

** added note , this connector is different from the ODBC connector .. This connector is used by .NET appllications
Connector/Net 6.0

August 2, 2009 Posted Under: ASP, Windows   Read More

.net : service pack 1 DLL’s

If you encounter a error stating the server could not load System.Web.Extensions or another dll on the server. it normally means the server does not have the dll installed. They can be copied from your local pc to the server and placed into the bin folder for your application.

The dos command to perform this copy is
copy “C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35″ C:\project\bin

*replacing C:\project\bin with your actual project location.

July 5, 2009 Posted Under: ASP   Read More