|
What you've described, as far as I can tell, are satellite DLLs - they contain just the culture specific resource information. They go in subfolderes named after the langauge descriptor, e.g. en-gb, en-us, nl-nl, nl-be, es-es, es-mx, fr-fr, fr-be, fr-ca, etc.
If this is not what you are seeing then maybe you could post a summary of the pertinent files with a path.
|
|
|
|
|
it is..so there's no way to change the folder they're stored at?
|
|
|
|
|
sharpiesharpie wrote: so there's no way to change the folder they're stored at?
Not that I'm aware of. However, it has been a while since I did any localisation stuff and that was with .NET 1.1. From my recollection the satellite DLLs need to go in a specific location relative to the assembly they contain the resources for in order for the resources to be picked up. If the files are not there then .NET will revert to the next nearest version that it can find. e.g. The computer's culture is set as de-at (German as spoken in Austria) but there are no DE-AT satellite assemblies. It will revert to DE (generic German) if available. If not, then it will revert to the neutral culture which is the default your application was built with.
|
|
|
|
|
Ok then, thank you for your help.
Btw, is there any place in the site where i can get reviews and improvement ideas for my program? (Unfortunately I'm 16 years old...so I don't have any friends \ colleagues that know anything about programming)
|
|
|
|
|
Hi,
I'm having a complete nightmare trying developing a client and web services that uses a client certificates.
I've now got to the stage where I can browse the web service using the internet explorer with, this picks up the certificate and all seems to work well, however I can not reference the web service using visual studio 2003.
I'm have to use test certificates using makecert.exe, and to be honest i'm not sure if i'm doing this correctly.
Sorry for the length of this post but i'm trying to provide as much detail as possible. Ideally I would like to just have a batch file for the client and server that installs the required certificates as they way i'm currently doing it is very prone to error.
These are the steps I’ve been using which are very long and quite contrived.
The goal of this attempt is to
--- client computer = coClientComputer
--- server computer = coServerComputer
Step 1 - Generate a root certificate
Assume that a root certificate is required, the root certificate. This is to be placed in to “Trusted Certification Authorities\Certificates”
A trusted root certificate acts as an authority that can be used to sign other certificates, in this case both the server and client certificates.
makecert -r -pe -cy authority -n "CN=Test Root Authority" -sk "Test Root Authority" -sr CurrentUser -ss My -a Sha1 -sky signature TestRootAuthority.cer
Note that this will generate the certificate in the “current user\personal\certificates”, I use mmc to copy it to Local computer\Trusted Root Certification Authorities\Certificates.
Note that I have also used mmc to copy this certificate to the client machine also in the ‘Local computer\Trusted Root Certification’.
Step 2 – Generate a server certificate
makecert -b 01/01/2000 -e 01/01/2036 -pe -cy end -a sha1 -sky exchange -eku 1.3.6.1.5.5.7.3.1 -sy 12 -sp "Microsoft RSA SChannel Cryptographic Provider" -n "CN=coServerComputer" -sr localMachine -ss My -in "Test Root Authority" -is My -ir CurrentUser TestServer.cer
Step 3 - Attach Server SSL certificate to IIS
Opened IIS,
Select Directory security,
Server Certificate,
Assign existing certificate
Select ‘coServerComputer’ certificate, shown as intended purpose ‘server authentication’
Apply changes.
Step 4 - Generate a client certificate
makecert -b 01/01/2007 -e 01/01/2010 -pe -cy end -a sha1 -sky exchange -eku 1.3.6.1.5.5.7.3.2 -sy 12 -sp "Microsoft RSA SChannel Cryptographic Provider" -n "CN=coClientComputer" -sr CurrentUser -ss My -in "Test Root Authority" -is My -ir CurrentUser TestClient.cer
this is created in local computer \ personal \ certificates on
the machine where the command is executed, not on the client computer.
Use mmc to transfer this to client. Note I have copied this to
Current user \ personal \ certificates
and
Local computer \ personal \ certificates
Step 5 - Ensure can access web servers from client before enable SSL
Open Visual Studio on client computer and test with client application.
(Ensure that the URL of the web service is pointing to the correct server).
Ok.
Step 6 - Enable server certificate on server with 128 bit encryption
Open IIS on server
Select ‘cdfum_dbservice’ directory
Select properties and directory security
Select ‘edit’ of secure communications
Tick ‘require secure channel SSL’
Tick ‘require 128 bit encryption’
Click ok.
Step 7 - Connect to web server while SSL is enabled
First browse to
http://coServerComputer/CDFUM_DBService/DBService.asmx
Should get message ‘the page must be viewed over a secure channel’
Retry with https.
https://coServerComputer/CDFUM_DBService/DBService.asmx
This works ok…
Now set the new location of the web service in the client to point to the ‘https’ address.
This worked ok…
Step 8 - Install client certificate on client
The client certificate is already on the client machine; however it needs to be in file form for use with .NET.
User MMC
Select ‘current user\Personal\Certificates’
Select ‘coClientComputer’ certificate,
Right click, select ‘all tasks\ export’
Select ‘base 64 encoded x.509 (.cer)’ certificate.
Save to save directory as the test application
‘c:\CDFUM_WEBSERVICE_TESTER\TestClient.cer’
Step 9 - Amend iis to require certificate
Open IIS on server
Select ‘cdfum_dbservice’ directory
Select properties and directory security
Select ‘edit’ of secure communications
Tick ‘require client certificates’
Ok…
Step 10 - Test Web service from Client Browser
https://coServerComputer/CDFUM_DBService/DBService.asmx
ok
------------------------------------------
Step 10 - Test Web service from Client Browser
Ok – if have > 1 certificate in current user / personal the browser asks which certificate to use.
Step 11 - Test Web service from client application
Update web ref….
Just keep getting ‘access forbidden’
|
|
|
|
|
Hi,
I have a simple design where a IPC Client channel sits inside an asp.net
application. It all works great when I run it under VS 2005
however when I deploy the application using Publish and run it there,
i get the following error:
Failed To Connect to an IPC Port: Access is denied.
Any idea what could have caused this?
|
|
|
|
|
Two possibilities pop into mind: is your app published as a non-full trust application? Do you have some software that (such as ZoneAlarm or Norton Internet Security) that blocks/interferes with interprocess communication?
|
|
|
|
|
Thanks !
Its working fine when i remove the Anonymous access and set only the Integrated Windows authentication in the IIS configurations.
Sagayanathan John
|
|
|
|
|
Hi, I'm a Java programmer and I know a bit of C# (let's say all the fundamentals and perhaps a bit more), however, I still lack a lot of experience on the field of programming form-applications.
I have a concept for something of a Microsoft PowerPoint-like application. My problem is: I don't know how/where to start on building the framework for the GUI. When the program is running, the user should be able to drag and drop controls (text, buttons, ..) on the workspace, and my idea was to render them using reflection (does anyone know a 101 on this?).
Is there a good starter kit for building 'workspace' applications?
Your help is very much appreciated.
- A young C# programmer
|
|
|
|
|
Hi,
I dont see the need to use reflection for this.
You can build a simple draw application by having a panel (initially empty) and some
user interface operations (mouse clicks and drags, and/or keyboard input) that cause
new graphical objects to be created, positioned, moved, resized, etc. That would take
an internal representation of your drawing (say user-defined objects stored in an ArrayList),
a paint method that knows how to paint them all, and a Panel.Invalidate() every time you
change the drawing.
Similarly you can make something like a form designer inside some container (a Form, or
again a Panel): with similar user interface operations you can create, position, move,
resize, etc normal Controls. You may not need to hold your "form design" in an ArrayList
this time, you could simply add all new Controls to the Form.Controls or Panel.Controls
collection that is already there. Also the painting is automatic for all controls inside
the Controls collection, so the only thing not to forget is calling Invalidate().
You may find some examples on CodeProject, I suggest you search for "Form Designer".
Hope this helps.
|
|
|
|
|
Plz give me idea to create inline Function in C#.
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
|
|
|
Unquestionably similar to Timmy from south park that can only say Timmy
Maybe he's trying to communicate :P
|
|
|
|
|
markymark82 wrote: I want a file such as a text file to open for a user.
What exactly does that mean? Do you want to show the content in your application (in a text box or similar) or do you want to open the document in some external application?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Stefan Troschütz wrote: Do you want to show the content in your application (in a text box or similar) or do you want to open the document in some external application?
Hi,
I'd like the doc to open in its native external application if possible - so .txt docs open in notepad etc.
thanks
|
|
|
|
|
Use this method:
System.Diagnostics.Process.Start()
|
|
|
|
|
Ok, then you can simply call the static Process.Start method and pass in the absolute path of the document.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
thats excellent,
cheers guys
mark
|
|
|
|
|
insert into dashboarddealerlogin (logoutdatetime) values (GETDATE())
It is giving error : Cannot insert value null in logoutdatetime.
Anywaz, let it b.
Just c this :
private void logout_Click(object sender, EventArgs e)
{
conn.Open();
string strQury = "";
strQury = "insert into dashboarddealerlogin (logoutdatetime) values '(" + DateTime.Now + ")'";
SqlCommand cm = new SqlCommand(strQury, conn);
int n = Convert.ToInt32(cm.ExecuteScalar());
}
I have written this code in form1.cs n i have to write it here only.
Now i want to use this 'int n' in a function in form2.cs
funEntrylogin(m, i, tb_id.Text, tb_pswd.Text, DateTime.Now,n);
but here it is giving error on 'n'.
how can i do this?
thanx.
nekshan.
|
|
|
|
|
already replyed see belowed
|
|
|
|
|
hi,
i have created a editor using RichTextBox control.
how to create the editor line numbers.
e.g.
1.Abcd
2.abcd
3.efgh
4.ijkl
5.
6.
7.
8.so on....
Thank you
|
|
|
|
|
You need to write your own control to do this, the richeditbox won't do it, and making it do it, will be more hassle than it's worth.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Have you tried searching this site, I believe I have seen many articles regarding custom richtextbox controls.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|