When using the client under IIS the application name is not available due to
security restrictions.
---------------------------------------------------------------------------------------------------
Key: DNET-213
URL: http://tracker.firebirdsql.org/browse/DNET-213
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.5.0 Beta 1
Environment: Windows vista SP1.
IIS.
Reporter: Gareth Goslett
Assignee: Jiri Cincura
In the method:
private DatabaseParameterBuffer BuildDpb(IDatabase db, FbConnectionString
options)
line +- 538, dpb.Append(IscCodes.isc_dpb_process_name,
Process.GetCurrentProcess().MainModule.FileName);
Generates a security exception and you can not connect.
I wrapped it in a try catch block and is working now.
#if (NET_CF)
// for CF we can implement GetModuleFileName from coredll
#else
try
{
dpb.Append(IscCodes.isc_dpb_process_name,
Process.GetCurrentProcess().MainModule.FileName);
}
catch(Exception)
{
dpb.Append(IscCodes.isc_dpb_process_name, "Probably IIS");
}
#endif
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider