473,387 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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=System.Web

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

Steve M
Sep 17 '08 #1
1 3917
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(Request.ServerVariables("HTTP_HOST"))

Public function TestFunction( ByRef URL as string) as integer
return 1
end function
"news.microsoft.com" <sm******@torchmark.comwrote in message
news:eH*************@TK2MSFTNGP05.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=System.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
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...
3
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
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...
5
by: MLH | last post by:
What is the meaning of this error? Operation Must Use An Updateable Query ???
3
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
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
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...
3
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...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.