How do I define the Assembly folder for an Application correctly?
I tried to use the registry Key:
HKLM/SOFTWARE/Microsoft/.NET Framework/AssemblyFolders/App-Name
and use the (Default) to set this to the path where the assemblies are located.
Some time ago this worked fine, but as I compiled a new Version and deployed it to a PC it wont...
How can I transform a website to be able to handle multi language (example : english, french, spanish)?
I do not like the resource file because I feel limited and it's pretty long to build the list. Do you have any suggestion?
Update
For the moment the best way we found is to use an XML file and with some Xpath et get values.
...
I have a Winform application build with C# and .Net 2.0. I have a textbox set with MultiLine.
The problem is when someone write text with multiple line (press few enters) and press my save button than close and load the form again. All the new line disappear (the text is there at least).
Example:
Line1
Line3
This will be if I save ...
When I created the project I'm trying to deploy I selected that I wanted to target .NET Framework 2.0. After deploying the project I try to brows to it and get and error page that shows:
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089...
I have a large int[] array and a much smaller int[] array. I want to fill up the large array with values from the small array, by repeat copying the small array into the large array until it is full (so that large[0] = large[13] = large[26] ... = small[0] etc.). I already have a simple method:
int iSource = 0;
for (int i = 0; i < dest...
I just got a dedicated server from a hosting company, and for some reason, it didn't have IIS installed.
It did have .Net 2.0, though.
So I installed IIS, but now my ASP.net websites won't work.
I just get a 404, no event log entries, nothing...
I noticed in the redistributable package information that:
"To access the features of ASP.N...
.NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft.
Is there a way to extract them from the .NET Framework 3.5 SP1 installation package?
...
SqlDataReader is a faster way to process the stored procedure. What are some of the advantage/disadvantages of using SQLDataReader?
...
Let's say I'm working on a little batch-processing console app in VB.Net. I want to be able to structure the app like this:
Sub WorkerMethod()
''//Do some work
Trace.WriteLine("Work progress")
''//Do more work
Trace.WriteLine("Another progress update")
''//...
End Sub
Sub Main()
''//Do any setup, like confirm the...
What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
...
Hello.
When we using a transation from System.Transactions (creating TransationScope for an instance) by default all Sql-connections (System.Data.SqlClient.SqlConnection) (but is't also the true for Oracle.DataAccess.OracleConnection) are enlisted on opening.
That's called auto-enlistment. Nice feature. But it can be turned off throught ...
I need to call a VBScript file (.vbs file extension) in my C# Windows application.
How can I do this?
There is an add-in to access a VBScript file
in Visual Studio.
But I need to access the script in code behind. How to do this?
...
I had a coworker see this the other day and I'm not quite sure why this happened. Can anyone explain it?
We have class A:
using System;
using System.Data;
public class A
{
protected DataTable _table;
public A()
{
}
}
We have class B that inherits from class A (assume there in the same namespace):
using System;
public cla...
I'm thinking of creating a generic message queue to handle various inter-process messages. (WCF is not an option at this point.) So, rather than have 10-15 different queues for specific messages I'd have 1 queue that is a 'catch-all'.
Obviously sending messages to this queue is a not a problem. Each recipient would listen to the qu...
The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :)
The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each version.
Is there a wa...
Hello world.
I am developing a small application which lists the contents from files of a given format. The file format acts as a template for describing binary data (think binary xml). This allows the clients that produces these files to store data in any way they want, so the interpretion of all types contained are not known. What I w...
This is a common problem for all the developer, i am looking for best solution to make windows forms UI responsive.
I have an Animated GIF file to show progress of my calcuation on windows form. I took a picture box control and placed animated gif into that. now when my calcuation starts - the animaged gif freeze. i want the reverse, t...
I'm stuck in .NET 2.0 Windows Forms.
It doesn't look like the ability to select multiple nodes doesn't exist in the standard TreeView control.
I'm trying to do this for context menu selection. So check boxes aren't an acceptable UI paradigm here.
What's the best way to provide that very necessary functionality?
...
We are trying to move from using SQL DMO to SMO in our COM+ based application, as we are dropping support for SQL Server 2000 and adding support for SQL Server 2008 in addition to SQL Server 2005.
I have been reading around on this, and found this particular quip on this microsoft forum:
"SMO is only supported in VB/C#.Net 2005. It r...
I receive this message (see image below) when I try to edit in debugging. This occur only in my Vista64bits OS, not in my XP computer. Why and what should I do?
Update
I found that I need to compile in x86 to be able to change value when debugging. So my question is WHY that I can't do it in x64?
...