473,659 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler Error Message: BC30807: 'Let' and 'Set' assignment statem


Hi everyone,
Our company has several different servers which were hosted in different
places.
One of the servers I administer is using windows 2000 server which can run
both
asp and asp.net. I didn't do any specific IIS configuration.
One of my team member asked me a question about the error message as follow:

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: BC30807: 'Let' and 'Set' assignment statements are
no longer supported.

Source Error:

from the following asp code:
Line 18:
Line 19: Dim Sendmail
Line 20: Set Sendmail = Server.CreateOb ject("CDONTS.Ne wMail")
Line 21:
Line 22: Sendmail.From = "www.services.c om"

Source File: D:\XXXXXXX\inde x.aspx Line: 20

apparently, the .net compiler trying to compile the asp code. I didn't ask
what operating system is the server yet. in IIS, what I can change the set up
in order for the server being able to run both asp and asp.net. I just guess
windows 2003 server set up by default is "NO" for asp
--
Betty
Sep 1 '06 #1
1 7718
Steven,
Thank you so much to provide me so much information. It's really helpful.
Actually the code is from another person, I just cut and pasted into the
question and didn't even noticed she used .aspx extension.
Also I did see the screenshot you provided in outlook.(in my visual studio
..net software) my company use lotus notes.
I just cannot imagine that you are so detailed which I really need it and
always provide different solutions.
cheers
--
Betty
"Steven Cheng[MSFT]" wrote:
Hello Betty,

From your description, I understand when you running an aspx page which
contains code to create and use "CDONT" component, you're getting the
following error:

=============== ====
Compiler Error Message: BC30807: 'Let' and 'Set' assignment statements are
no longer supported.
=============== ====

Based on my research, this error is a typical error when we try using some
set/let VBscript code(usually used in ASP page) in ASP.NET page(VB.NET),

#'Let' and 'Set' assignment statements are no longer supported
http://msdn2.microsoft.com/en-us/library/9tzcse0s.aspx

As you mentioned that this is a classic ASP page, why did you use aspx as
the extension, if you use ASPX as extension, IIS6(on windows 2003 server)
will always process it through ASP.NET runtime engine.

If this does be a classic ASP page, you need to change it back to .asp
extension. And you're right that ASP is disabled by default on windows2003
iis6, you can enable it in the "Web Service Extensions" setting in the
IIS6's management console. I've attached a screenshot on the "Web Service
Extensions" setting for ASP in this message. (You can get it if you're
using Outlook express to visit the newsgroup, please let me know if you can
not get it).

If the page is ASP.NET page, you can consider using the .net framework's
built-in SMTP components to send email:

** if the page is an ASP.NET 1.1 page, you can use the System.Web.Mail
components

#System.Web.Mai l Namespace
http://msdn.microsoft.com/library/en...webmail.asp?fr
ame=true
** if the page is an ASP.NET 2.0 page, you can use the enchanced
System.Net.Mail components:

#System.Net.Mai l Namespace
http://msdn2.microsoft.com/en-us/lib....net.mail.aspx
In addition, the following faq sites are also very good:

http://www.systemwebmail.net

http://www.systemnetmail.net

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.


Sep 1 '06 #2

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

Similar topics

7
2671
by: Matthew Del Buono | last post by:
Don't try to solve the problem. I've found a way -- around or fixing it. I'm just curious as to whether this is Microsoft's problem in their compiler or if there's a standard saying this is to be true (not necessarily an internal compiler error, but still an error) This may just a bit OT, but I decided to post it here instead of Microsoft because my question is more directed towards standards... Of course, any other day I would have...
1
2206
by: Sacha Faust | last post by:
I have an abstract class, RuleResponse, and then create a new class base on it, RuleResponseSequence, and override the ++ operater. If I try to cast a RuleResponse as a RuleResponseSequence and try to use the ++ operator the compiler tells me "The left-hand size of an assignment must be a variable, property or indexer". I don't understand why I get that. Here is the line that doesn't compile (m_rule.Response is a RuleResponse instance):
29
2511
by: junky_fellow | last post by:
Consider the following piece of code: struct junk { int i_val; int i_val1; char c_val; }; int main(void) {
16
2846
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...) Oh, I forgot to list the error messages; I would be delighted if someone could explain how to deduce which line number in which file is the one that the VC compiler cannot handle. Actually I'm using C#, but the only post I could find about...
3
1148
by: Alexander Arlievsky | last post by:
Hi, C# compiler issues error message on the following lines: GetStruct().Depth = 10; if GetStruct() returns structure (value type). It seems to be correct - else you will modify temporary value on the stack. It still allows to call method, so GetStruct().SetDepth(10) compiles perfectly, although obviosly still modifies only temporary value on the stack. But in our case "Depth" is property, and its "set" implementation modifies some...
0
23483
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
9
1605
by: Raj | last post by:
public static void HandleException(ref Exception io_exException, bool i_blnPropagateException) { switch (true) { case io_exException is ApplicationHandledException: { if (i_blnPropagateException) {
43
3808
by: JohnQ | last post by:
Are a default constructor, destructor, copy constructor and assignment operator generated by the compiler for a struct if they are not explicitely defined? I think the answer is yes, because "there is no difference between a struct and a class except the public/private access specification" (and a few minor other things). When I create a class, I always start by declaring the default constructor, copy constructor and assignment operator...
1
2265
by: dileepd | last post by:
Hi Every one, Could you please let me know if you have any clue about following things. 1. Whether type bool acts like a kind of signed int type in g++ on solaris 9(a/c to my invetsigation it is "Yes"). 2. If above question is yes,What needs to be done in order for compiler to overload constructor once with bool and one with integer. Iam asking these question as iam encountering following errors.
0
8428
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
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8629
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...
1
6181
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
5650
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
4176
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...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.