Categories
AJAX ASP.NET 2.0 VB.NET

Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0

The full error message is:

Error 1 Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains ‘AjaxControlToolkit.CalendarExtender’. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use ‘AjaxControlToolkit.CalendarExtender’, you must replace the reference to System.Web.Extensions with version 3.5.0.0 or higher.

After some time finding for the cause, I realize that this is due to the me using the newer version of AjaxControlToolkit.dll. I should use the older version AjaxControlToolkit.dll for my ASP.NET 2.0 development.

Categories
ASP.NET 2.0 VB.NET

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation

The full error message is

“Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.”

This is probably due to you using MsgBox(“so message here.”) for your web application. I learn that you can only use MsgBox for window form application.

So, the solution is to think of other way to display a message to the user.

Categories
ASP.NET 2.0 Software Engineering VB.NET

Hide your source code at the browser when hit error

I got a little anxious and embarrassed to see my source code exposed at the browser when I got an error.

Managed to find out that this is due to some setting at the web.config. I just need to set debug to false.

[sourcecode language=”html”]
<configuration>
<system.web>
<compilation debug=”false” />
</system.web>
</configuration>
[/sourcecode]

Categories
Software Engineering

Unexpected error 0x8ffe2740 occurred

I realized that this happened when I try to start IIS when Apache web services has started (from XAMPP). When I stop Apache, I can start IIS.

And, vice versa, if I have my IIS started, I can’t able to start Apache. Perhaps this is due to they have the same port.

So, if you encountered this error message, check if you have Apache running at that time

Categories
VB.NET

Unable to send to all recipients … Mailbox unavailable. The server response was: 5.7.1 Unable to relay for …

Managed to fix it by going to IIS > Default SMTP Virtual Server > Property > Access > Relay

relay

Even though I still not able to receive the mail I sent out yet, but there is no more error message when I use VB.NET code (System.Net.Mail.MailMessage) to send it.

When I went to C:InetpubmailrootQueue, I saw that the mail was there. My next goal is to make sure I receive this email. I think the next I need to look into SMTP thingy at my code.