473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Overload resolution failed because no accessible 'Transform'....

I am trying to create an XSLT Transform but keep getting the same problem.

Overload resolution failed because no accessible 'Transform' can be called
with these arguments.

I create a reference to System.Xml.dll

Here is the code
Imports System.Xml
Imports System.Xml.Xsl.XslTransform

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim xslt As New System.Xml.Xsl.XslTransform()
xslt.Load("transform.xslt")
** xslt.Transform("input.xml", "output.htm", Nothing)
End Sub
End Class

The line with double asterisks is where the problem resides.
Alternatively, I have tried this:

Dim myXslTransform As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform()
Dim myResolver = New XmlUrlResolver()
myResolver.Credentials = System.Net.CredentialCache.DefaultCredentials

Dim destFileName As String = "ShowIt.html"
myXslTransform.Load("WXDisplayThatPuppy.xslt")

**myXslTransform.Transform("OneWXClientMultiPrescr iptions.xml",
destFileName,myResolver)
System.Diagnostics.Process.Start(destFileName)

Again, it seems the Transform methos is where the problem stems from.

Anyone have any idea?
Nov 21 '05 #1
1 3984
"steve" <st***@discussions.microsoft.com> schrieb:
Overload resolution failed because no accessible 'Transform'
can be called with these arguments.
[...]
** xslt.Transform("input.xml", "output.htm", Nothing)
[...9
**myXslTransform.Transform("OneWXClientMultiPrescr iptions.xml",
destFileName,myResolver)


There is no overload of the 'Transform' method that accepts three
parameters, where the first two parameters are of type 'String'. Take a
look at the overloads list for available overloads.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eph0nk | last post by:
Hi, I get an overload resolution failed error (Overload resolution failed because no accessible 'New' can be called without a narrowing conversion), and I can't seem to find a lot of relevant...
5
by: Gang Zhang | last post by:
Hi, I have 2 overloaded functions as below: myfunc(byval val as Decimal) as string myfunc(byval val as String) as string When calling the function with a single like: dim num1 as single...
0
by: Cailin | last post by:
I am trying to make a connection with my SQL server DB, and I got this error message: "BC30519: Overload resolution failed because no accessible 'New' can be called without a narrowing...
0
by: steve | last post by:
I am trying to create an XSLT Transform but keep coming across this problem. First, I am referencing System.xml.dll Imports System Imports System.Xml Imports System.Xml.Xsl Imports System.IO...
0
by: bcobra | last post by:
What am I doing wrong? the code: age Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"...
4
by: Kevin Burton | last post by:
I have a base (MustInherit/abstact) class that looks like: Public MustInherit Class BaseClass End Class Then I have three derived classes: Public Class DerivedA Inherits BaseClass End...
2
by: jason | last post by:
Since going to framework 2.0 from 1.1, I'm getting error: Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: On line: Dim LogInfo As New...
1
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
I have a strange situation with vb 2005 regarding option strict that looks like a compiler bug to me. Consider: Dim f1 As New Font("Arial", 8.25) Dim f2 As New Font("Arial", 8.25,...
2
by: Bart | last post by:
Hi, i get the error "BC30518:Overload resolution failed because no accessible 'Join' can be called with these arguments" at line: hvd = Join(hvertp, ",") Any idea what's wrong here? Thanks...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.