Problem with insert after upload

I’ve a form with three file upload field, and I have to store their name in DB with other informations.

dmx2

I don’t understand why the first part works (the file is loaded in the folder), but in the second part, when I should update the DB, I get this error:
(the permissions work in my opinion, since the file is uploaded correctly)

	
message	"Eccezione generata dalla destinazione di una chiamata."
lastAction	
name	"upload1"
module	"upload"
action	"upload"
options	
fields	
isFile	true
error	0
index	0
field	"allegato1"
name	""
type	"application/octet-stream"
size	0
path	"/public/richiesteclienti"
replaceDiacritics	true
replaceSpace	true
template	"{name}{_n}{ext}"
overwrite	false
createPath	true
throwErrors	false
asciiOnly	false
meta	
0	
name	"name"
type	"text"
1	
name	"path"
type	"text"
2	
name	"url"
type	"text"
3	
name	"type"
type	"text"
4	
name	"size"
type	"text"
5	
name	"error"
type	"number"
outputType	"array"
output	true
orgException	
ClassName	"System.Reflection.TargetInvocationException"
Message	"Eccezione generata dalla destinazione di una chiamata."
Data	null
InnerException	
ClassName	"System.UnauthorizedAccessException"
Message	"Accesso al percorso 'C:\\INTERNET\\eurosoft21\\public\\richiesteclienti' negato."
Data	null
InnerException	null
HelpURL	null
StackTraceString	"   in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   in System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   in System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)\r\n   in System.IO.FileStream..ctor(String path, FileMode mode)\r\n   in System.Web.HttpPostedFile.SaveAs(String filename)\r\n   in DMXzone.ServerConnect.Module.UploadModule.HandleUpload(JToken fields, JObject options, JArray uploaded) in d:\\Develop\\DMXzone Server Connect\\ASPNET_Source\\HTML5 File Upload\\Module\\UploadModule.cs:riga 87\r\n   in DMXzone.ServerConnect.Module.UploadModule.Upload(JObject options) in d:\\Develop\\DMXzone Server Connect\\ASPNET_Source\\HTML5 File Upload\\Module\\UploadModule.cs:riga 42"
RemoteStackTraceString	null
RemoteStackIndex	0
ExceptionMethod	"8\nWinIOError\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.IO.__Error\nVoid WinIOError(Int32, System.String)"
HResult	-2147024891
Source	"mscorlib"
WatsonBuckets	"AQAAAEMATABSADIAMAByADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHcAMwB3AHAALgBlAHgAZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
HelpURL	null
StackTraceString	"   in System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   in System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   in DMXzone.ServerConnect.App.Execute(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\App.cs:riga 414\r\n   in DMXzone.ServerConnect.ServerConnect.ExecuteAction(JToken action) in C:\\Develop\\Server Connect\\ASPNET_Source\\DMXzone Server Connect\\ServerConnect.cs:riga 235"
RemoteStackTraceString	null
RemoteStackIndex	0
ExceptionMethod	"8\nInvokeMethod\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.RuntimeMethodHandle\nSystem.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)"
HResult	-2146232828
Source	"mscorlib"
Community Page
Last updated: