July 21, 2002 - Accessing the Web Service dll | WebReference

July 21, 2002 - Accessing the Web Service dll

Yehuda Shiran July 21, 2002
Accessing the Web Service dll
Tips: July 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

Once you create a Web service proxy, you are left with a dll file. This library resides in a certain directory and is not known in other directories. You need to create this library in the same directory where you develop your ASP.NET pages. Your IIS Web server needs to have access to these pages. Therefore, you must make sure the directory you develop in is accessible by Everyone. This is the default for directories that are at the root of your hard drives, as opposed to directories that are underneath your user name. A directory such as d:\aspDemo is, by default, accessible by Everyone. The directory c:\Documents and Settings\Yehuda Shiran\My Documents\aspDemo, on the other hand, will not be accessible by Everyone. In Windows 2000, to verify the security level of your directory, right click its icon and pick Sharing.... The Security tab should have it accessible by Everyone, shown in this window:

Also, it is not sufficient to change the setting of your directory alone. You need to make sure all its parent directories can be accessible by Everyone.

To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.