473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 3971
"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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.