Ask a Question related to ASP.NET Web Services, Design and Development.
-
Rhydian Coombs via .NET 247 #1
Unable to read/write to .ini file using .dll in webservice
Hi,
I am new to asp.net. I am creating a web service. This I havedone. The web service calls one of our .dll's. This .dll usesthe GetPrivateProfileString and WritePrivateProfileStringwindows api's to edit a .ini file present on the web server.
My problem is that when the .dll is called from the web service,it fails to read or write to the .ini file. If however I use the.dll from a normal windows application it does. I guess there issome security problem, but after nearly a day trying I am at aloss at to what to do.
Can anybody help.
Many Thanks in advance.
Cheers,
Rhydian.
--------------------------------
From: Rhydian Coombs
-----------------------
Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
<Id>bEwoVSx+jEyDEhU+cQxV3A==</Id>
Rhydian Coombs via .NET 247 Guest
-
Read and write byte array into PDF file
Hello all I want to read and write byte array into PDF file.I can use "CosNewStream" to create CosObj contained byte array.But how can I get the... -
using SSL unable to write file
Hi everyone, I'm trying to send info with (https) SSL and my program comes to a halt when writing a file and sending an email. SSL was set up... -
File system get auto change from read-write to read-oly
I have a very strange file system with OS Redhat 7.2 The file system is read-write, but some how it randomly changes to read-only at any time.... -
read/write binary file
I'm writing a web service which will return a string containing the contents of a binary file (converted using System.Convert.ToBase64String). When... -
Read/Write IO on socket file descriptor
Hi all, I'm trying to perform read and write I/O on a socket file descriptor received for another process via a Unix Domain Socket. In trying to... -
erymuzuan #2
Re: Unable to read/write to .ini file using .dll in webservice
make sure apnet account has write access to the file. and the path is
correclty mapped.
Windows form application always run using the account that launch it,
But ASPNet run on a special low priveldge account, ASPNET for WInXP or
NETWORK SERVICE for Win2K3
regards
erymuzuan mustapa
Rhydian Coombs via .NET 247 wrote:> Hi,
>
> I am new to asp.net. I am creating a web service. This I have done. The web service calls one of our .dll's. This .dll uses the GetPrivateProfileString and WritePrivateProfileString windows api's to edit a .ini file present on the web server.
>
> My problem is that when the .dll is called from the web service, it fails to read or write to the .ini file. If however I use the .dll from a normal windows application it does. I guess there is some security problem, but after nearly a day trying I am at a loss at to what to do.
>
> Can anybody help.
>
> Many Thanks in advance.
>
> Cheers,
>
> Rhydian.
>
> --------------------------------
> From: Rhydian Coombs
>
> -----------------------
> Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
>
> <Id>bEwoVSx+jEyDEhU+cQxV3A==</Id>erymuzuan Guest



Reply With Quote

