Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Thursday, March 29, 2012

Performance problem: DataSet 2 database

Hi group,
i've got a major performance problem.

I've got a dataset with 1 datatable.
This datatable has 3 columns with the following datatypes:
string 18;
datetime
decimal

There are approx 150.000 records in the datatable.
I need to save the values to the database.
Saving the records using a sp is way to slow (12 minutes!)

Does anybody have a faster way?
Ive tried:
http://www.codeproject.com/cs/database/generic_OpenXml.asp?df=100&forumid=171911&select=1344569&msg=1344569
But this didnt work due to the datetime column.

Please help me on this one!!!

TIA

VisualSanderDon't load all 150,000 records at the same time. Is there a reason you need all 150,000 records in there? Can't you do it in batches of, say, 1000?

Monday, March 26, 2012

PerformanceCounter / System Up Time / TimeSpan

Hi all,
I'm having a bit of trouble with the following function...
Private Function GetSystemUpTime() As TimeSpan
' declare variables
Dim Result As TimeSpan
Dim PerformanceCounter As PerformanceCounter
' create new instances of our objects
PerformanceCounter = New PerformanceCounter("System", "System Up Time")
' populate
Result = TimeSpan.FromSeconds(PerformanceCounter.NextValue())
' return result
Return Result
End Function
For some reason I keep getting the value 0 (zero) for days, hours,minutes,
seconds etc - ie, I've tried this on 2 machines now and the result is always
the same. I've tried other counters using a similar method (for available
memory,application restarts etc) and they do come through...
Can anyone shed any light on this for me...
PS: I've had a bit of a look online and I'm aware of the environment.tick
thing but that has a problem over a value of 24 (goes to minus numbers) so
would prefer to use a PerformanceCounter object.
Regards
RobThe first call always returns zero, apparently... see the page here:
http://www.sitepoint.com/forums/pri...ad.php?t=376778
Regards,
Brett.
Rob Meade wrote:
> Hi all,
> I'm having a bit of trouble with the following function...
> Private Function GetSystemUpTime() As TimeSpan
> ' declare variables
> Dim Result As TimeSpan
> Dim PerformanceCounter As PerformanceCounter
> ' create new instances of our objects
> PerformanceCounter = New PerformanceCounter("System", "System Up Time"
)
> ' populate
> Result = TimeSpan.FromSeconds(PerformanceCounter.NextValue())
> ' return result
> Return Result
> End Function
> For some reason I keep getting the value 0 (zero) for days, hours,minutes,
> seconds etc - ie, I've tried this on 2 machines now and the result is alwa
ys
> the same. I've tried other counters using a similar method (for available
> memory,application restarts etc) and they do come through...
> Can anyone shed any light on this for me...
> PS: I've had a bit of a look online and I'm aware of the environment.tick
> thing but that has a problem over a value of 24 (goes to minus numbers) so
> would prefer to use a PerformanceCounter object.
> Regards
> Rob
"Brett Wiltshire" wrote ...

> The first call always returns zero, apparently... see the page here:
> http://www.sitepoint.com/forums/pri...ad.php?t=376778
Hi Bretty,
Thanks for your reply - you know - in the example I saw that had this code
it actually said about that - I assumed - clearly wrongly - that the
"NextValue()" thing meant - go get the next one because the first one is
always zero...
*sigh*
That's taken up 2 hours of my day searching the net just for a
misunderstanding :o(
Anyway, many thanks for your reply - I've for now just duplicated the line
that gets it and it works fine :o)
Thanks
Rob

PerformanceCounter / System Up Time / TimeSpan

Hi all,

I'm having a bit of trouble with the following function...

Private Function GetSystemUpTime() As TimeSpan

' declare variables
Dim Result As TimeSpan
Dim PerformanceCounter As PerformanceCounter

' create new instances of our objects
PerformanceCounter = New PerformanceCounter("System", "System Up Time")

' populate
Result = TimeSpan.FromSeconds(PerformanceCounter.NextValue( ))

' return result
Return Result

End Function

For some reason I keep getting the value 0 (zero) for days, hours,minutes,
seconds etc - ie, I've tried this on 2 machines now and the result is always
the same. I've tried other counters using a similar method (for available
memory,application restarts etc) and they do come through...

Can anyone shed any light on this for me...

PS: I've had a bit of a look online and I'm aware of the environment.tick
thing but that has a problem over a value of 24 (goes to minus numbers) so
would prefer to use a PerformanceCounter object.

Regards

RobThe first call always returns zero, apparently... see the page here:
http://www.sitepoint.com/forums/pri...ad.php?t=376778

Regards,
Brett.

Rob Meade wrote:
> Hi all,
> I'm having a bit of trouble with the following function...
> Private Function GetSystemUpTime() As TimeSpan
> ' declare variables
> Dim Result As TimeSpan
> Dim PerformanceCounter As PerformanceCounter
> ' create new instances of our objects
> PerformanceCounter = New PerformanceCounter("System", "System Up Time")
> ' populate
> Result = TimeSpan.FromSeconds(PerformanceCounter.NextValue( ))
> ' return result
> Return Result
> End Function
> For some reason I keep getting the value 0 (zero) for days, hours,minutes,
> seconds etc - ie, I've tried this on 2 machines now and the result is always
> the same. I've tried other counters using a similar method (for available
> memory,application restarts etc) and they do come through...
> Can anyone shed any light on this for me...
> PS: I've had a bit of a look online and I'm aware of the environment.tick
> thing but that has a problem over a value of 24 (goes to minus numbers) so
> would prefer to use a PerformanceCounter object.
> Regards
> Rob
"Brett Wiltshire" wrote ...

> The first call always returns zero, apparently... see the page here:
> http://www.sitepoint.com/forums/pri...ad.php?t=376778

Hi Bretty,

Thanks for your reply - you know - in the example I saw that had this code
it actually said about that - I assumed - clearly wrongly - that the
"NextValue()" thing meant - go get the next one because the first one is
always zero...

*sigh*

That's taken up 2 hours of my day searching the net just for a
misunderstanding :o(

Anyway, many thanks for your reply - I've for now just duplicated the line
that gets it and it works fine :o)

Thanks

Rob
Anyone know if its possible to pull the same information from different
machines on the network?

A new instance of PerformanceCounter seems to be able to take a machine
name - but I've tried this and get access denied errors...

I guess i some how need to be able to tell the servers in question that the
ASP.Net process model is allowed to access this?

Any ideas anyone?

My other thought was as a web service, so I have one page which drags the
info from the other servers, this would of course then rely on IIS being
present, not so good for my clustered SQL Servers! Open to suggestions...

Regards

Rob

Saturday, March 24, 2012

Permission denied creating directory

Hi,
I have a created a simple file upload asp.net web page which also creates di
rectories on the fly using the following code:
string fullpath = Server.MapPath(".\\..\\..\\" + path);
DirectoryInfo dir = new DirectoryInfo(fullpath);
if(!dir.Exists)
dir.Create();
Now the dir.Create() statement gives me a permission denied. The ASP.NET use
r has been giving full control to the directory and in IIS Admin the directo
ry has write permissions for scripts set. There is no problem in uploading t
he file to an already creat
ed directory which I find extremely weird!
What goes wrong ?
My OS is Windows XP using .NET framework 1.1. All the latest security patche
s are installed.Hi,
Does the "System" account have access?
Cheers,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com
Hi Christoffer:
One way to trouble shoot these types of problems is to enable auditing
and find out "who" is getting the access denied message.
See:
http://www.pluralsight.com/keith/bo...leauditing.html
and
http://www.pluralsight.com/keith/bo...fileaccess.html
Also, make sure the permissions apply to subfolders - click "Advanced"
and check the "Apply To" column.
HTH,
Scott
http://www.OdeToCode.com
On Mon, 21 Jun 2004 08:25:40 -0700, Christoffer Srensen
<ChristofferSrensen@.discussions.microsoft.com> wrote:

>Hi,
>I have a created a simple file upload asp.net web page which also creates d
irectories on the fly using the following code:
>string fullpath = Server.MapPath(".\\..\\..\\" + path);
>DirectoryInfo dir = new DirectoryInfo(fullpath);
>if(!dir.Exists)
> dir.Create();
>Now the dir.Create() statement gives me a permission denied. The ASP.NET user has b
een giving full control to the directory and in IIS Admin the directory has write pe
rmissions for scripts set. There is no problem in uploading the file to an already c
rea
ted directory which I find extremely weird!
>What goes wrong ?
>My OS is Windows XP using .NET framework 1.1. All the latest security patches are i
nstalled.
"Scott Allen" wrote:

> One way to trouble shoot these types of problems is to enable auditing
> and find out "who" is getting the access denied message.
> See:
> http://www.pluralsight.com/keith/bo...leauditing.html
> and
> http://www.pluralsight.com/keith/bo...fileaccess.html
Thanks for these links.

> Also, make sure the permissions apply to subfolders - click "Advanced"
> and check the "Apply To" column.
I have found what the problem was. The ASPNET user I added was from another
domain. Now I have added the local ASPNET user and it works.
The audit thing really helped. Thank you very much!
Kind regards,
Christoffer S?rensen

Permission denied creating directory

Hi,

I have a created a simple file upload asp.net web page which also creates directories on the fly using the following code:

string fullpath = Server.MapPath(".\\..\\..\\" + path);
DirectoryInfo dir = new DirectoryInfo(fullpath);
if(!dir.Exists)
dir.Create();

Now the dir.Create() statement gives me a permission denied. The ASP.NET user has been giving full control to the directory and in IIS Admin the directory has write permissions for scripts set. There is no problem in uploading the file to an already created directory which I find extremely weird!

What goes wrong ?

My OS is Windows XP using .NET framework 1.1. All the latest security patches are installed.Hi Christoffer:

One way to trouble shoot these types of problems is to enable auditing
and find out "who" is getting the access denied message.

See:
http://www.pluralsight.com/keith/bo...leauditing.html
and
http://www.pluralsight.com/keith/bo...fileaccess.html

Also, make sure the permissions apply to subfolders - click "Advanced"
and check the "Apply To" column.

HTH,

--
Scott
http://www.OdeToCode.com

On Mon, 21 Jun 2004 08:25:40 -0700, Christoffer Srensen
<ChristofferSrensen@.discussions.microsoft.com> wrote:

>Hi,
>I have a created a simple file upload asp.net web page which also creates directories on the fly using the following code:
>string fullpath = Server.MapPath(".\\..\\..\\" + path);
>DirectoryInfo dir = new DirectoryInfo(fullpath);
>if(!dir.Exists)
> dir.Create();
>Now the dir.Create() statement gives me a permission denied. The ASP.NET user has been giving full control to the directory and in IIS Admin the directory has write permissions for scripts set. There is no problem in uploading the file to an already created directory which I find extremely weird!
>What goes wrong ?
>My OS is Windows XP using .NET framework 1.1. All the latest security patches are installed.
"Scott Allen" wrote:

> One way to trouble shoot these types of problems is to enable auditing
> and find out "who" is getting the access denied message.
> See:
> http://www.pluralsight.com/keith/bo...leauditing.html
> and
> http://www.pluralsight.com/keith/bo...fileaccess.html

Thanks for these links.

> Also, make sure the permissions apply to subfolders - click "Advanced"
> and check the "Apply To" column.

I have found what the problem was. The ASPNET user I added was from another domain. Now I have added the local ASPNET user and it works.

The audit thing really helped. Thank you very much!

Kind regards,

Christoffer S?rensen

permissions creating web application

The following error seems to plague a lot of people. Who has encountered this and what solutions did you find.

"Unable to create web project <name>. The UNC share <UNC> does not exist or you do not have access.

One suggestion I have seen a few times is create the app on the local machine and then publish to the server. I want to create the app on my develoment server, not on my local machine and then publish to a production box.

I noticed a post from one of this forums "ASP.net team" users stating something along the lines of "creating a web application is a snap just go to New Project --> .net web application". I laughed big time at that. I am in my fourth day of attempting this "snap" process.It works fine, but you have to make sure you have the correct privelages.. From the error it seems you don't have write permissions maybe?
yeah it is a permissions issue. The question is permissions for who? You have my local machine with VS.net installed. I log into a domain so I am assuming that the VS application is running with that account information.

I then try to create an application on a server outside a firewall and not part of the domain. That IIS server is running the show as far as the virtual directory and web application is concerned so I assume the account is IUSR_machine.

That to me seems to be a potential source of this problem.
Check if you have permissions on the directory you are trying to write to. I believe this is just directory permissions you are dealing with here.

Permissions Error When Accessing Access Database

When I attempt to access a Microsoft Access database from my website, I
recieve the following error:

Server Error in '/' Application.
------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Take note that the description says that this can be fixed by modifying the
configuration file, which I am assuming is referring to the Web.config file.
I have successfully run this application on my machine using Visual Studio
2005's Development Server with the settings currently in the Web.config
file, so if modifying the Web.config file will fix it, what do I need to
change? Thanks.
--
Nathan Sokalski
njsokalski@dotnet.itags.org.hotmail.com
http://www.nathansokalski.com/On Jun 29, 2:50 am, "Nathan Sokalski" <njsokal...@.hotmail.comwrote:

Quote:

Originally Posted by

When I attempt to access a Microsoft Access database from my website, I
recieve the following error:
>
Server Error in '/' Application.
-----------------------*--
>
Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
>
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
>
Take note that the description says that this can be fixed by modifying the
configuration file, which I am assuming is referring to the Web.config file.
I have successfully run this application on my machine using Visual Studio
2005's Development Server with the settings currently in the Web.config
file, so if modifying the Web.config file will fix it, what do I need to
change? Thanks.
--
Nathan Sokalski
njsokal...@.hotmail.comhttp://www.nathansokalski.com/


Why do you use OleDb for MS Access?

http://msdn2.microsoft.com/en-us/li...connection.aspx
An application that creates an instance of the OleDbConnection object
can require all direct and indirect callers to have sufficient
permission to the code by setting declarative or imperative security
demands. OleDbConnection makes security demands using the
OleDbPermission object. Users can verify that their code has
sufficient permissions by using the OleDbPermissionAttribute object.
Users and administrators can also use the Code Access Security Policy
Tool (Caspol.exe) to modify security policy at the computer, user, and
enterprise levels. For more information, see Code Access Security and
ADO.NET.

http://msdn2.microsoft.com/en-us/library/0x4t63kb.aspx
I use OleDb for MS Access because of the namespaces that are included in the
..NET Framework (or that I have ever heard of from third parties)
System.Data.OleDb is the one that is supposed to be used when accessing a MS
Access database. The reason I am using MS Access for this website rather
than a higher quality database such as SQL Server or Oracle is because the
organization the site is for cannot afford anything else.

I have used System.Data.OleDb for MS Access databases in other sites I have
written, such as my personal website, with no problem, and any books that I
have read that use MS Access as their example database have as well, so I
know that it is the right one to use.

I have never had to deal with any of the objects you mention (except for
OleDbConnection, of course). Could you please either give me a code sample
or direct me to a site that gives one? Thanks.
--
Nathan Sokalski
njsokalski@.hotmail.com
http://www.nathansokalski.com/
"Alexey Smirnov" <alexey.smirnov@.gmail.comwrote in message
news:1183101114.868636.153110@.c77g2000hse.googlegr oups.com...
On Jun 29, 2:50 am, "Nathan Sokalski" <njsokal...@.hotmail.comwrote:

Quote:

Originally Posted by

When I attempt to access a Microsoft Access database from my website, I
recieve the following error:
>
Server Error in '/' Application.
-----------------------*--
>
Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
>
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
>
Take note that the description says that this can be fixed by modifying
the
configuration file, which I am assuming is referring to the Web.config
file.
I have successfully run this application on my machine using Visual Studio
2005's Development Server with the settings currently in the Web.config
file, so if modifying the Web.config file will fix it, what do I need to
change? Thanks.
--
Nathan Sokalski
njsokal...@.hotmail.comhttp://www.nathansokalski.com/


Why do you use OleDb for MS Access?

http://msdn2.microsoft.com/en-us/li...connection.aspx
An application that creates an instance of the OleDbConnection object
can require all direct and indirect callers to have sufficient
permission to the code by setting declarative or imperative security
demands. OleDbConnection makes security demands using the
OleDbPermission object. Users can verify that their code has
sufficient permissions by using the OleDbPermissionAttribute object.
Users and administrators can also use the Code Access Security Policy
Tool (Caspol.exe) to modify security policy at the computer, user, and
enterprise levels. For more information, see Code Access Security and
ADO.NET.

http://msdn2.microsoft.com/en-us/library/0x4t63kb.aspx
"Alexey Smirnov" <alexey.smirnov@.gmail.comwrote in message
news:1183101114.868636.153110@.c77g2000hse.googlegr oups.com...

Quote:

Originally Posted by

Why do you use OleDb for MS Access?


How else would you expect to use a Jet database within the .NET
Framework...?

--
http://www.markrae.net

Wednesday, March 21, 2012

Permissions Error When Accessing Access Database

When I attempt to access a Microsoft Access database from my website, I
recieve the following error:
Server Error in '/' Application.
----
--
Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Take note that the description says that this can be fixed by modifying the
configuration file, which I am assuming is referring to the Web.config file.
I have successfully run this application on my machine using Visual Studio
2005's Development Server with the settings currently in the Web.config
file, so if modifying the Web.config file will fix it, what do I need to
change? Thanks.
--
Nathan Sokalski
njsokalski@dotnet.itags.org.hotmail.com
http://www.nathansokalski.com/On Jun 29, 2:50 am, "Nathan Sokalski" <njsokal...@.hotmail.com> wrote:
> When I attempt to access a Microsoft Access database from my website, I
> recieve the following error:
> Server Error in '/' Application.
> ----=
--=AD--
> Security Exception
> Description: The application attempted to perform an operation not allowed
> by the security policy. To grant this application the required permission
> please contact your system administrator or change the application's trust
> level in the configuration file.
> Exception Details: System.Security.SecurityException: Request for the
> permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
> Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089' =
failed.
> Take note that the description says that this can be fixed by modifying t=
he
> configuration file, which I am assuming is referring to the Web.config fi=
le.
> I have successfully run this application on my machine using Visual Studio
> 2005's Development Server with the settings currently in the Web.config
> file, so if modifying the Web.config file will fix it, what do I need to
> change? Thanks.
> --
> Nathan Sokalski
> njsokal...@.hotmail.comhttp://www.nathansokalski.com/
Why do you use OleDb for MS Access?
http://msdn2.microsoft.com/en-us/li...edbconnection.=
aspx
An application that creates an instance of the OleDbConnection object
can require all direct and indirect callers to have sufficient
permission to the code by setting declarative or imperative security
demands. OleDbConnection makes security demands using the
OleDbPermission object. Users can verify that their code has
sufficient permissions by using the OleDbPermissionAttribute object.
Users and administrators can also use the Code Access Security Policy
Tool (Caspol.exe) to modify security policy at the computer, user, and
enterprise levels. For more information, see Code Access Security and
ADO.NET.
http://msdn2.microsoft.com/en-us/library/0x4t63kb.aspx
I use OleDb for MS Access because of the namespaces that are included in the
.NET Framework (or that I have ever heard of from third parties)
System.Data.OleDb is the one that is supposed to be used when accessing a MS
Access database. The reason I am using MS Access for this website rather
than a higher quality database such as SQL Server or Oracle is because the
organization the site is for cannot afford anything else.
I have used System.Data.OleDb for MS Access databases in other sites I have
written, such as my personal website, with no problem, and any books that I
have read that use MS Access as their example database have as well, so I
know that it is the right one to use.
I have never had to deal with any of the objects you mention (except for
OleDbConnection, of course). Could you please either give me a code sample
or direct me to a site that gives one? Thanks.
--
Nathan Sokalski
njsokalski@.hotmail.com
http://www.nathansokalski.com/
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:1183101114.868636.153110@.c77g2000hse.googlegroups.com...
On Jun 29, 2:50 am, "Nathan Sokalski" <njsokal...@.hotmail.com> wrote:
> When I attempt to access a Microsoft Access database from my website, I
> recieve the following error:
> Server Error in '/' Application.
> ----
-_--
> Security Exception
> Description: The application attempted to perform an operation not allowed
> by the security policy. To grant this application the required permission
> please contact your system administrator or change the application's trust
> level in the configuration file.
> Exception Details: System.Security.SecurityException: Request for the
> permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
> Take note that the description says that this can be fixed by modifying
> the
> configuration file, which I am assuming is referring to the Web.config
> file.
> I have successfully run this application on my machine using Visual Studio
> 2005's Development Server with the settings currently in the Web.config
> file, so if modifying the Web.config file will fix it, what do I need to
> change? Thanks.
> --
> Nathan Sokalski
> njsokal...@.hotmail.comhttp://www.nathansokalski.com/
Why do you use OleDb for MS Access?
http://msdn2.microsoft.com/en-us/li...y/0x4t63kb.aspx
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:1183101114.868636.153110@.c77g2000hse.googlegroups.com...

> Why do you use OleDb for MS Access?
How else would you expect to use a Jet database within the .NET
Framework...?
http://www.markrae.net

Permissions needed to run aspnet_regiis.exe -c

Hi,
I'm trying to install the client side scripts on a server, but I always get
the following error:
An error has occurred (0x80070005).
You must have administrative rights on this machine in order to run this
tool.
I am logged on as a domain admin on the server. Anyone know the specific
permissions needed to run the tool?
Thanks
Ericadmin on the box, not admin of the domain,
"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> Hi,
> I'm trying to install the client side scripts on a server, but I always
get
> the following error:
> An error has occurred (0x80070005).
> You must have administrative rights on this machine in order to run this
> tool.
> I am logged on as a domain admin on the server. Anyone know the specific
> permissions needed to run the tool?
> Thanks
> Eric
>
Well, obviously I am. When you join a server to a domain, the Domain Admin
group is automatically added to the local Administrators group. I verified
it to be sure that nothing had changed. I think it's really a permissions
problem somewhere.
"Mike" <scoobyDoo@.sbcglobal.net> wrote in message
news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
> admin on the box, not admin of the domain,
>
> "Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
> news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> get
specific
>
Obviously your not you could run it now.
Check again, just because your an admin on the domain does not make you a
admin on the local machine
I'm currently an admin on my local pc but not the domain.
"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:u8WqsvyGEHA.628@.TK2MSFTNGP10.phx.gbl...
> Well, obviously I am. When you join a server to a domain, the Domain
Admin
> group is automatically added to the local Administrators group. I
verified
> it to be sure that nothing had changed. I think it's really a permissions
> problem somewhere.
> "Mike" <scoobyDoo@.sbcglobal.net> wrote in message
> news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
always
this
> specific
>

Permissions needed to run aspnet_regiis.exe -c

Hi,

I'm trying to install the client side scripts on a server, but I always get
the following error:

An error has occurred (0x80070005).
You must have administrative rights on this machine in order to run this
tool.

I am logged on as a domain admin on the server. Anyone know the specific
permissions needed to run the tool?

Thanks

Ericadmin on the box, not admin of the domain,

"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> Hi,
> I'm trying to install the client side scripts on a server, but I always
get
> the following error:
> An error has occurred (0x80070005).
> You must have administrative rights on this machine in order to run this
> tool.
> I am logged on as a domain admin on the server. Anyone know the specific
> permissions needed to run the tool?
> Thanks
> Eric
Well, obviously I am. When you join a server to a domain, the Domain Admin
group is automatically added to the local Administrators group. I verified
it to be sure that nothing had changed. I think it's really a permissions
problem somewhere.

"Mike" <scoobyDoo@.sbcglobal.net> wrote in message
news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
> admin on the box, not admin of the domain,
>
> "Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
> news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> > Hi,
> > I'm trying to install the client side scripts on a server, but I always
> get
> > the following error:
> > An error has occurred (0x80070005).
> > You must have administrative rights on this machine in order to run this
> > tool.
> > I am logged on as a domain admin on the server. Anyone know the
specific
> > permissions needed to run the tool?
> > Thanks
> > Eric
Obviously your not you could run it now.
Check again, just because your an admin on the domain does not make you a
admin on the local machine
I'm currently an admin on my local pc but not the domain.

"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:u8WqsvyGEHA.628@.TK2MSFTNGP10.phx.gbl...
> Well, obviously I am. When you join a server to a domain, the Domain
Admin
> group is automatically added to the local Administrators group. I
verified
> it to be sure that nothing had changed. I think it's really a permissions
> problem somewhere.
> "Mike" <scoobyDoo@.sbcglobal.net> wrote in message
> news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
> > admin on the box, not admin of the domain,
> > "Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
> > news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> > > Hi,
> > > > I'm trying to install the client side scripts on a server, but I
always
> > get
> > > the following error:
> > > > An error has occurred (0x80070005).
> > > You must have administrative rights on this machine in order to run
this
> > > tool.
> > > > I am logged on as a domain admin on the server. Anyone know the
> specific
> > > permissions needed to run the tool?
> > > > Thanks
> > > > Eric
> >

Permissions needed to run aspnet_regiis.exe -c

Hi,

I'm trying to install the client side scripts on a server, but I always get
the following error:

An error has occurred (0x80070005).
You must have administrative rights on this machine in order to run this
tool.

I am logged on as a domain admin on the server. Anyone know the specific
permissions needed to run the tool?

Thanks

Ericadmin on the box, not admin of the domain,

"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> Hi,
> I'm trying to install the client side scripts on a server, but I always
get
> the following error:
> An error has occurred (0x80070005).
> You must have administrative rights on this machine in order to run this
> tool.
> I am logged on as a domain admin on the server. Anyone know the specific
> permissions needed to run the tool?
> Thanks
> Eric
Well, obviously I am. When you join a server to a domain, the Domain Admin
group is automatically added to the local Administrators group. I verified
it to be sure that nothing had changed. I think it's really a permissions
problem somewhere.

"Mike" <scoobyDoo@.sbcglobal.net> wrote in message
news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
> admin on the box, not admin of the domain,
>
> "Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
> news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> > Hi,
> > I'm trying to install the client side scripts on a server, but I always
> get
> > the following error:
> > An error has occurred (0x80070005).
> > You must have administrative rights on this machine in order to run this
> > tool.
> > I am logged on as a domain admin on the server. Anyone know the
specific
> > permissions needed to run the tool?
> > Thanks
> > Eric
Obviously your not you could run it now.
Check again, just because your an admin on the domain does not make you a
admin on the local machine
I'm currently an admin on my local pc but not the domain.

"Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
news:u8WqsvyGEHA.628@.TK2MSFTNGP10.phx.gbl...
> Well, obviously I am. When you join a server to a domain, the Domain
Admin
> group is automatically added to the local Administrators group. I
verified
> it to be sure that nothing had changed. I think it's really a permissions
> problem somewhere.
> "Mike" <scoobyDoo@.sbcglobal.net> wrote in message
> news:upsvkjyGEHA.3372@.TK2MSFTNGP09.phx.gbl...
> > admin on the box, not admin of the domain,
> > "Eric Caron" <ecaron@.nospam.quebecaffaires.com> wrote in message
> > news:e6H#X8wGEHA.712@.tk2msftngp13.phx.gbl...
> > > Hi,
> > > > I'm trying to install the client side scripts on a server, but I
always
> > get
> > > the following error:
> > > > An error has occurred (0x80070005).
> > > You must have administrative rights on this machine in order to run
this
> > > tool.
> > > > I am logged on as a domain admin on the server. Anyone know the
> specific
> > > permissions needed to run the tool?
> > > > Thanks
> > > > Eric
> >

Permissions Problem?

I'm getting the following error on my web application, and Im really confused to as what the problem could be. My application pool is running under network services.

System.IO.DirectoryNotFoundException: Could not find a part of the path "E:\".

Here is the code that is causing the problem. Any suggestions?

'lets create the directory incase it doesnt exist
If Directory.Exists(ConfigurationSettings.AppSettings("rootDir") & "extrapics\" & subDir1 & "\") = False Then
Directory.CreateDirectory(ConfigurationSettings.AppSettings("rootDir") & "extrapics\" & subDir1 & "\")
End If

Any tips are greatly appreciated..

Thanks,
MikeIs this running on your machine? Is E a hard drive, or is it a network drive?

Brian
Hi Brian, - thanks for the response.

The E: is in fact on my machine, yes. Other applications are successfully running on it as well

Thanks again
mike123
Did you try writing out the full path to see where it was going? Maybe there is an error in the path:

Response.Write(ConfigurationSettings.AppSettings("rootDir") & "extrapics\" & subDir1 & "\")

Also, is this web application going to always run on your machine? If not, shared paths \\machine instead of e:\ are preferred.

Brian
Hi Brian,

This web application is always going to run on machine yes. I initially thought it was an error in the path as well due to the error return message however I have double checked and the path is perfectly fine.

Any ideas?

Thanks again
mike123
Does the ASPNET account have the permissions, or if your app declares impersonation, does that account have permissions?

Brian
Hi Brian,

The ASPNET account only has read access. My app does not declare impersonation I believe because I did not set it up. It would be in the web.config if configured for this, correct?

Internet Guest Account and Network Services have all permissions except full control.

Is this setup wrong? My Application pool is running under network services

Thanks very much for your help,

Mike123
anyone got any thoughts on this ? .. im COMPLETELY stuck :(
Are you running windows 2003?
Have you tried granting read access to the "network service" account?

Regards
Fredr!k
Hi Fredrik2000,

Yes I am running windows 2003, and yes the network service has read access. I thought this might be the problem too, but does not seem to be.

Thanks for the help, any other suggestions are warmly welcomed :)

Mike123
is there any other account I can give permissions to test on?
Is e: your system drive?
Is there a policy for folder traversal (is that the name), what I mean is if your user has
correct rights to a subdirectory and not to one of the folders it is located in...

Regards
Fredr!k
Hi Fredrik2000,

Yes, the E: is a system drive.

As far as folder traversal (if thats what its called ;)), I set the permissions at the root level to help debug this with still no luck.

I just gave "Everyone" full control, and its still not working. I've debugged the values passed to the createdirectory procedure, and the path is correct.

I'm totally stuck on where to go with this . Any ideas?

Thanks again,
Mike123