Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionExcel interop & filling columns from an array (VB.NET 3.5) Pin
Steven St. John1-Jul-11 6:50
Steven St. John1-Jul-11 6:50 
AnswerRe: Excel interop & filling columns from an array (VB.NET 3.5) Pin
Alan N1-Jul-11 10:56
Alan N1-Jul-11 10:56 
GeneralRe: Excel interop & filling columns from an array (VB.NET 3.5) [modified] Pin
Steven St. John1-Jul-11 13:15
Steven St. John1-Jul-11 13:15 
QuestionWebService monOccurs and maxOccurs Without Nillable [modified] Pin
KenBonny29-Jun-11 22:44
KenBonny29-Jun-11 22:44 
QuestionVBA text problem Pin
KORCARI28-Jun-11 10:51
KORCARI28-Jun-11 10:51 
AnswerRe: VBA text problem Pin
ChandraRam29-Jun-11 3:44
ChandraRam29-Jun-11 3:44 
AnswerRe: VBA text problem Pin
Dalek Dave29-Jun-11 5:44
professionalDalek Dave29-Jun-11 5:44 
QuestionInstaller [modified] Pin
KenBonny27-Jun-11 4:17
KenBonny27-Jun-11 4:17 
I'm making an installer of my webservices and I'm stuck at the last bit.

I'm trying to change some values in a custom xml file that I'm installing. I don't save my settings in an web.config file, but in either public, protected or private.config.xml file. I want to change the $logPath$ variable in the document with the installation path. I've figured out that with custom code I can do:

MyBase.Install(stateSaver)

Dim xmlDocument As New System.Xml.XmlDocument
Dim strPath As String = System.IO.Path.Combine(Context.Parameters.Item("TARGETDIR"), "public.config.xml")

If System.IO.File.Exists(strPath) Then
    xmlDocument.Load(strPath)

    xmlDocument.ToString().Replace("$logPath$", Context.Parameters.Item("TARGETDIR"))

    xmlDocument.Save(strPath)
End If


Rinse and repeat for the other files. But I get an error: "1001 - parameter path1 cannot be null". That's the first parameter of the System.IO.Path.Combine() function. But it's not null, there should be a path set.

modified on Monday, June 27, 2011 10:35 AM

AnswerRe: Installer Pin
KenBonny27-Jun-11 21:22
KenBonny27-Jun-11 21:22 
QuestionDeviceID from CD Pin
JR21225-Jun-11 20:15
JR21225-Jun-11 20:15 
AnswerRe: DeviceID from CD Pin
JR21225-Jun-11 23:43
JR21225-Jun-11 23:43 
QuestionUsing LINQ to Objects to generate a frequency table - returned as a Dictionary [modified] Pin
Steven St. John25-Jun-11 5:28
Steven St. John25-Jun-11 5:28 
QuestionAdd Reference At Runtime Pin
Milad.Biroonvand23-Jun-11 8:47
Milad.Biroonvand23-Jun-11 8:47 
AnswerRe: Add Reference At Runtime Pin
Eddy Vluggen23-Jun-11 9:12
professionalEddy Vluggen23-Jun-11 9:12 
QuestionVB and MS Excel Pin
geekgautam23-Jun-11 3:07
geekgautam23-Jun-11 3:07 
AnswerRe: VB and MS Excel Pin
David Mujica23-Jun-11 3:28
David Mujica23-Jun-11 3:28 
GeneralRe: VB and MS Excel Pin
geekgautam23-Jun-11 18:26
geekgautam23-Jun-11 18:26 
GeneralRefresh Data Pin
David Mujica24-Jun-11 6:25
David Mujica24-Jun-11 6:25 
GeneralRe: Refresh Data Pin
geekgautam24-Jun-11 8:01
geekgautam24-Jun-11 8:01 
AnswerRe: VB and MS Excel Pin
Dalek Dave23-Jun-11 3:39
professionalDalek Dave23-Jun-11 3:39 
GeneralRe: VB and MS Excel Pin
geekgautam23-Jun-11 18:29
geekgautam23-Jun-11 18:29 
GeneralRe: VB and MS Excel Pin
geekgautam4-Jul-11 22:44
geekgautam4-Jul-11 22:44 
AnswerRe: VB and MS Excel Pin
Mycroft Holmes23-Jun-11 22:53
professionalMycroft Holmes23-Jun-11 22:53 
GeneralRe: VB and MS Excel Pin
geekgautam24-Jun-11 8:04
geekgautam24-Jun-11 8:04 
GeneralRe: VB and MS Excel Pin
Dalek Dave26-Jun-11 1:59
professionalDalek Dave26-Jun-11 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.