473,549 Members | 4,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error on return from function call in ASP.NET "Operation is not supported on this platform."

I am getting the following error on the return from a function call.It
specically happens on the assignment of the return value from the function
call. No error happens inside the function. The function is returning an
Integer with a value of 1.

Err.number =5
Err.Description =Operation is not supported on this platform.
Err.Source=Syst em.Web

Anyone ever seen this error or can explain why I am getting this? Thanks,

Steve M
Sep 17 '08 #1
1 3929
I found out what was causing this problem. Not only is the message
misleading, the error is raised way after the fact. see Example below, by
changing the ByRef to ByVal the code works. The example below will have the
URL and the error is raised on the exit of the function. In my opinion the
error should be raised on trying to enter the function so the developer has
some clue as to what is really wrong when debugging.

to recreate the error use this code

Dim RC as integer
RC = TestFunction(Re quest.ServerVar iables("HTTP_HO ST"))

Public function TestFunction( ByRef URL as string) as integer
return 1
end function
"news.microsoft .com" <sm******@torch mark.comwrote in message
news:eH******** *****@TK2MSFTNG P05.phx.gbl...
>I am getting the following error on the return from a function call.It
specically happens on the assignment of the return value from the function
call. No error happens inside the function. The function is returning an
Integer with a value of 1.

Err.number =5
Err.Description =Operation is not supported on this platform.
Err.Source=Syst em.Web

Anyone ever seen this error or can explain why I am getting this? Thanks,

Steve M

Sep 17 '08 #2

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

Similar topics

6
1961
by: komal | last post by:
hi all basically my problem is i have to write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter.and no of parameter is calling function can be anything. for example.suppose my function is function2. then when i call function1(int i ,char...
3
1547
by: bluekite2000 | last post by:
In one of the books, the author writes: Class Complex { .... Complex& operator+=(const Complex& Other) { real_+=Other.real_; im_+=Other.im_; return *this; }
10
3310
by: WindAndWaves | last post by:
Hi Gurus Whenever I start making changes in VB (without having anything open), the first time after opening the application, i will get the following error: This will reset your project do you want to proceed anyway? Why would I get this??? I just have no idea.
5
2117
by: MLH | last post by:
What is the meaning of this error? Operation Must Use An Updateable Query ???
3
1326
by: recklinux | last post by:
ok guys its void *fn(int *a,int *b); main { ----- ----- } how will you call this fn without using it in main ?
2
2248
by: gert | last post by:
obj=function() { this.attribute=1 this.method=function() { img=document.createElement('img') img.onclick=function { this.attribute=2 // i need the obj this not the img this :) }
5
2173
by: Sonasang | last post by:
Hi , I am creating a web page with ASP and Javascript.We have shared the foldres containg the code and all our team members are accessing the code. There is no problem for me when i run the code and working properly. But when some of my team members when they run the web page they are getting the ERROR in function() Operation is not...
3
1212
by: DR | last post by:
I set my database to trustworthy and deployed this clr stored proc as unsafe ok but when i run this it returns 1 each time. as if ival keeps getting set back to 0 each time i call this clr stored proc. How to fix so that ival keeps its current value each time i execute this from sql server? public partial class UserDefinedFunctions {...
8
3889
by: thatcollegeguy | last post by:
http://smarterfootball.com/exits/theHTML.html I am not sure what is wrong w/ this code. The main issue is that the table that is in the initial html will empty its td but the table that I load using php and jquery through a mysql database will not empty the td elements. There is a table underneath the button in the initial html. if you click...
0
7526
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...
0
7455
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...
0
7723
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. ...
0
7814
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...
0
6050
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...
0
5092
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...
0
3504
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...
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
769
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...

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.