|
mischextra wrote:
System.Windows.Forms.resources, Version=1.0.5000.0, Culture=de-DE, PublicKeyToken=b77a5c561934e089
please select the assembly file manually.
It appears to a cultural problem. You dont specify if this a Reflector problem or a problem related to a assembly loaded in Reflector, which pretty much can throw the same message. Try setting your regional settings to neutral (US?).
<a TITLE="See my user info" href=http:
|
|
|
|
|
I'm new to CSharp, this question may seem stupid to you guys, really appreciate your answer.
I created 2 files in one projcet: a.cs, b.cs,
now a.cs will reference some class defined in b.cs, I don't see in C# you can do something like "include b.cs", nevertheless both build ok. How does a.cs know to get definition from b.cs?
|
|
|
|
|
The C# compiler will automaticalliy resolve all types in the input files. Thus you can have a.cs with C : B and A and b.cs with B : A, and it will still resolve without issues. If the source is already an assembly you just need to reference that assembly and all its types will be resolved to.
<a TITLE="See my user info" href=http:
|
|
|
|
|
when i tried to include "using System.Web.Services;" in a C# file,
got the following error:
"The type or namespace name 'Services' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)"
why is that?
Thanks!
|
|
|
|
|
just saw a message downstairs, i added reference it's ok now
|
|
|
|
|
Following is a description of the problem I am having with W2K3, COM+ and Serviced component:
MSDN says: Article Tile: Serviced Component Overview
On Windows 2000 platforms, COM+ always loads the most recent version of the common language runtime for the component you're creating. This means that on a computer with both .NET Framework version 1.0 and .NET Framework version 1.1 installed, .NET Framework version 1.1 is always loaded. As a workaround, you can create a COM+ dllhost.exe.configuration file that enables you to "lock" all applications to a specific version of .NET Framework. On Windows XP and Windows Server 2003 platforms, the Application Root Directory setting can be used to point COM+ to an appropriate directory for its configuration file.
The bit I am interested in is the Application Root Directory setting, I have tried to set this in an application but the properties which give me information from this file still look for the dllhost.exe.config in the System32 directory. I want to confirm that this feature is not working or that there is something else I need to do, to allow the above to be exposed/pulled through to my COM+ objects.
Anton Schoeman
|
|
|
|
|
I don't get Channel's (TCPChannel, HTTPChannel), is it just a new way of doing Client Server Applications????
Could some one shead some light on this for me... thanks
|
|
|
|
|
TcpChannel and HttpChannel are used for .NET framework's Remoting part. Remoting can be said to be one way of building client server apps, yes. Basically it's a mechanism for client and server to communicate. And they communicate through the channels (tcp or http) with messages passing through various sinks that can be used to encrypt/decrypt or processed in some other way.
|
|
|
|
|
|
I have Master-Detail datagrid. The detail datagrid is embedded in the Master datagrid. In the detail datagrid I want to implement paging ,sorting etc. I have addes the event handlers delegates manually. For some reason the pageindexchanged or sort events for the detail datagrid. Does anyone know of this behaviour? I saw a lot Master-Details datagrids on the internet, nobody seems to have implemented paging-sorting for details grid embedded within a datagrid. thanks
Madhuri Mittal
|
|
|
|
|
Hello everybody,
Perhaps someone has experienced the same problem as I had:
I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file.
Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient.
I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing.
tahnks in advance.
|
|
|
|
|
I don't think the setup stuff that comes with VS.NET can do this directly. You would have to create some custom actions which would then do the work of editing the .config file.
Some time last year I tried to create a custom action, but eventually gave up on it. I can't remember what I was trying to do though.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
I have .NET 1.0 (v1.0.3705) and .NET 1.1 (v1.1.4322), but my programs use .NET 1.0. I noticed the presence of the FrameworkVersion=v1.0.3705 environment variable on VS.NET command prompt, which I don't know how to change.
How do you make your programs use the .NET 1.1 version?
|
|
|
|
|
Your programs should automatically use the 1.1 version when it is available (unless you specify otherwise in a .config file). But you probably want to compile with 1.1 so you can use the new features as well
When you installed the SDK, a batch file was installed that sets up the environment variables. On my computer this is at: C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat. If you point a shortcut to: %comspec% /k C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat then when you open that shortcut you can compile with .NET 1.1.
VS.NET 2002 cannot target 1.1, it was hard coded to target 1.0; so unless someone "patches" it you are stuck with 1.0 for builds through it.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
How do you know your apps are using .NET Framework v1.0 and not v1.1?
There is one test I know for sure; With ADO.NET try to use the RowCount</count> property of a <code>SqlDataReader If that works then you are using 1.1 because it is not available in 1.0.
Also that VS.NET cmd prmpt env var: Do you have VS.NET 2003 installed? If not then you have 2002 installed and it will be setup with v1.0.3705 . Once you install 2003 then normally the cmd prmpt in the 2003 folder will be v1.1.
Paul Watson Bluegrass Cape Town, South Africa
Chris Losinger wrote:
i hate needles so much i can't even imagine allowing one near The Little Programmer
|
|
|
|
|
Paul Watson wrote:
try to use the RowCount property of a SqlDataReader
Have you tested this out at all yet performance wise? Just curious because I have not installed 1.1 yet. I wonder who much this effects the performance of the datareader.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I'm currently working on a Softwareproject where it must be possible that two applications could talk togeter (with RPC's and only local). My Project bases on the .NET Framework and I'm new to it (without the .NET Framework i would it implement with COM).
I read on a few Articles that Remoting is the "COM" in the .NET Framework. But theres one thing that bothers me: When I'd like to use Remoting only local, why must I allways declare a port?
Can I use Remoting without a port or is there any other possibility for implementing RPC's?
Thanks for any help in advance!
And sorry for my bad english...
Regards Stefan
|
|
|
|
|
I downloaded and installed the .NET Framework 1.1. I then downloaded the .NET Framework SDK 1.1 and installed. I then downloaded the SharpDevelop IDE and proceeded to use that.
I tried to create a C# Service. When I tried to compile the template C# Service it creates it informed me that the namespace "Installer" could not be found. I looked this up in the SDK documentation and it said that it was part of System.Configuration.Installer
Everything I read says this is where it is. I can't find this anywhere on my system. It wasn't installed. Does it get installed with something else other than the .NET Framework SDK?
Help please.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
OK, I created a new service, compiled it, and it gave the same error. Added this code to the top (w/ the other "using" statements):
using System.Configuration.Install;
Then it compiled correctly.
This declare should be in the template file, but it's not. I shall mention this to the #D team.
HTH,
J Dunlap
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
That did it. Thanks. Just starting to use .NET and C# finally! I'll keep in mind that the IDE is a little rough when it comes to certain things and try to learn to type.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
Okay the help file says it exists, and the Class Library Referance says it exists, but intellsense can't find it and it creates a compiler error . What am I doing wrong? did I miss a posting and fall off of the bus?
The Offending code --
<Bindable(False), _
Category("Appearance"), _
EditorAttribute(GetType(System.Web.UI.Design.UrlEditor), _
GetType(System.Drawing.Design.UITypeEditor)), _
DefaultValue(""), _
Description("This is the primary image we will display to the web surfer.")> _
Public Property MainImageUrl() As String
Get ...
Set() ...
End Property
The Compiler Error --
C:\Documents and Settings\jmcburney.WALNUTCREEK\My Documents\Visual Studio Projects\Garaibali\WebControlLibrary1\HoverButtons.vb(5): Namespace or type 'Design' for the Imports 'System.Web.UI.Design' cannot be found.
|
|
|
|
|
You need to reference the DLL...
In Solution Explorer, Right Click in references and click Add reference.
Add the System.Design.Dll
Pete
Insert Sig. Here!
|
|
|
|
|
Righto!
Why is all of the obvious stuff that eludes me?
It must be my VB heritage.
|
|
|
|
|
If I create a stored procedure that uses a temporary table, I cannot get a .NET data adapter to configure correctly for that stored procedure. A workaround is to create a stored procedure with the same data columns, generate a data adapter and dataset, then change the stored procedure called by the data adapter. Is there a better solution to this problem?
Thanx...
>>>-----> MikeO
|
|
|
|
|