Hallo Group,
ich bekomme manchmal bei 2 Arbeitsplätzen die Fehlermeldung ‘Es existiert kein Projekt mit dem angegebenen Namen’.
Beim nächsten Versuch klappt es meistens, spätestens nachdem der PC neu gestartet wurde.
Das Projekt (lst,lsv,lsp) selbst befindet sich auf einem gemappten Netzwerklaufwerk.
Sobald der Fehler kommt, prüfe ich mit FileExist ob die .Lst vorhanden ist (um ein Zugriffsproblem auf den Netzpfad auszuschliessen). FileExist liefert mir aber ein True zurück.
Umgebung:
LL17
Windows 7
Hier ein kleiner Auszug aus dem Code:
LL.Language = LlLanguage.German
LL.AutoProjectFile = project.repDir & sLayout & “.lst”
LL.AutoProjectType = LlProject.List
LL.Core.LlSetPrinterDefaultsDir(project.tmpDir) '// Druckereinstellungen speichern
LL.AutoShowSelectFile = False
LL.AutoDestination = LlPrintMode.MultipleJobs
LL.AutoShowPrintOptions = True
LL.Print(LL.AutoProjectType, LL.AutoProjectFile)
Catch LlException As ListLabelException
MessageBox.Show(LlException.Message + " bei " + project.repDir & sLayout & ".lst", "List & Label Meldung.", MessageBoxButtons.OK, MessageBoxIcon.Information)
If LlException.InnerException IsNot Nothing Then
MessageBox.Show(LlException.InnerException.Message, "List & Label Meldung.", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Try
If File.Exists(project.repDir & sLayout & ".lst") = True Then
MessageBox.Show("FileExist meldet aber TRUE", "List & Label Meldung.", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("FileExist meldet ebenfalls FALSE", "List & Label Meldung.", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Catch ex As Exception
MessageBox.Show("Fehler " + ex.Message + " bei FileExist Check.", "List & Label Meldung.", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Try
Hat jemand eine Idee?
Danke
Achim