473,387 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Application crashes using .NET 2.0 framework because of permission

I have an application (that has unmanaged code) and when I launch it without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike

Dec 22 '05 #1
8 6020
mike2036 wrote:
I have an application (that has unmanaged code) and when I launch it without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike


I believe if you wrap main with a try/catch block you can intercept the
message and give your user a "nice message". I could be wrong though.

Chris
Dec 22 '05 #2
Hi Chris,

I have try/catch handling in my mainline, but it never gets executed. If
this is any help, this what the event log looks like:

Source: .Net Runtime 2.0 Error
Event: 1000

Description:

Faulting application myapp.exe, version 5.0.2182.21680, stamp 43ab272f,
faulting module ntdll.dll, version 5.1.2600.2180, stamp 411096b4, debug? 0,
fault address 0x0004eafa.

-Mike
"I Don't Like Spam" wrote:
mike2036 wrote:
I have an application (that has unmanaged code) and when I launch it without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike


I believe if you wrap main with a try/catch block you can intercept the
message and give your user a "nice message". I could be wrong though.

Chris

Dec 22 '05 #3
Here is the code I use to "demand" full trust and exit gracefully if not.

HTH,
Greg

Option Strict On

Imports System.Data.SqlClient
Imports System.Security

Imports System.Threading

Module App

'The main entry point for the application.
<STAThread()> Public Sub Main()

Application.EnableVisualStyles()

Try
'Demand full trust permissions
Dim fullTrust As New
PermissionSet(Permissions.PermissionState.Unrestri cted)
fullTrust.Demand()

SubMain()
Catch ex As SecurityException
' Report that permissions were not full trust
MessageBox.Show("This application requires full-trust
security permissions to execute.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Catch ex As Exception
HandleUnhandledException(ex)
End Try

End Sub
Private Sub SubMain()

' // Setup unhandled exception handlers
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
OnUnhandledException
'AppDomain.CurrentDomain.UnhandledException += // CLR
' new UnhandledExceptionEventHandler(OnUnhandledExceptio n);

AddHandler Application.ThreadException, AddressOf
OnGuiUnhandedException
'Application.ThreadException += // Windows Forms
' new System.Threading.ThreadExceptionEventHandler(
' OnGuiUnhandedException);
'Application.EnableVisualStyles()
Try
SingletonApp.Run(New Login,
"8ca35a66-6e9a-41d4-a87d-d9755b1f88c4")
Catch ex As SingletonException
MessageBox.Show("Cannot start because a previous instance of
this application is already running!", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

End Sub
'// CLR unhandled exception
Private Sub OnUnhandledException(ByVal sender As Object, ByVal e As
UnhandledExceptionEventArgs)
HandleUnhandledException(e.ExceptionObject)
End Sub

' // Windows Forms unhandled exception
Private Sub OnGuiUnhandedException(ByVal sender As Object, ByVal e
As System.Threading.ThreadExceptionEventArgs)
HandleUnhandledException(e.Exception)
End Sub
Private Sub HandleUnhandledException(ByVal o As Object)
Dim ex As Exception = CType(o, Exception)

If Not (ex Is Nothing) Then ' // Report System.Exception info
' Debug.WriteLine("Exception = " + e.GetType());
' Debug.WriteLine("Message = " + e.Message);
' Debug.WriteLine("FullText = " + e.ToString());
Else ' // Report exception Object info
' Debug.WriteLine("Exception = " + o.GetType());
' Debug.WriteLine("FullText = " + o.ToString());
End If

My.Application.Log.WriteException(ex, TraceEventType.Error,
ex.ToString)

MessageBox.Show("An unhandled exception occurred and the
application is shutting down.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Environment.Exit(1) ' // Shutting down

End Sub
End Module
Public Class SingletonApp

Private Shared _guid As String

Shared m_Mutex As Mutex
Public Shared Sub Run(ByVal mainForm As Form, ByVal guid As String)
_guid = guid
If (IsFirstInstance()) Then
AddHandler Application.ApplicationExit, AddressOf OnExit
Application.Run(mainForm)
Else
Throw New SingletonException
End If
End Sub
Public Shared Function IsFirstInstance() As Boolean
m_Mutex = New Mutex(False, _guid)
Dim owned As Boolean = False
owned = m_Mutex.WaitOne(TimeSpan.Zero, False)
Return owned
End Function

Public Shared Sub OnExit(ByVal sender As Object, ByVal args As
EventArgs)
m_Mutex.ReleaseMutex()
m_Mutex.Close()
End Sub
End Class

Public Class SingletonException

Inherits System.ApplicationException

Public Sub New()
MyBase.New("Cannot start because a previous instance of this
application is already running!")
End Sub

Public Sub New(ByVal InnerException As Exception)
MyBase.New("Cannot start because a previous instance of this
application is already running!", InnerException)
End Sub

End Class
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
I have an application (that has unmanaged code) and when I launch it
without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile
the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike

Dec 23 '05 #4
Hi Greg,

Unfortunately this didn't fix the problem. When I test my app in the
development environment, I get an unhandled 'FileLoadException' before I ever
execute a line of code. So it looks to me like the loader checks with the
framework if the user has permissions and since they don't, an exception is
thrown and the app blows up. What *should* happen is if the loader or the
framework is going to deny the app's execution, it should produce a "nice"
message to the user saying something to the effect that they don't have
permissions. Is anybody else seeing this with .NET 2? I should note I'm
running this app from the network (via mapped drive).

-Mike
"Greg Burns" wrote:
Here is the code I use to "demand" full trust and exit gracefully if not.

HTH,
Greg

Option Strict On

Imports System.Data.SqlClient
Imports System.Security

Imports System.Threading

Module App

'The main entry point for the application.
<STAThread()> Public Sub Main()

Application.EnableVisualStyles()

Try
'Demand full trust permissions
Dim fullTrust As New
PermissionSet(Permissions.PermissionState.Unrestri cted)
fullTrust.Demand()

SubMain()
Catch ex As SecurityException
' Report that permissions were not full trust
MessageBox.Show("This application requires full-trust
security permissions to execute.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Catch ex As Exception
HandleUnhandledException(ex)
End Try

End Sub
Private Sub SubMain()

' // Setup unhandled exception handlers
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
OnUnhandledException
'AppDomain.CurrentDomain.UnhandledException += // CLR
' new UnhandledExceptionEventHandler(OnUnhandledExceptio n);

AddHandler Application.ThreadException, AddressOf
OnGuiUnhandedException
'Application.ThreadException += // Windows Forms
' new System.Threading.ThreadExceptionEventHandler(
' OnGuiUnhandedException);
'Application.EnableVisualStyles()
Try
SingletonApp.Run(New Login,
"8ca35a66-6e9a-41d4-a87d-d9755b1f88c4")
Catch ex As SingletonException
MessageBox.Show("Cannot start because a previous instance of
this application is already running!", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

End Sub
'// CLR unhandled exception
Private Sub OnUnhandledException(ByVal sender As Object, ByVal e As
UnhandledExceptionEventArgs)
HandleUnhandledException(e.ExceptionObject)
End Sub

' // Windows Forms unhandled exception
Private Sub OnGuiUnhandedException(ByVal sender As Object, ByVal e
As System.Threading.ThreadExceptionEventArgs)
HandleUnhandledException(e.Exception)
End Sub
Private Sub HandleUnhandledException(ByVal o As Object)
Dim ex As Exception = CType(o, Exception)

If Not (ex Is Nothing) Then ' // Report System.Exception info
' Debug.WriteLine("Exception = " + e.GetType());
' Debug.WriteLine("Message = " + e.Message);
' Debug.WriteLine("FullText = " + e.ToString());
Else ' // Report exception Object info
' Debug.WriteLine("Exception = " + o.GetType());
' Debug.WriteLine("FullText = " + o.ToString());
End If

My.Application.Log.WriteException(ex, TraceEventType.Error,
ex.ToString)

MessageBox.Show("An unhandled exception occurred and the
application is shutting down.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Environment.Exit(1) ' // Shutting down

End Sub
End Module
Public Class SingletonApp

Private Shared _guid As String

Shared m_Mutex As Mutex
Public Shared Sub Run(ByVal mainForm As Form, ByVal guid As String)
_guid = guid
If (IsFirstInstance()) Then
AddHandler Application.ApplicationExit, AddressOf OnExit
Application.Run(mainForm)
Else
Throw New SingletonException
End If
End Sub
Public Shared Function IsFirstInstance() As Boolean
m_Mutex = New Mutex(False, _guid)
Dim owned As Boolean = False
owned = m_Mutex.WaitOne(TimeSpan.Zero, False)
Return owned
End Function

Public Shared Sub OnExit(ByVal sender As Object, ByVal args As
EventArgs)
m_Mutex.ReleaseMutex()
m_Mutex.Close()
End Sub
End Class

Public Class SingletonException

Inherits System.ApplicationException

Public Sub New()
MyBase.New("Cannot start because a previous instance of this
application is already running!")
End Sub

Public Sub New(ByVal InnerException As Exception)
MyBase.New("Cannot start because a previous instance of this
application is already running!", InnerException)
End Sub

End Class
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
I have an application (that has unmanaged code) and when I launch it
without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile
the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike


Dec 23 '05 #5
My apps generally run from a network (via mapped drive) as well. That code
seems to work pretty well for me. If I forget to give a computer (I don't
bother being very fine grained) full Trust security for Local Intranet, then
my global error handling catches it as expected.

Are you starting your app via a Form or Sub Main?

Greg
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi Greg,

Unfortunately this didn't fix the problem. When I test my app in the
development environment, I get an unhandled 'FileLoadException' before I
ever
execute a line of code. So it looks to me like the loader checks with the
framework if the user has permissions and since they don't, an exception
is
thrown and the app blows up. What *should* happen is if the loader or the
framework is going to deny the app's execution, it should produce a "nice"
message to the user saying something to the effect that they don't have
permissions. Is anybody else seeing this with .NET 2? I should note I'm
running this app from the network (via mapped drive).

-Mike
"Greg Burns" wrote:
Here is the code I use to "demand" full trust and exit gracefully if not.

HTH,
Greg

Option Strict On

Imports System.Data.SqlClient
Imports System.Security

Imports System.Threading

Module App

'The main entry point for the application.
<STAThread()> Public Sub Main()

Application.EnableVisualStyles()

Try
'Demand full trust permissions
Dim fullTrust As New
PermissionSet(Permissions.PermissionState.Unrestri cted)
fullTrust.Demand()

SubMain()
Catch ex As SecurityException
' Report that permissions were not full trust
MessageBox.Show("This application requires full-trust
security permissions to execute.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Catch ex As Exception
HandleUnhandledException(ex)
End Try

End Sub
Private Sub SubMain()

' // Setup unhandled exception handlers
AddHandler AppDomain.CurrentDomain.UnhandledException,
AddressOf
OnUnhandledException
'AppDomain.CurrentDomain.UnhandledException += // CLR
' new UnhandledExceptionEventHandler(OnUnhandledExceptio n);

AddHandler Application.ThreadException, AddressOf
OnGuiUnhandedException
'Application.ThreadException += // Windows Forms
' new System.Threading.ThreadExceptionEventHandler(
' OnGuiUnhandedException);
'Application.EnableVisualStyles()
Try
SingletonApp.Run(New Login,
"8ca35a66-6e9a-41d4-a87d-d9755b1f88c4")
Catch ex As SingletonException
MessageBox.Show("Cannot start because a previous instance
of
this application is already running!", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

End Sub
'// CLR unhandled exception
Private Sub OnUnhandledException(ByVal sender As Object, ByVal e
As
UnhandledExceptionEventArgs)
HandleUnhandledException(e.ExceptionObject)
End Sub

' // Windows Forms unhandled exception
Private Sub OnGuiUnhandedException(ByVal sender As Object, ByVal
e
As System.Threading.ThreadExceptionEventArgs)
HandleUnhandledException(e.Exception)
End Sub
Private Sub HandleUnhandledException(ByVal o As Object)
Dim ex As Exception = CType(o, Exception)

If Not (ex Is Nothing) Then ' // Report System.Exception info
' Debug.WriteLine("Exception = " + e.GetType());
' Debug.WriteLine("Message = " + e.Message);
' Debug.WriteLine("FullText = " + e.ToString());
Else ' // Report exception Object info
' Debug.WriteLine("Exception = " + o.GetType());
' Debug.WriteLine("FullText = " + o.ToString());
End If

My.Application.Log.WriteException(ex, TraceEventType.Error,
ex.ToString)

MessageBox.Show("An unhandled exception occurred and the
application is shutting down.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Environment.Exit(1) ' // Shutting down

End Sub
End Module
Public Class SingletonApp

Private Shared _guid As String

Shared m_Mutex As Mutex
Public Shared Sub Run(ByVal mainForm As Form, ByVal guid As String)
_guid = guid
If (IsFirstInstance()) Then
AddHandler Application.ApplicationExit, AddressOf OnExit
Application.Run(mainForm)
Else
Throw New SingletonException
End If
End Sub
Public Shared Function IsFirstInstance() As Boolean
m_Mutex = New Mutex(False, _guid)
Dim owned As Boolean = False
owned = m_Mutex.WaitOne(TimeSpan.Zero, False)
Return owned
End Function

Public Shared Sub OnExit(ByVal sender As Object, ByVal args As
EventArgs)
m_Mutex.ReleaseMutex()
m_Mutex.Close()
End Sub
End Class

Public Class SingletonException

Inherits System.ApplicationException

Public Sub New()
MyBase.New("Cannot start because a previous instance of this
application is already running!")
End Sub

Public Sub New(ByVal InnerException As Exception)
MyBase.New("Cannot start because a previous instance of this
application is already running!", InnerException)
End Sub

End Class
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
>I have an application (that has unmanaged code) and when I launch it
>without
> 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
> 'FullTrust' permissions, it launches fine. Is there a way I can
> compile
> the
> application such that it won't even attempt to launch without correct
> permissions instead of just crashing? Thanks for any help.
>
> -Mike
>


Dec 23 '05 #6
Hi,

Try enabling the clickonce security settings. Open the project
properties. Open the security tab and check the enable clickonce security
settings.

Ken
-----------------------
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
I have an application (that has unmanaged code) and when I launch it
without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile
the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike

Dec 23 '05 #7
Sorry for the late reply. The app starts at Sub Main. I can see in the
debugger I never enter the mainline...I get the following error:

System.IO.FileLoadException was unhandled
Message: Could not load file or assembly 'MyApp, Version=5.0.2187.18914,
Culture=neutral, PublicKeyToken=1a097bd2d767e26f' or one of its dependencies.
Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)

In fact as a test I created a very simple app that's just a form with a
command button that says "hello world" when pressed...and I'm getting the
exact same error as above and I blow up when running outside the debugger.
This looks to me like I either have a corrupt .NET framework or there's a bug
in the framework. I'm going to try some additional tests. Anybody from
Microsoft reading this by chance? Or has anybody else seen similar behavior?

-Mike

"Greg Burns" wrote:
My apps generally run from a network (via mapped drive) as well. That code
seems to work pretty well for me. If I forget to give a computer (I don't
bother being very fine grained) full Trust security for Local Intranet, then
my global error handling catches it as expected.

Are you starting your app via a Form or Sub Main?

Greg
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi Greg,

Unfortunately this didn't fix the problem. When I test my app in the
development environment, I get an unhandled 'FileLoadException' before I
ever
execute a line of code. So it looks to me like the loader checks with the
framework if the user has permissions and since they don't, an exception
is
thrown and the app blows up. What *should* happen is if the loader or the
framework is going to deny the app's execution, it should produce a "nice"
message to the user saying something to the effect that they don't have
permissions. Is anybody else seeing this with .NET 2? I should note I'm
running this app from the network (via mapped drive).

-Mike
"Greg Burns" wrote:
Here is the code I use to "demand" full trust and exit gracefully if not.

HTH,
Greg

Option Strict On

Imports System.Data.SqlClient
Imports System.Security

Imports System.Threading

Module App

'The main entry point for the application.
<STAThread()> Public Sub Main()

Application.EnableVisualStyles()

Try
'Demand full trust permissions
Dim fullTrust As New
PermissionSet(Permissions.PermissionState.Unrestri cted)
fullTrust.Demand()

SubMain()
Catch ex As SecurityException
' Report that permissions were not full trust
MessageBox.Show("This application requires full-trust
security permissions to execute.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Catch ex As Exception
HandleUnhandledException(ex)
End Try

End Sub
Private Sub SubMain()

' // Setup unhandled exception handlers
AddHandler AppDomain.CurrentDomain.UnhandledException,
AddressOf
OnUnhandledException
'AppDomain.CurrentDomain.UnhandledException += // CLR
' new UnhandledExceptionEventHandler(OnUnhandledExceptio n);

AddHandler Application.ThreadException, AddressOf
OnGuiUnhandedException
'Application.ThreadException += // Windows Forms
' new System.Threading.ThreadExceptionEventHandler(
' OnGuiUnhandedException);
'Application.EnableVisualStyles()
Try
SingletonApp.Run(New Login,
"8ca35a66-6e9a-41d4-a87d-d9755b1f88c4")
Catch ex As SingletonException
MessageBox.Show("Cannot start because a previous instance
of
this application is already running!", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

End Sub
'// CLR unhandled exception
Private Sub OnUnhandledException(ByVal sender As Object, ByVal e
As
UnhandledExceptionEventArgs)
HandleUnhandledException(e.ExceptionObject)
End Sub

' // Windows Forms unhandled exception
Private Sub OnGuiUnhandedException(ByVal sender As Object, ByVal
e
As System.Threading.ThreadExceptionEventArgs)
HandleUnhandledException(e.Exception)
End Sub
Private Sub HandleUnhandledException(ByVal o As Object)
Dim ex As Exception = CType(o, Exception)

If Not (ex Is Nothing) Then ' // Report System.Exception info
' Debug.WriteLine("Exception = " + e.GetType());
' Debug.WriteLine("Message = " + e.Message);
' Debug.WriteLine("FullText = " + e.ToString());
Else ' // Report exception Object info
' Debug.WriteLine("Exception = " + o.GetType());
' Debug.WriteLine("FullText = " + o.ToString());
End If

My.Application.Log.WriteException(ex, TraceEventType.Error,
ex.ToString)

MessageBox.Show("An unhandled exception occurred and the
application is shutting down.", Application.ProductName,
MessageBoxButtons.OK, MessageBoxIcon.Error)

Environment.Exit(1) ' // Shutting down

End Sub
End Module
Public Class SingletonApp

Private Shared _guid As String

Shared m_Mutex As Mutex
Public Shared Sub Run(ByVal mainForm As Form, ByVal guid As String)
_guid = guid
If (IsFirstInstance()) Then
AddHandler Application.ApplicationExit, AddressOf OnExit
Application.Run(mainForm)
Else
Throw New SingletonException
End If
End Sub
Public Shared Function IsFirstInstance() As Boolean
m_Mutex = New Mutex(False, _guid)
Dim owned As Boolean = False
owned = m_Mutex.WaitOne(TimeSpan.Zero, False)
Return owned
End Function

Public Shared Sub OnExit(ByVal sender As Object, ByVal args As
EventArgs)
m_Mutex.ReleaseMutex()
m_Mutex.Close()
End Sub
End Class

Public Class SingletonException

Inherits System.ApplicationException

Public Sub New()
MyBase.New("Cannot start because a previous instance of this
application is already running!")
End Sub

Public Sub New(ByVal InnerException As Exception)
MyBase.New("Cannot start because a previous instance of this
application is already running!", InnerException)
End Sub

End Class
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
>I have an application (that has unmanaged code) and when I launch it
>without
> 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
> 'FullTrust' permissions, it launches fine. Is there a way I can
> compile
> the
> application such that it won't even attempt to launch without correct
> permissions instead of just crashing? Thanks for any help.
>
> -Mike
>


Dec 27 '05 #8
Hi Ken,

I tried this, to no avail. Thanks for the suggestion.

-Mike
"Ken Tucker [MVP]" wrote:
Hi,

Try enabling the clickonce security settings. Open the project
properties. Open the security tab and check the enable clickonce security
settings.

Ken
-----------------------
"mike2036" <mi******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
I have an application (that has unmanaged code) and when I launch it
without
'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set
'FullTrust' permissions, it launches fine. Is there a way I can compile
the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.

-Mike


Dec 27 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
13
by: Tosch | last post by:
I have a Win2003 server where I installed my VB.NET application, built with VS.NET 2002. My main application crashes before the first line of my code is executed with this error: "Memory at...
5
by: Loane Sharp | last post by:
Hi there I've got a hang of a problem ... I'm running the .NET framework (2.0.40903), SQL Server 2000 and SQL Express 2005 on Windows XP Pro on a pretty good and new IBM Thinkpad X41. Some...
1
by: Paul Wasowicz | last post by:
Configuration: Windows 2000 Server SP4 ..Net Framework 1.1 SP1 Microsoft Site Server 3.0 Problem: the following error messages start showing up in the EVENT LOG on the server every once in a...
0
by: Tom | last post by:
When I try to connect to a MS SQL Server 2000 my application always crashes (without message). In the event log I find the following error: Faulting application testapp.exe, version...
2
by: Bill Fallon | last post by:
I have a VS2005 VB.Net windows form application deployed to a share drive. The windows explorer security permissions for this application (.exe) file is set for Everyone with List Folder/Read Data...
60
by: jim | last post by:
I am looking for an application that will wrap my .Net application (and any needed .Net parts) into a single exe. I know of Thinstall ($4,000 for application and per copy fees for your exes) and...
1
by: Stefan Pascal | last post by:
Hello. I have a very strange problem on my system with running C# applications from a longer than usual (>127 chars) path. I was able to reproduce the following 2 cases: 1. Socket s = new...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.