Answer Questions
MartinMSJ RSA Encryption
Cant find much info about this one on the net, but my problem is that cant encrypt\decrypt long string, im getting "Key not vaild for use in specified state" error.The key size is 2048, but string over 200-250 chars just dont get encrypted.. Thanks all If memory serves me right, RSA works in blocks that must be smaller than the modulus by 11 bytes, for padding. This would mean that a modulus o ...Show All
Slicksim Large Result Sets and Datareader
I have a small vb.net application that I only need to log how long the query took to execute and the number of rows returned. Using the datareader it appears to be buffering the result set which is a problem for queries returning large result sets. Is there a way to limit the amount of data the datareader buffers MyODBCCommand.Prepare() ' MyOdbcRs defined as an OdbcDataReader MyOdbcRS = MyODBCCommand.ExecuteReader(CommandBehavior.Sin ...Show All
carroll.vance Cannot get remoting to work in IIS host
I want to use IIS to host some .NET remoting. I have a class library with one class in it which inherits marshalbyrefobject. I created a web config file as follows: <system.runtime.remoting> <application> <service> <wellknown mode="Singleton" type="RemotingServer.TestClass, RemotingServer" objecturi="TestClass.rem"/> </service> </application> &nb ...Show All
Bumba marshalling abstract base type pointer
I'm wrapping an unmanaged class libraries that has several class hierarchies. One of the class returns a pointer to an abstract base type. In C++, this is safe, since it can be cast up without worrying. How do I marshal this into the corresponding managed abstract type Lee Crabtree You will need an instance of the managed abstract type, which contradicts itself so you will have to instantiate a derived class ...Show All
jbval IPC Port 'Access is denied'
I've written a windows service that hosts an IPC Channel object on the web server. The calling process is hosted on the SAME machine in IIS (it happens to be a Http channel). It invokes the first IPC channel method and I get this error message: Unhandled Exception: System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: Access is denied. If I stop the service hosting the channel, I get a new erro ...Show All
wgreer any potential problems to this remoting solution?
Hi all, I have a remoting solution regarding several .NET applications at different PC. There is a multithreaded server application (windows service) installed in one PC. This app host a singleton, "never dying" remote object. There are several client apps (about 12) that resides in several other PCs. Each of these client apps has a remote proxy object reference of this server remote object. For solving the concurrency issue, the remote o ...Show All
Peter Morgenthaler Program running at HI memory usage, please HELP!!!!!
Hi, I'm using vb.net 2003. Something is not making sense while my program is running. While my program is running, and I open the Task Manager, the Memory Usage of my program start running sky-hi. Something isn't right, a program that's nearly 2MB in disk size, can't use 400MB RAM can someone please help me in sorting out the problem... Thank You Have a look at the singelton pattern. The ...Show All
WaterMary App.config problem
hi all, I've developed an application in which the connection string is provided in the app.config for dymanic changes to be made. but now the issue is the changes which i do for the sql connection string is not accepted as i thought. < connectionStrings > < add name = " DatabaseConnection " connectionString = " Server Name=netbiz/sqlexpress;Data Source=Net;Database=Airwaves;uid=sa; " /> &l ...Show All
Tramel Best Practices for n-tier on .net 2
Hello. I usually in asp.net 1.1 make my web application, then I created a class library in which one I put my objects like (persons, authors, books, etc). In another class library I put my Data Access Logic Layer, this one is used by the above class library. and the object class library is used by the web application. How this should be done in asp.net 2.0 I tried to make a class library but I cant add a web.config to that classlibrary to ...Show All
Serjic Shkredov Including an xml schema in to a dataset
Hello Everyone, I'm trying to include an xml schema which has a complex type into a dataset. After doing this, when I run the "MSDataSetGenerator" tool to generate the code-behind Designer class for the dataset, it throws an error "The Custom tool MSDataSetGenerator Failed". Unable to convert input xml file content to a dataset". From what I understand, the dataset is unable to find the xml schema(and complex type underneath it) and could n ...Show All
Julien Bonnier How to marshal array of structs within a struct?
Heya. I'm trying to use the IDSObjectPicker in .Net 2.0 but I'm not sure I have declared the structs correctly. Especially the part where a struct contains a variable array of other structs. For example, the DSOP_INIT_INFO ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/ad/ad/dsop_init_info.asp ) contains a variable array of DSOP_SCOPE_INIT_INFOs ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/ad/ad/dsop_sco ...Show All
coyoteworks error while attempting to insert new record in dataset through web service
Hello I designed an 3-Tier Application in Vs2003.NET I used ASP.NET web service which contains a component class called CustomerClass which contains an OracleDataAdapter and dataSet class called CustomerDs and there are a database in oracle 9i and a windows Application that contains a reference to a web service in one interface I have a datagrid that its datasource is a dataset assigned to a table called Customer and I want to ...Show All
EcnS Undefined data type: 'token'
I've got a committee designed xsd that I need to read and read xml data against it. I'm getting this error 'Undefined data type: 'token'' on the second line of this VS2005 VB code: Dim _ds As New DataSet _ds.ReadXmlSchema("long path to.xsd") The xsd I'm trying to read has 3 files, 2 imports. It looks like this: transcript <-- academic record <-- core The only place in the 3 files I find 'token' is in the core.xsd file. One of ...Show All
madscene io.networkstream encoding
Hello, I'd like to ask how can i set the current encoding property to the streamreader I mean i am receiving a stream from a pop3 server and i would encode it into central european charset. how can i do this Dim respond As String respond = read.ReadLine() and i want respond to be encoded in unicode... how can i solve this thnx for ya help hi, try to use utf8 encoding instead of ascii , unicode i guess you have to k ...Show All
Wilfried Peters Digital Signature with RSA and SHA-512
Hello, I am attempting to create a digital signature using the RSACryptoServiceProvider with a 2048 bit key as the signing algorithm and SHA-512 as the message digest algorithm. It appears that this is not possible using the default RSACryptoServiceProvider class provided with the framework. For instance, the following code generates an exception: <code> string plainText = "This is the text to encrypt"; RSACryptoServiceProvi ...Show All
