P
Patrick
Screnaio
I have a .NET class library compiled with .NET Framework 1.1 SP1 on WinXP
ProSP1.
The class library and its interfaces is are as per appended at the end of
the post
..NET interop for invoking from ASP and VBScript are tested as working on the
WinXP Pro SP machine using
gacutil -i MyOrg.publications.iOrderWSProxy.dll
regasm /tlb MyOrg.publications.iOrderWSProxy.tlb
MyOrg.publications.iOrderWSProxy.dll
I have installed the .NET assembly and registered the tlb on a Win2K SP4
Server with .NET Framework 1.1 SP1 as per on WinXP, but
1) Yes, I can get the object instantiated from VBScript
2) I cannot get it instantiating from ASP, it fails on the CreateObject
call, even when:
2.1) IWAM_servername has been added to ONLY the Domain Users and
Administrators group
2.2) Moved the installation folder on the server to match the folder/path
structure of where the DLL was compiled on the source WinXP machine
The error I am getting is:
error '80004003'
Invalid pointer
/publications/test.asp, line 4
Please help
----------Start of STUB for Order.cs CLASS-------------------
namespace MyOrg.publications.iOrderWSProxy {
/// <summary>
/// Web service proxy client
/// </summary>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="iOrderSoap",
Namespace="http://publications.net/webservices/")]
public class Order : Microsoft.Web.Services2.WebServicesClientProtocol ,
IOrder {
private string url;
/// <summary>
/// Instatiate web service proxy client
/// Setting the URL of the web service URL.
/// </summary>
/// <remarks>
/// Sets URL using WebserviceURL parameter from the App.config
/// </remarks>
public Order() {
url = ConfigurationSettings.AppSettings["WebserviceURL"];
this.Url = url;
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://publicati
ons.net/webservices/PlaceOrder",
RequestNamespace="http://publications.net/webservices/",
ResponseNamespace="http://publications.net/webservices/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string PlaceOrder([MarshalAs(UnmanagedType.IUnknown)]
SimpleOrderData order) {
}
}
----------END for Order.cs CLASS-------------------
----------Start of STUB for iOrder.cs INTERFACE-------------------
namespace MyOrg.publications.iOrderWSProxy
{
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
public interface IOrder
{
/// <summary>
/// Places an order with iTwoTenData iOrder webserivce's PlaceOrder web
method
/// </summary>
/// <param name="order">A SimpleOrderData data object defining the
customer details, payment details and order details
/// This is marshared as UnmanagedType.IUnknown
/// </param>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://twoten.pr
ess.net/webservices/PlaceOrder",
RequestNamespace="http://twoten.press.net/webservices/",
ResponseNamespace="http://twoten.press.net/webservices/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
string PlaceOrder([MarshalAs(UnmanagedType.IUnknown)] SimpleOrderData
order) ;
}
}
----------End of STUB for iOrder.cs INTERFACE-------------------
I have a .NET class library compiled with .NET Framework 1.1 SP1 on WinXP
ProSP1.
The class library and its interfaces is are as per appended at the end of
the post
..NET interop for invoking from ASP and VBScript are tested as working on the
WinXP Pro SP machine using
gacutil -i MyOrg.publications.iOrderWSProxy.dll
regasm /tlb MyOrg.publications.iOrderWSProxy.tlb
MyOrg.publications.iOrderWSProxy.dll
I have installed the .NET assembly and registered the tlb on a Win2K SP4
Server with .NET Framework 1.1 SP1 as per on WinXP, but
1) Yes, I can get the object instantiated from VBScript
2) I cannot get it instantiating from ASP, it fails on the CreateObject
call, even when:
2.1) IWAM_servername has been added to ONLY the Domain Users and
Administrators group
2.2) Moved the installation folder on the server to match the folder/path
structure of where the DLL was compiled on the source WinXP machine
The error I am getting is:
error '80004003'
Invalid pointer
/publications/test.asp, line 4
Please help
----------Start of STUB for Order.cs CLASS-------------------
namespace MyOrg.publications.iOrderWSProxy {
/// <summary>
/// Web service proxy client
/// </summary>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="iOrderSoap",
Namespace="http://publications.net/webservices/")]
public class Order : Microsoft.Web.Services2.WebServicesClientProtocol ,
IOrder {
private string url;
/// <summary>
/// Instatiate web service proxy client
/// Setting the URL of the web service URL.
/// </summary>
/// <remarks>
/// Sets URL using WebserviceURL parameter from the App.config
/// </remarks>
public Order() {
url = ConfigurationSettings.AppSettings["WebserviceURL"];
this.Url = url;
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://publicati
ons.net/webservices/PlaceOrder",
RequestNamespace="http://publications.net/webservices/",
ResponseNamespace="http://publications.net/webservices/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string PlaceOrder([MarshalAs(UnmanagedType.IUnknown)]
SimpleOrderData order) {
}
}
----------END for Order.cs CLASS-------------------
----------Start of STUB for iOrder.cs INTERFACE-------------------
namespace MyOrg.publications.iOrderWSProxy
{
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
public interface IOrder
{
/// <summary>
/// Places an order with iTwoTenData iOrder webserivce's PlaceOrder web
method
/// </summary>
/// <param name="order">A SimpleOrderData data object defining the
customer details, payment details and order details
/// This is marshared as UnmanagedType.IUnknown
/// </param>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://twoten.pr
ess.net/webservices/PlaceOrder",
RequestNamespace="http://twoten.press.net/webservices/",
ResponseNamespace="http://twoten.press.net/webservices/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
string PlaceOrder([MarshalAs(UnmanagedType.IUnknown)] SimpleOrderData
order) ;
}
}
----------End of STUB for iOrder.cs INTERFACE-------------------