473,322 Members | 1,781 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,322 software developers and data experts.

Porting from JScript to JScript.Net - compiler error

Hi All,

Am trying to port an existing asp 3.0 app written in JScript to JScript.Net,
and have just had the following error:

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:
JS1113: Only valid inside a class definition

SOURCE ERROR:
Line 11242: }
Line 11243:
Line 11244: protected override function FrameworkInitialize() {
Line 11245: this.__BuildControlTree(this);
Line 11246: this.FileDependencies =
ASP.test2_aspx.__fileDependencies;

SOURCE FILE:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry
ASP.NET Files\root\6ee7ca74\d173ebaf\rcfu-d1s.0.js
Line: 11244

All I can find in the documentation about this is the following:

TemplateControl.FrameworkInitialize Method
This member supports the .NET Framework infrastructure and is not
intended to be used directly from your code.

This isn't looking good.... does anyone know how to deal with this?

TIA,

JON

PS First posted to aspmessageboard
http://www.aspmessageboard.com/forum...25525&F=36&P=1

Nov 18 '05 #1
4 1535
At first glance, it seems like you are using the protected attribute outside
of a class declaration. I can't tell for sure until I see more of the code
block around this error.

- Rashad Rivera
Omegus Prime

"Jon Maz" <jo****@surfeuNOSPAM.de> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
Hi All,

Am trying to port an existing asp 3.0 app written in JScript to JScript.Net, and have just had the following error:

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:
JS1113: Only valid inside a class definition

SOURCE ERROR:
Line 11242: }
Line 11243:
Line 11244: protected override function FrameworkInitialize() {
Line 11245: this.__BuildControlTree(this);
Line 11246: this.FileDependencies =
ASP.test2_aspx.__fileDependencies;

SOURCE FILE:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry
ASP.NET Files\root\6ee7ca74\d173ebaf\rcfu-d1s.0.js
Line: 11244

All I can find in the documentation about this is the following:

TemplateControl.FrameworkInitialize Method
This member supports the .NET Framework infrastructure and is not
intended to be used directly from your code.

This isn't looking good.... does anyone know how to deal with this?

TIA,

JON

PS First posted to aspmessageboard
http://www.aspmessageboard.com/forum...25525&F=36&P=1

Nov 18 '05 #2
Hi Rashad,

That's just the thing, there *is* no code to show you - well, none that I
wrote, anyway.

All I did was take an existing (and working) asp 3.0 application written in
JScript, changed all the .asp extensions to .aspx, added a web.config file
to the root folder, and then got this error message - which clearly doesn't
apply to any code that *I* wrote!

In fact, since the error is clearly in a piece of dotnet code, the only
thing that makes any sense to me is that this is a bug somewhere in the
Dotnet Framework - which would mean that I can't do anything to fix it.

Any other interpretation of the situation would be more than welcome...

:-(

J


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.749 / Virus Database: 501 - Release Date: 01/09/2004
Nov 18 '05 #3
Make sure ASPNET user has proper rights to required temp folders.

http://msdn.microsoft.com/library/de...lListsACLs.asp

Sounds somewhat reminiscent of the issues caused with the IIS lockdown tool.

Greg

"Jon Maz" <jo****@surfeu.de.NOSPAM> wrote in message
news:O9**************@TK2MSFTNGP12.phx.gbl...
Hi Rashad,

That's just the thing, there *is* no code to show you - well, none that I
wrote, anyway.

All I did was take an existing (and working) asp 3.0 application written in JScript, changed all the .asp extensions to .aspx, added a web.config file
to the root folder, and then got this error message - which clearly doesn't apply to any code that *I* wrote!

In fact, since the error is clearly in a piece of dotnet code, the only
thing that makes any sense to me is that this is a bug somewhere in the
Dotnet Framework - which would mean that I can't do anything to fix it.

Any other interpretation of the situation would be more than welcome...

:-(

J


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.749 / Virus Database: 501 - Release Date: 01/09/2004

Nov 18 '05 #4
Hi All,

Well, after much research I finally found out what was causing the problem,
and can still hardly believe it - it was one function which used the JScript
"arguments" property:

function XXX(.........)
{
if (XXX.arguments.length < 3 ...)
}

Removing the line with .arguments removed the error! As to why the compiler
came up with such an unhelpful error message, without pinpointing the file &
line number, is beyond me...

Anyway, onwards and upwards to the next problem! Thanks to all for their
helpful contributions.

JON

Nov 18 '05 #5

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

Similar topics

5
by: Kenton Groombridge | last post by:
Hi, I previous posted this in a gcc and g++ groups since that is the compiler I am working with, but I didn't get any response. Hopefully these are the right groups for this question. I am...
2
by: Michael Sgier | last post by:
Hello i'm trying to port a windows program to linux with Kdevelop 1.question: unsigned char *LoadBitmapFile(char *filename, BITMAPINFOHEADER *bitmapInfoHeader); ...
2
by: Zach Mortensen | last post by:
I can't seem to get dynamically-compiled JScript code to use C#-defined custom attributes. I have a simple attribute and a class defined in a C# assembly: namespace MyNamespace { public...
3
by: slarti | last post by:
My VS6 version used #include <fstream.h> which for VS.net I had to change to #include <fstream> using namespace std; Now I get a compiler error :
4
by: r.nikhilk | last post by:
Hi, We are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by including the...
5
by: r.nikhilk | last post by:
Hi, Currently, we are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by...
8
by: Bern McCarty | last post by:
I have a simple ref class in its own namespace that needs to coexist with a legacy typedef alias for "unsigned int" in the global namespace that has the identifier as itself. Everything compiles...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
5
by: shobhah | last post by:
Hi, We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8 Now we are migarting our product from 32 bit to 64bit sparc solaris machine....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.