|
| .NET configuration problem |
 |
Wed, 2 Apr 2008 10:52:52 +0000 |
Hi,
I have BIG BIG problem with .NET. I have an application on .NET 2.0 which
connects to a local database. On my machine there were no problems and
everything goes smooth. When I upload the application to the server ( windows is
x64 bit) I get an error which tells that the .NET functions are
restricted/disabled and I cannot connect to the DB. The connection string is
100% correct. I installed .NET SDK and set full access from these tools and
compiled the application with security "full trust" but still no
success. I have also a website on the same server which connects to the DB with
the same connection string successfully. The error occures when I try to start
executable files written on .NET 2.0. And this is the error:
1.
************** Exception Text **************
2.
System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen
(Connect()).]SQL Server does not exist or access denied.
3.
Invalid connection string attribute
4.
at System.Data.OleDb.OleDbConnectionInternal..ctor(Ol
eDbConnectionString constr, OleDbConnection connection)
5.
at System.Data.OleDb.OleDbConnectionFactory.CreateCon
nection(DbConnectionOptions options, Object poolGroupProviderInfo,
DbConnectionPool pool, DbConnection owningObject)
6.
at System.Data.ProviderBase.DbConnectionFactory.Creat
eNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup
poolGroup)
7.
at System.Data.ProviderBase.DbConnectionFactory.GetCo
nnection(DbConnection owningConnection)
8.
at System.Data.ProviderBase.DbConnectionClosed.OpenCo
nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
9.
at System.Data.OleDb.OleDbConnection.Open()
10.
at WindowsApplication1.Form1.button1_Click(Object sender, EventArgs e)
11.
at System.Windows.Forms.Control.OnClick(EventArgs e)
12.
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
13.
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
14.
at System.Windows.Forms.Control.WndProc(Message& m)
15.
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
16.
at System.Windows.Forms.Button.WndProc(Message& m)
17.
at System.Windows.Forms.Control.ControlNativeWindow.W
ndProc(Message& m)
18.
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
19.
20.
21.
************** Loaded Assemblies **************
22.
mscorlib
23.
Assembly Version: 2.0.0.0
24.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
25.
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
26.
----------------------------------------
27.
System.Windows.Forms
28.
Assembly Version: 2.0.0.0
29.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
30.
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e
089/System.Windows.Forms.dll
31.
----------------------------------------
32.
System
33.
Assembly Version: 2.0.0.0
34.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
35.
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
36.
----------------------------------------
37.
System.Drawing
38.
Assembly Version: 2.0.0.0
39.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
40.
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
41.
----------------------------------------
42.
System.Data
43.
Assembly Version: 2.0.0.0
44.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
45.
CodeBase:
file:///C:/WINDOWS/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.
Data.dll
46.
----------------------------------------
47.
System.Transactions
48.
Assembly Version: 2.0.0.0
49.
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
50.
CodeBase:
file:///C:/WINDOWS/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089
/System.Transactions.dll
51.
----------------------------------------
52.
53.
************** JIT Debugging **************
54.
To enable just-in-time (JIT) debugging, the .config file for this
55.
application or computer (machine.config) must have the
56.
jitDebugging value set in the system.windows.forms section.
57.
The application must also be compiled with debugging
58.
enabled.
59.
60.
For example:
61.
62.
63.
"true" />
64.
65.
66.
When JIT debugging is enabled, any unhandled exception
67.
will be sent to the JIT debugger registered on the computer
68.
rather than be handled by this dialog box.
PLS HELP!
|
| Post Reply
|
| Re: .NET configuration problem |
 |
Wed, 2 Apr 2008 15:18:44 +0000 |
Post the error, not the exception text. It sounds like you've done all the
wrong things to try and fix this.
Jeff
|
| Post Reply
|
| Re: .NET configuration problem |
 |
Wed, 2 Apr 2008 15:44:24 +0000 |
When I try to connect to the DB a new window appear that tells me that there is
unhandled exception ( the text from the 1st post ). I cannot get error number. I
do not have and cannot install any IDE on the server. If you have any idea
please share. I think I cannot get exact answer but at least a point to start.
thank you
|
| Post Reply
|
| Re: .NET configuration problem |
 |
Thu, 3 Apr 2008 06:03:09 +0000 |
No one from microsoft know how to fix this? Come on, this is your system...
|
| Post Reply
|
| Re: .NET configuration problem |
 |
Thu, 3 Apr 2008 16:37:06 +0000 |
Post the exact error message as it appears in your browser. Look in the event
logs. Nobody can help you fix this with the information you provide.
Jeff
|
| Post Reply
|
|
|
|
|
|
|
|
|
|