srinivas
Guest
Posts: n/a
 
Access denied
Posted: 02-26-2004, 12:08 PM
hi,
i'm trying to create an instance of outlook application from my ASP.NET(VB.NET)
application.I added the Microsoft Outlook Library 10.0
It's giving the error 'Access Denied'
I created '{machinename}\ASPNET user and gave the write permissions to the user.

Can anyone help me...

Thanks in advance
Reply With Quote
Aaron Margosis [MS]
Guest
Posts: n/a
 
Re: Access Denied
Posted: 02-27-2004, 06:11 AM
If "e$" is an administrative share of your E: drive (like c$ is for your C:
drive), then only administrators can access it. Likewise, stuff under
system32 is generally not writable by non-administrative accounts.

HTH

-- Aaron



"mt" <anonymous@discussions.microsoft.com> wrote in message
news:5CFBBD1D-472A-4930-AD16-A1C6FB7C6DBE@microsoft.com...
> Hello,
>
> Here is my setup:
> IIS 6 on a Server 2003 machine
> .NET framework 1.1
>
> I'm trying to copy files from clients to my 2003 server using a
HtmlInputFile control.
>
> The code:
> Try
> 'upload the file from the client to the server folder
>
UploadFileInput.PostedFile.SaveAs("\\servername\e$ \folder\file.txt")
> Catch ex As Exception
> 'error handling stuff
> End Try
>
> IIS 6 is configured to NOT ALLOW anonymous access. It is set to use
windows authentication. The web.config file is set to use impersonation.
Authenticated users and the server's ASPNET account have full control over
the folder in which I'm trying to dump the files.
>
> When the attempt is made to shove the file into the target folder, I get
an "Access to the path "\\servername\e$\folder\file.txt" is denied." error.
The mscorlib.dll is the source of the error for whatever that is worth.
>
> I can get a step further into the process if I share the folder Then I get
this error:
> Access to the path "c:\windows\system32\inetsrv\file.txt" is denied
> I really rather use the first method and skip sharing.
>
> Any ideas? I'm sure it is something obvious.
>
> Regards,
> mt
>

Reply With Quote
Aaron Margosis [MS]
Guest
Posts: n/a
 
Re: Access denied
Posted: 02-27-2004, 06:14 AM
Microsoft Office applications are not supported when started server-side
like that. They are intended to be used on an interactive user desktop.
They have not been designed for the kind of scenario you describe.

What exactly do you need Outlook to do? There may well be another way to do
it without trying to start Outlook.exe.

-- Aaron


"srinivas" <srinivasasarma@bharatmail.com> wrote in message
news:e9120eda.0402260508.534f5757@posting.google.c om...
> hi,
> i'm trying to create an instance of outlook application from my
ASP.NET(VB.NET)
> application.I added the Microsoft Outlook Library 10.0
> It's giving the error 'Access Denied'
> I created '{machinename}\ASPNET user and gave the write permissions to the
user.
>
> Can anyone help me...
>
> Thanks in advance

Reply With Quote
dotnet
Guest
Posts: n/a
 
Re: Access denied
Posted: 02-27-2004, 10:38 AM


Thanks Aaron,

Basically i want to develop an intranet application where the user who
logs onto the intranet application shoulde be able to access the
Calendar info of the outlook that was installed on that particular
PC(where the user logged in).

I want to know whether this is possible in the web scenario.

Regards

Srinivas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote
Aaron Margosis [MS]
Guest
Posts: n/a
 
Re: Access denied
Posted: 02-27-2004, 03:23 PM
"on that particular PC" meaning the client machine where the browser is
running, or the server machine where the ASP .NET application is running?

If you just want to display the client's Outlook information in a web page,
you can use Outlook's ActiveX controls within the page - it's all rendered
on the client.


"dotnet" <anonymous@devdex.com> wrote in message
news:e1aUKZS$DHA.268@TK2MSFTNGP10.phx.gbl...
>
>
> Thanks Aaron,
>
> Basically i want to develop an intranet application where the user who
> logs onto the intranet application shoulde be able to access the
> Calendar info of the outlook that was installed on that particular
> PC(where the user logged in).
>
> I want to know whether this is possible in the web scenario.
>
> Regards
>
> Srinivas
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

Reply With Quote
dotnet
Guest
Posts: n/a
 
Re: Access denied
Posted: 03-01-2004, 04:48 AM


"on that particular PC" means the machine where the browser is running
...not the server machine.but can i update the calendar info of outlook
from my ASP.NET application??


Thanks
Srinivas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote
Aaron Margosis [MS]
Guest
Posts: n/a
 
Re: Access denied
Posted: 03-05-2004, 05:14 AM
Yes, you can use an Outlook component in the web page - parts of Office can
appear within a web page. It is rendered entirely on the client machine,
and the client communicates directly with Exchange (or other provider).

Another option is to use or incorporate Outlook Web Access (Exchange).

For further information, you should try an Office/Outlook newsgroup - it's
no longer a security question...


"dotnet" <anonymous@devdex.com> wrote in message
news:us7VkD1$DHA.4012@tk2msftngp13.phx.gbl...
>
>
> "on that particular PC" means the machine where the browser is running
> ..not the server machine.but can i update the calendar info of outlook
> from my ASP.NET application??
>
>
> Thanks
> Srinivas
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

Reply With Quote
Matthias H.
Guest
Posts: n/a
 
access denied
Posted: 01-24-2005, 11:29 AM
Hi guys,

I have a webservice. One function is started through a client. It was all
okay since today. I had to make some changes. I added a new function to the
web service. Then I made the proxi class new for the client. But now, when I
want to start the functions in the web service I always get a 401 (access
denied). I can initialize the proxy class but all function calls end with a
401.
I didn't changed any rights on the server. Only one new function...
Reply With Quote
Lam
Guest
Posts: n/a
 
access denied
Posted: 02-13-2005, 03:54 AM
I try to create a aspx page using c# in Visual studio .net
when I try to preview the page
it shows me the following error
-------------------------------------------------------
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\webapplication1\8c4f5b81\8bf31831" is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

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
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
---------------------------------------------

I try to add enable the IUSR_mycomp to have access the folder
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322"
but it still shows me the error

can anyone tell me what's wrong ?
thanks a lot




Reply With Quote
Martin Kulov
Guest
Posts: n/a
 
Re: access denied
Posted: 02-15-2005, 07:51 PM
"Lam" <javabeanbean@hotmail.com> wrote in message
news:#dfHkMxEFHA.3636@TK2MSFTNGP09.phx.gbl...
> I try to add enable the IUSR_mycomp to have access the folder
> "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322"
> but it still shows me the error
You have to give access for ASP.NET account to folder
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\". Why are you trying to set rights for IUSR_xxx account?


--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD


Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access With Unicode northernmonkey Coldfusion Database Access 10 03-04-2005 06:01 PM
MS Access and Password Error SRDKU Coldfusion Database Access 0 02-24-2005 03:51 PM
.NET Database access acidrain9 Dreamweaver AppDev 0 02-16-2005 08:24 PM
"Access Denied" ASP problem Riyad ASP Components 4 07-15-2003 12:43 AM
Cannot export as EPS because read or write access has been denied infieldflyball webforumsuser@macromedia.com Macromedia Freehand 0 07-07-2003 07:53 PM