Ciao, Ho un problema:alla pressione di un bottone devo generare un documento word e uso il seguente codice:
Dim objWord As Word.Application
objWord = New Word.Application()
'Creo un Nuovo Documento Word
Dim objDoc As Word.Document
objDoc = New Word.Document()
objWord.Visible = True
'Apro il Documento
objDoc = objWord.Documents.Add
'lo rendo attivo
objDoc.Activate()
objDoc.ActiveWindow.Selection.InsertAfter("Testo di Prova per vedere se creo in Documento")
'salvo il Documento
objDoc.Save()
Questo pero mi da un errore di permessi e più precisam ente il seguente:
Accesso Negato:
The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.
Non riesco a capire dove devo dare i permessi, sapete aiutarmi?
Grazie ciao.