Problemer med Casche og dll
Jeg har følgende funktion som jeg forsøgr at kompile:Public function xmlcashe(xmlfil as string) as boolean
dim filnavn as string
filnavn = ConfigurationSettings.AppSettings("server") & ConfigurationSettings.AppSettings("write") & "xml/" & xmlfil & ".xml"
If (IsNothing(Cache(xmlfil))) Then
Dim myDataSet as New DataSet()
myDataSet.ReadXml(filnavn)
Cache.Insert(xmlfil, myDataSet, New CacheDependency(filnavn))
End If
end function
Men desværre får jeg følgende 2 fejl:
'Cache' is a type and cannot be used as an expression:
If (IsNothing(Cache(xmlfil))) Then
Reference to a non-shared member requires an object reference.
Cache.Insert(xmlfil, myDataSet, New CacheDependency(filnavn))
Er der nogen der kan hjælpe :-(
