Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mtdll problem
Message
From
25/11/2004 09:04:37
 
 
To
25/11/2004 08:57:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00964620
Message ID:
00964672
Views:
8
>>1.)You typically just need to give access rights to the tables you're using if those vfp tables are on the same machine. If you're using ASP.NET, this would be the ASPNET account, and should probably include IUSR and IWAM accounts as well. So, under security for mytable.dbf and mytable.cdx, give those accounts read and write access(BTW, this can all be automated). DCOMCCFG doesn't enter the picture unles you're using COM .exe servers.
>>2.)If using asp.net, you'll need to create a proxy .NET dll over your vfp mtdll. This can be done with VS.NET or the free .NET SDK which use a utility called tlbimp.exe.
>>3.) Your asp.net script needs to call the vfp mtdll a certain way like:
>>
>>< % @Page Language="C#" ASPCompat="true"
>>< % @Import Namespace="avfpdemo2_dotnetproxy"
>>< %
>>server x ;
>>x = new server() ;
>>try
>>   {
>>	Response.Write(x.main());
>>   }
>>catch(Exception ex)
>>   {
>>       	Response.Write("Caught .NET exception, source: " + ex.Source + " message: " + ex.Message);
>>   }
>>
>>
>>
>>
>>
>>see http://www.activevfp.com/avfpdemo2/default.aspx for an example.
>>
>>>Hi
>>>
>>>I've created a foxpro mtdll and am trying to load it from a .net web page web page. WHen I try to load it I get
>>>
>>>System.Exception: Cannot create ActiveX component.
>>>
>>>The mtdll has been created on the PC running a copy of IIS for development.
>>>
>>>Any ideas what I need to do.
>>>
>>>Thnaks
>>>
>>>Nick Mason
>
>Heads up! Thanks. I was getting it as an access denied to COM from the start.
>Nick sounds like I was driving you in wrong direction, sorry.
>Cetin

Cetin

No problem. Thnaks for your help.

Claude thanks for that. I'll pursue that.

Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform