From: Pedro on 1 Nov 2009 13:05 Hello everyone, I use deploytool to create a dll Now I?m using this dll in my code c#, i?m building a web site. The problem is: my project in Matlab use .mat files. so somewhere in code i need to call my dll. The problem is: i get constant this error: System.ApplicationException: MWMCR::EvaluateFunction error: Error using ==> save Unable to write file I35ziYNg.mat: permission denied. And in matlab i only do this: file1=load('file1.mat'); The problem i guess is that i need to enable permission to write/save this file on my disk. But i dont know where. Any help? Thanks
From: ImageAnalyst on 1 Nov 2009 13:11 On Nov 1, 1:05 pm, "Pedro " <xtinctio...(a)gmail.com> wrote: > Hello everyone, > > I use deploytool to create a dll > Now I?m using this dll in my code c#, i?m building a web site. > > The problem is: > > my project in Matlab use .mat files. so somewhere in code i need to call my dll. The problem is: i get constant this error: > > System.ApplicationException: MWMCR::EvaluateFunction error: Error using ==> save > Unable to write file I35ziYNg.mat: permission denied. > > And in matlab i only do this: > file1=load('file1.mat'); > > The problem i guess is that i need to enable permission to write/save this file on my disk. But i dont know where. > Any help? > Thanks ----------------------------------------------------- What's your operating system? Windows, linux, Snow Leopard? Do you have administrative / superuser priviledges? (Not that you should need them) Any idea why it's changing the name from file1.mat to I35ziYNg.mat? If you're loading a .mat file in MATLAB (in your m-file), what does your C# DLL have to do with anything???
From: Pedro on 1 Nov 2009 13:29 My operating system is Windows Vista Do you have administrative / superuser priviledges? Yes i?m working in my desktop, and i?m the unique user. Any idea why it's changing the name from file1.mat to I35ziYNg.mat? I really dont know. maybe because in settings of project in deploytool the assembly type is private and not shared, shared ask me for a key, but i dont have any key. Somebody told me that i should give write permissions to the NETWORK SERVICE account, i have already do that. But still give me error on permission denied. ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <cfb202fa-e850-423e-b3ca-2dea08040ee3(a)g31g2000vbr.googlegroups.com>... > On Nov 1, 1:05?pm, "Pedro " <xtinctio...(a)gmail.com> wrote: > > Hello everyone, > > > > I use deploytool to create a dll > > Now I?m using this dll in my code c#, i?m building a web site. > > > > The problem is: > > > > my project in Matlab use .mat files. so somewhere in code i need to call my dll. The problem is: i get constant this error: > > > > System.ApplicationException: MWMCR::EvaluateFunction error: Error using ==> save > > Unable to write file I35ziYNg.mat: permission denied. > > > > And in matlab i only do this: > > file1=load('file1.mat'); > > > > The problem i guess is that i need to enable permission to write/save this file on my disk. But i dont know where. > > Any help? > > Thanks > > ----------------------------------------------------- > What's your operating system? Windows, linux, Snow Leopard? > Do you have administrative / superuser priviledges? (Not that you > should need them) > Any idea why it's changing the name from file1.mat to I35ziYNg.mat? > If you're loading a .mat file in MATLAB (in your m-file), what does > your C# DLL have to do with anything???
From: ImageAnalyst on 1 Nov 2009 13:57 And the last question: "If you're loading a .mat file in MATLAB (in your m-file), what does your C# DLL have to do with anything???" Wouldn't it be strictly a MATLAB-only issue? Can you reproduce the issue just by pulling that one load() line out into it's own m-file?
From: Pedro on 1 Nov 2009 17:53 I only put a simple example, in fact i have 10 loads, and just not one! this is not just a matlab issue, because i use in my web site functions of m-files, and thesse funtions are encapsulated in a dll. Now the problem is, something that dont give me permission to write/save file and i dont undertand why when i disable UAC everthing is good, but when i put my web site in IIS appears this error :( ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <8999c2ae-2d78-4a3e-902d-905069a8bfea(a)m20g2000vbp.googlegroups.com>... > And the last question: "If you're loading a .mat file in MATLAB (in > your m-file), what does your C# DLL have to do with anything???" > > Wouldn't it be strictly a MATLAB-only issue? Can you reproduce the > issue just by pulling that one load() line out into it's own m-file?
|
Pages: 1 Prev: Euclidean distance Next: different results windows vs unix |