|
I am upgrading from Windows 2000 to Windows 2003, using .NET Framework 1.1 and using the CryptoAPI's RSA encryption for encrypting connection string.
I get the error:
"CryptoAPI cryptographic service provider (CSP) for this implmentation could not be acquired"
I checked msdn article http://support.microsoft.com/default.aspx?scid=KB;EN-US;322371[^]. It didn't help.
Also tried to give the account (under which ASP.NET is running) Full Control access to the files containing the keys the WSE will need to retrieve in the following folder:
C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
Didn't help either.
I am running out of ideas. Some articles suggested to create certificates. I am not sure how I go about doing that. Anybody run into a similar situation before. Any ideas or suggestions?
Vasudha Ghosal
Developer
Penske Logistics
|
|
|
|
|
I found the solution. It works only if both these are true.
1. the user identity under which the program runs has a profile under Documents and Settings.
2.Full Control access to the files containing the keys the WSE will need to retrieve in the following folder:
C:\Documents and Settings\AllUsers\Application Data\Microsoft\Crypto\RSA\MachineKeys
|
|
|
|
|
Hi,
I have a question, I need to set the custom font angle for italic font, how can I do this in GDI?
The default font angle is 15 degrees, but I need to set it to 10, 20, 25 . . .
Please, help!!! I cannot find decision
-- modified at 8:41 Wednesday 1st March, 2006
|
|
|
|
|
Im not too sure you can without defining your own font or converting the text to an image and modifying it there
|
|
|
|
|
There are two types of italic fonts. One is a normal font that is tilted, the other is a completely separate font for italics.
For the first type, the angle is specified in the font file. The author of the font has chosen that angle, and there is normally never any reason to use any other angle.
For the second type, the characters just looks tilted. The characters are drawn without tilting, as they already look the way they should, so there is no angle to change.
So there is no support in GDI for changing the angle.
---
b { font-weight: normal; }
-- modified at 19:28 Wednesday 1st March, 2006
|
|
|
|
|
I work with POST SCRIPT fonts, and I saw this functionality in one project, but I cannot understand how did they do that.
|
|
|
|
|
Hi,
I'm experimenting with .net 2 and VS2005 support for localization.
Using a sort of Resource Manager wrapper class I give the application the capability of switching in real-time from one language to another, knowing its own default language, ....
The application has a Tool/Settings/Language/... menu that is filled with the available localization languages (the main assembly built-in resources (<something>.resource) and localizations supported by the satellite support assemblies (<something>en-En.resource, <something>it-IT.resource), ...)
So, at startup, I would like the wrapper class to be able to enumerate (at resource, or at resource manager level, not at file system level) the actually available localization satellite assemblies.
Does anyone have an idea about how I can accomplish this little last task?
Of course, should not this possible, I will end in looking directly for the actually available resource files. Anyway I think that this should be an exposed feature of the ResourceManager class.
At the end I would like to post a little article about this work. I searched on CodeProject for Localization Issue and I found something general but nothing similar to what I'm trying to do.
Thanks in advance to everyone,
Luca
BiasoSoft Sw&Hw Engineering
Falconara (AN) ITALY
www.biasosoft.com
|
|
|
|
|
B"H
I am running into a little problem where I can not figure out how to seach for things on the web whether its articles, code, message board answers and find what I am looking for.
I always find aricles, etc. relating to .net ver1.1. when I an developing in ver2.0
this is a problem both on codeproject or if I use google.
this problem is particularly bad when it comes to winforms which where redone in a big way, particularly the data binding. and there seems to be a lack of information about the new systems or at least it is very hard to find.
please post your suggestions.
Thank you
Rabbi Moshe Plotkin
Director of Chabad of New Paltz
Lecturer in Computer Science
SUNY New Paltz
|
|
|
|
|
Just Go through this Link
http://www.asp.net/QuickStart/aspnet/Default.aspx"
U can search in microsoft sites for relavent information
Go to MS Elearning site We can get Kits that are available for paying one year subscription and even some are free E-learning Courses that are avialable
For Whidbay
All the Best
Senior Software Engineer
Nothing is Impossible Even Impossible says I'MPOSSSIBLE
|
|
|
|
|
Thanks for the response.
to clarify.
I know how to program...
I develop in .net ver2 microsofts specific help was useful when I was just starting.
for profesionals like us, there is a need for sites like code project to see articles, discoveries and tweeks of other profesionals who have gone in depth.
how do you search those sites either though google or a code project site serch and return only information that is truly relavent.
Moshe Plotkin
|
|
|
|
|
Hello, I am experiencing some weirdness with my OpenFileDialog filter. When I first open the dialog, the filter works and shows me the files with the filename scheme that I specify. However, if I select a different filter, then all the files disappear from the list. In addition, if I manually type the filter into the filename field and press Enter, then the files show up again. Here is a snippet where I create the dialog:
System::Void button_xmtr_Click(System::Object * sender, System::EventArgs * e)
{
OpenFileDialog* dlg = new OpenFileDialog();
dlg->Title = S"Choose Transmitter file";
dlg->InitialDirectory = S"input";
dlg->Filter = S"Transmitter files (xmtr*.dat)|xmtr*.dat|DAT files (*.dat)|*.dat|All files (*.*)|*.*";
if (dlg->ShowDialog() == DialogResult::OK) {
textbox_xmtr->Text = dlg->FileName;
}
}
Has anybody else run into this problem? Does anybody know of a workaround? Thanks.
--
Marcus Kwok
|
|
|
|
|
OK, now I'm really confused. I used this exact same code in a test app and it works perfectly there! It still does not work right in my main app though
--
Marcus Kwok
|
|
|
|
|
|
I'm using a native C++ extension DLL in a MFC 7.0 application.
The native DLL shows a dialog through DoModal using a dialog resource.
DoModal produces an assertion (at GetResourceHandle() and GetModuleHandle()),
How can I solve the problem?
|
|
|
|
|
I have created one dll called as mydll.dll and added following code for security.
Imports System.Security
Imports System.Security.Permissions
'<assembly: strongnameidentitypermissionattribute(securityaction.demand,="" _
'="" publickey:=" 0, 36, 0, 0, 4, 128, 0, 0, 148, 0, 0, 0, 6, 2, 0, 0, 0, 36, 0, 0, 82, 83, 65, 49, 0, 4, 0, 0, 1, 0, 1, 0, 59, 217, 201, 231, 35, 199, 134, 255, 210, 242, 120, 184, 173, 106, 168, 25, 233, 75, 135, 27, 198, 104, 243, 255, 116, 171, 230, 227, 14, 186, 202, 180, 166, 31, 199, 105, 19, 183, 203, 186, 83, 15, 8, 108, 71, 2, 27, 122, 149, 96, 237, 175, 87, 48, 90, 226, 156, 236, 188, 158, 21, 99, 189, 226, 1, 195, 186, 247, 5, 241, 110, 117, 214, 187, 67, 38, 78, 6, 225, 254, 186, 29, 238, 199, 138, 190, 183, 151, 173, 180, 134, 177, 105, 72, 57, 240, 11, 154, 12, 245, 30, 179, 238, 108, 120, 155, 8, 87, 23, 18, 82, 161, 8, 93, 255, 147, 70, 166, 219, 55, 3, 134, 79, 155, 236, 118, 33, 163 " )="">
Public Class MyClass1
Public Sub New()
MsgBox("new Class" & Now.Today)
End Sub
End Class
Now no one can access the code. but while development how can i remove the security.
Sachin D. Thamke
Pcs Technologn
|
|
|
|
|
Hi there!
I want to encrypt an XML-file using c#. So far everything works fine. Only the solution of saving the private Key in a safe place makes difficulties.
Heard about saving the private Key in the Registry, but for some reasons i can not find good examples on that. The only page i found is this (http://www.codinghorror.com/blog/archives/000501.html). I just don't get what he wants to tell me... Do i need a pfx-File... Eventhough i only want to save a private key...? How do i generate such a file?
Can anyone help?
|
|
|
|
|
Hello,
There's a problem that I encounter when trying to implement database transactions
over multiple webservices. The thing I try to accomplish is trying to make three
webservices (startTransaction, commitTransaction and rollbackTransaction).
The idea behind this is that i could start a transaction serverside, calling some
webservices which do some database updates and consecutive to that call the
commitTransaction or rollbackTransaction webservice to commit or rollback the transaction.
The thing I tried is to put the transaction object in the session but this didn't work.
So my question is, is the thing I want possible or isn't it the best practice to do ?
thanks in advance.
Greetings from Holland
|
|
|
|
|
I'm trying to using a component developed using .NET 2.0 with a .NET 1.1 Windoes Forms application, I'd installed the .NET 2.0 Framework on the machine but still when to add reference to the new component have the following Error message: "D:\NewComponent\Debug\myComponent.UI.Win.dll' is not a Microsoft .NET module."
do anybody have any idea how to solve this?
Mohammed Derbashi
|
|
|
|
|
You CANNOT use a .NET2 component in a .NET1 application without severe hacking (e.g. "patching" your own 1.1 CLR).
You could, however, try to recompile that component for 1.1 and make the necessary code-changes to make it work.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
created a sample VC++ Console Application with no line of code added to it, other than built in "Hello world print statement".
But when trying to run, the application it gives the following error.
------ Build started: Project: prjTest, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
Compiling...
resource.h
resource.h(4) : fatal error C1010: unexpected end of file while looking for precompiled header directive
AssemblyInfo.cpp
prjTest.cpp
Generating Code...
when i set to, "not using precompiled header" option, the program is working perffectly.
when i try "Create Precompiled header", option. It gives the following error.
------ Build started: Project: prjTest, Configuration: Debug Win32 ------
Compiling...
resource.h
resource.h(4) : error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file
AssemblyInfo.cpp
prjTest.cpp
can anyone please explain me on this.
invinJerry
|
|
|
|
|
hi all.
im trying to view contents of my xml file into a combox and textboxes and i wont to write/delete to it aswell. having no luck..plz help
|
|
|
|
|
Here is one method
First read xml into a dataset
like
DSet.ReadXml("somefile.xml");
Once you have got the dataset, you can bind it to a combobox or textbox.
|
|
|
|
|
Hello Folks,
I've got a simple newbies question:
How do I paint an Icon on my Form (Win CE, Framework 1.1, C#)?
I know how to do it with a bitmap but I need some "transparent" parts ....
Anyone care to help me out?
Best regards,
Marco
|
|
|
|
|
Hi guys,
I'm attempting to migrate a Java application to the .NET framework. This Java application uses some C++ code to provide functionality not present in either the Java framework library or the .NET framework. Java makes these calls via Java's JNI technology. For example:
// The C++ code:
JNIEXPORT jint JNICALL Java_xyzMedia_util_MyControl__1getSpectrumLength(JNIEnv *env, jclass jcl)
{
...
}
// The Java code that calls the native method:
native static int _getSpectrumLength();
How do I call this function using .NET's P/Invoke technology?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
|
|
|
|
|
Nevermind, I figured it out. In case anyone's interested, here's what had to be done:
extern "C" _declspec(dllexport) int _getSpectrumLength()
{
...
}
native static int _getSpectrumLength();
Obviously some of the C++ methods had to be modified to remove any dependencies on the JNIEnv* and jclass parameters passed to them under JNI, since they aren't passed to them using P/Invoke, but most of the work was quite simple and straightforward.
|
|
|
|
|