I am a totally newbie in ASP / VB programming, I would like some help from
you guys if possible.

Below are the steps given which i followed,

Step 1: Create a MFC based .Exe with single file document option.
Step 2: Insert -> Add ATL object -> Select Simple object.
Step 3: Build the .Idl file with 2 dummy fuctions as Add, Dummy.
Step 4: Build the proxy DLL in a saperate project including the files
generated by .idl
Step 5: Register the exe.
Step 6: create object from ASP page.
Step 7: Call the function.

I have just pasted the sample code of my script being used, and the result
obtained when i run the code. Please let me know why Compilation Error :
'80070002' is obtained.

<HTML>
<TITLE>Multiplication</TITLE>
<BODY>

<%
Dim MulResult
Dim MulNum, result
Response.write (" before")
Set MulNum = CreateObject("mfcatl.math.1")
Response.write ("after")
result = MulNum.Add(2,8)
Response.write(result)

%>

</BODY>
</HTML>

RESULT obtained :

before after
Parse error in script

ASP scripting compilation error: '80070002'

Description:

In file: /multi.asp

Re: ASP scripting compilation error: '80070002' by Michael

Michael
Mon Jan 03 19:23:14 CST 2005

> I have just pasted the sample code of my script being used, and the
> result obtained when i run the code. Please let me know why
> Compilation Error : '80070002' is obtained.

You don't indicate which line of code throws the error.

For an error of 0x8007002, the 8007 indicates a Win32 error and the actual
error code is 0x0002. Win32 errors are documneted by their decimal value -
0x0002 = 2 decimal.

2 - The system cannot find the file specified. - ERROR_FILE_NOT_FOUND


System Error Codes (0-499) [Base]
http://msdn.microsoft.com/library/en-us/debug/base/system_error_codes__0-499_.asp?frame=true

--
Michael Harris
Microsoft MVP Scripting



Re: ASP scripting compilation error: '80070002' by sami

sami
Mon Jan 03 22:23:01 CST 2005

Hi Michael,
I am finding error when the below line gets executed in the script,

result = MulNum.Add(2,8)


"Michael Harris (MVP)" wrote:

> > I have just pasted the sample code of my script being used, and the
> > result obtained when i run the code. Please let me know why
> > Compilation Error : '80070002' is obtained.
>
> You don't indicate which line of code throws the error.
>
> For an error of 0x8007002, the 8007 indicates a Win32 error and the actual
> error code is 0x0002. Win32 errors are documneted by their decimal value -
> 0x0002 = 2 decimal.
>
> 2 - The system cannot find the file specified. - ERROR_FILE_NOT_FOUND
>
>
> System Error Codes (0-499) [Base]
> http://msdn.microsoft.com/library/en-us/debug/base/system_error_codes__0-499_.asp?frame=true
>
> --
> Michael Harris
> Microsoft MVP Scripting
>
>
>

RE: ASP scripting compilation error: '80070002' by CarolynSpeakman

CarolynSpeakman
Wed Jan 05 04:05:03 CST 2005

try:
Set MulNum = Server.CreateObject("mfcatl.math.1")

??

"sami" wrote:

> I am a totally newbie in ASP / VB programming, I would like some help from
> you guys if possible.
>
> Below are the steps given which i followed,
>
> Step 1: Create a MFC based .Exe with single file document option.
> Step 2: Insert -> Add ATL object -> Select Simple object.
> Step 3: Build the .Idl file with 2 dummy fuctions as Add, Dummy.
> Step 4: Build the proxy DLL in a saperate project including the files
> generated by .idl
> Step 5: Register the exe.
> Step 6: create object from ASP page.
> Step 7: Call the function.
>
> I have just pasted the sample code of my script being used, and the result
> obtained when i run the code. Please let me know why Compilation Error :
> '80070002' is obtained.
>
> <HTML>
> <TITLE>Multiplication</TITLE>
> <BODY>
>
> <%
> Dim MulResult
> Dim MulNum, result
> Response.write (" before")
> Set MulNum = CreateObject("mfcatl.math.1")
> Response.write ("after")
> result = MulNum.Add(2,8)
> Response.write(result)
>
> %>
>
> </BODY>
> </HTML>
>
> RESULT obtained :
>
> before after
> Parse error in script
>
> ASP scripting compilation error: '80070002'
>
> Description:
>
> In file: /multi.asp
>
>
>
>