Re: need some help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Kolda (ken.kolda_at_elliemae-nospamplease.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 08:23:48 -0800

As you mentioned, this is probably permission-related. So, when you say that
the file is not being saved, what is happening? On the line of code that
opens the file for writing, it should either succeed (in which case you
should see, at a minimum, a 0 byte file) or you'll get an exception. If
you've got an exception, what does it say? If no exception and it appears
that the write succeeds but there's no file, check to be sure you're writing
the file to the location you think you're writing it.

Ken

"Mike" <Mike@discussions.microsoft.com> wrote in message
news:45E6AC99-9CA4-48B5-BAA5-252AEA5D8C48@microsoft.com...
> I have an asp.net web page (vb.net) that talks to another pc via a port. I
> can connect to the pc fine. When i connect to the pc via the port, its
> suppose to return me a file and then save that file to the web server
under
> the web site directory. Well the file is not being saved to the folder.
When
> i run the app in debug mode i can see the file coming acrossed but not
being
> saved. Could this be a permission issue or something different? Has anyone
> ever done soemthing like this via a asp.net app? Now this same code for
this
> class works in a winform application
>



Relevant Pages

  • Re: Closing a App
    ... Looks like a security permission exception;) I would check that your app is ... > CodeBase: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Apply security permission in class library, fail to call it ou
    ... if there is a permission denied from the OS it should ... You can do something else - try to do a security ... can intercept where the exception comes from. ... to compile in a Debug mode and catch the permission at app level. ...
    (microsoft.public.dotnet.languages.csharp)
  • System.Net.WebPermission
    ... Got a security exception with my NTD winform app. ... Request for the permission of type ... Now, when i run this app from my local machine, it works great! ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: System.Security.SecurityException was unhandled
    ... The exception gave you the CLSID. ... the first thing to check might be whether the COM server ... assembly actually has the permission in question. ... When I execute the application I received and error message. ...
    (microsoft.public.dotnet.security)
  • Security Exception on 1&1 with SQL Server
    ... I have put the bin directory in the /gallerox folder as I have a re-director ... However, when I try to access the default.aspx page, I get back a security ... exception which is detailed at the bottom of this post. ... To grant this application the required permission ...
    (microsoft.public.dotnet.framework.aspnet)