Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   how can I copy page files inside an asp.net page code? (http://www.velocityreviews.com/forums/t95639-how-can-i-copy-page-files-inside-an-asp-net-page-code.html)

Carlos 01-29-2005 10:38 PM

how can I copy page files inside an asp.net page code?
 
Hi all,

I just tried the following: code inside an ASP .Net page

System.IO.File.Copy
("C:\\Inetpub\\wwwroot\\aspdesk\\indexd.htm","C:\\ Inetpub\\wwwroot\\aspdesk\
\index.htm");

and I got:

Access to the path "C:\Inetpub\wwwroot\aspdesk\indexcopy.htm" is denied.

Supposedly, I would be able to fix it by:

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.

But I did not find such user or group that has asp .net. I just wanted to
make a page the initial page for the website according to a condition that
is met. How else can I do that?

Thanks in advance,

Carlos.




All times are GMT. The time now is 12:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.