Re: [Firebird-net-provider] VISTA Embedded Problem

2007-08-05 Thread Marvin Cook
On 8/4/07, Dean Harding [EMAIL PROTECTED] wrote:
  FirebirdSql.Data.FirebirdClient.FbException: operating system
  directive CreateFileMapping failed ---

 Starting from Windows XP SP2, any user who calls CreateFileMapping in a
 session other than session 0 needs the Create Global Objects permission
 (in Local Security Policy).

 This may not have been a problem for you on Windows XP because, usually, the
 first person to log on gets session 0. That's changed in Vista so that the
 first person to log gets session 1 (only services run in session 0 on Vista)
 -- which means this also not a problem for firebird server (which runs as a
 service), only embedded.

 So, I suspect that if you grant that user the Create Global Objects
 permission, log off and back on, the problem will be solved.

 Dean.



 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Firebird-net-provider mailing list
 Firebird-net-provider@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Dean,

I'll bet you are right, but what does this mean as more and more folks
move to VISTA, will all my users have to have admin rights to run any
software that accesses Firebird embedded?  As more and more businesses
are locking down admin rights, our software opportunities will be more
and more limited :(


Thanks for your insight.

Marv

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] VISTA Embedded Problem

2007-08-05 Thread Dean Harding
 I'll bet you are right, but what does this mean as more and more folks
 move to VISTA, will all my users have to have admin rights to run any
 software that accesses Firebird embedded?  As more and more businesses
 are locking down admin rights, our software opportunities will be more
 and more limited :(

This is something that you'll have to take up on the firebird developer's
list, I believe, since it's not really a problem with the .net provider as
such.

Note that you don't actually need Administrator rights, the Administrator
account has Create Global Objects by default (and since Local Security
Policy is not affected by UAC, you don't need to Run as Administrator),
but you can assign that right to a limited user and things are still quite
effective.

As I said, though, this is not just a Vista problem: the privilege was
introduced in Windows XP SP2. So it would also affect you running as a
limited user account in a fast-user switching environment (you can try it
out by logging in to Windows XP, then doing Switch User and logging in as
a limited user -- you will get the same error). It's just more prevalent in
Vista because nobody runs in session 0 any more.

Dean.



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


[Firebird-net-provider] VISTA Embedded Problem

2007-08-04 Thread Marvin Cook
Hi all,

I am developing a program using the embedded DB.  When I run it on
VISTA as a user who has admin rights, it runs OK.  When I run it as a
standard user, it fails to connect to the embedded DB.  If I point it
to a server which is running Firebird, it works for either user.  My
assumption is that the standard user is not able to load the
embeddeded dll.  Any thoughts on how to solve this problem?

TIA
Marv

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] VISTA Embedded Problem

2007-08-04 Thread Jiri Cincura
On 8/4/07, Marvin Cook [EMAIL PROTECTED] wrote:
 Hi all,

 I am developing a program using the embedded DB.  When I run it on
 VISTA as a user who has admin rights, it runs OK.  When I run it as a
 standard user, it fails to connect to the embedded DB.  If I point it
 to a server which is running Firebird, it works for either user.  My
 assumption is that the standard user is not able to load the
 embeddeded dll.  Any thoughts on how to solve this problem?

Any exception? Any message in event log? Where's the fbembed.dll located?

-- 
Jiri {x2} Cincura (Microsoft Student Partner)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] VISTA Embedded Problem

2007-08-04 Thread Marvin Cook
Jiri,

The fbembed.dll is in the executable folder and I am using the new
ClientLibrary connection string builder data element to point to it.
Works fine if my development account runs it.

With a regular user, the program throws an exception.  The details are:

** Exception Text **
FirebirdSql.Data.FirebirdClient.FbException: operating system
directive CreateFileMapping failed ---
FirebirdSql.Data.Common.IscException: Exception of type
'FirebirdSql.Data.Common.IscException' was thrown.
   at FirebirdSql.Data.Client.Embedded.FesDatabase.ParseStatusVector(Int32[]
statusVector)
   at 
FirebirdSql.Data.Client.Embedded.FesDatabase.Attach(DatabaseParameterBuffer
dpb, String dataSource, Int32 port, String database)
   at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
   --- End of inner exception stack trace ---
   at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
   at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()
   at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()
   at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
   at Infotech.TDBQuery.Generator(String GenName, Int32 pitch) in
D:\Work\InfotechLib\InfotechFB.cs:line 154
   at Infotech.TDBQuery.get_NewRid() in
D:\Work\InfotechLib\InfotechFB.cs:line 181
   at TimeCardNet.InfotechConnectionStringBuilder.btnTest_Click(Object
sender, EventArgs e) in
D:\Work\TimeCardNet\TimeCardNet\InfotechConnectionStringBuilder.cs:line
150
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message m, MouseButtons
button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message m)
   at System.Windows.Forms.ButtonBase.WndProc(Message m)
   at System.Windows.Forms.Button.WndProc(Message m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)


** Loaded Assemblies **
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

TimeCardNet
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Work/TimeCardNet/TimeCardNet/bin/Debug/TimeCardNet.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: 
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] VISTA Embedded Problem

2007-08-04 Thread Marvin Cook
Jiri,

I installed it on XP and installed it with the same normal user that
failed in VISTA.  Everything worked as expected.  Something in VISTA
is causing the problem.

I love Micro$oft :(

Thanks for you interest -- and all the work you do on the Provider.

Marv

On 8/4/07, Jiri Cincura [EMAIL PROTECTED] wrote:
 On 8/5/07, Marvin Cook [EMAIL PROTECTED] wrote:
  Jiri,
 
  The fbembed.dll is in the executable folder and I am using the new
  ClientLibrary connection string builder data element to point to it.
  Works fine if my development account runs it.
 
  With a regular user, the program throws an exception.  The details are:
 
  ** Exception Text **
  FirebirdSql.Data.FirebirdClient.FbException: operating system
  directive CreateFileMapping failed ---

 This could be a hint. I've never has this environment, so I have no deep 
 detail.

 --
 Jiri {x2} Cincura (Microsoft Student Partner)
 http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Firebird-net-provider mailing list
 Firebird-net-provider@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider