I’m mailing script for Adserver using DotNet 2.0. Facing the problem as given below:
Created a webservice named 'WebService.cs' in my project in app_code folder, its respective .asmx file is in my main project folder(outside app_code).
Now this project is published and uploaded.
When someone logins on my website as a publisher, he gets the following script to paste
<body onLoad="return TaggedData('ws','1','PUBID01','adht','adwidth','categorycode','#f5f5dc','#ffffff','#a9a9a9','#ffffff','#006400');" >
<div ID="ws" title="hello" style="BEHAVIOR:url(webservice.htc)" onresult="GetResult('Div1Resul');"></div>
which ultimately displays the desired records from the database. Now,
webservice.htc file is placed within the same folder.
It gives the error:
Object doesn’t support this property or method.
Even when webservice.htc is placed along with the script file or removed from there.
3. It also works fine when the above mentioned script is in html format along with webservice.htc on desktop with internet connectivity.