-
- Pack in StructLayout Attribute
by milex
- 3 Replies
- Last post
by nobugz
- 1MSDN says Pack in StructLayout can be 0, 1, 2, 4, 8, 16, 32, 64, or 128 , which is the default value when i donot set Pack explicitly 2And when i use WIN32 api , sometime i need use struct as parameter, which value should i use 0 or other 3In vc++, the max alignment value is 16, when the above value use for
-
- Object Factories with Lazy Loading in C#
by cyberjoe2
- 1 Replies
- Last post
by cverdon
- I'm looking for a lazy loading solution in c#.
The idea is, to have a kind of object factory, which will be responsible for creating my entity objects. When a property of such an object is accesed and it is not yet loaded, the factory (or a magic watcher) will be able to pause the execution flow for a while (maybe that step is not necessary) load the missing data (don't know how to specify, fro
-
- cannot find my application settings
by bucz
- 4 Replies
- Last post
by Tall Dude
- I use Properties.Settinfs.Default.Save() but I cannot find where it saves to. I is written that "These settings are saved in the User.config file." but configuration files in .exe directory seems to be unchanged, yet settings are saved somewhere (I see them in my program).
-
- Missing namespace...
by JaimePR85
- 3 Replies
- Last post
by Caddre
- Hello,
I cannot import the following namespace:
System.Security.Cryptography.Xml
What I'm trying to do obiously is to encrypt an xml file, but in order to do such thing, I requiere that namespace ( according to many examples i've seen on the web)
Do I need to install something else
Here's the info of VS2005:
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.
-
- How to Override HTTPHeaders in WebBrowser.Navigate method
by S.Jan
- 1 Replies
- Last post
by rarerules
- Hi,
I am using WebBrowser.Navigate method in my project. I need to override the default HTTP headers that is used by this web browser .
WebBrowser1.Navigate( urlString As String , targetFrameName As String , postData As Byte (), additionalHeaders As String )
I need to change some headers especially the "Cookie" values in my modified HTTP Request that i want to send to a we
-
- help with ODBC connection to Access from .Net 2.0
by KevSD
- 3 Replies
- Last post
by Paul P Clement IV
- Hi there.
I'm trying to connect from .Net 2.0 to a remote Access database. (not my choice,by the way)
So everything works well enough on my laptop. But when i try it on the production box, i get a connectivity error (below). I checked the ODBC settings and they look the same between my box and the production box. And the web.config is the same too.
WHAT am i missing Any help is appre
-
- DOM loadXML() fails under windows mobile 2003 - any ideas?
by HugoC
- 0 Replies
- Last post
by HugoC
- Hello,
Take the following code for example. This runs no problem in IE 6.0, but when I run it under Windows Mobile 2003 is fails to load the document.
var dom = new ActiveXObject( "Microsoft.XMLDOM" );
dom.async = false ;
dom.resolveExternals = false ;
if (dom.loadXML( someXMLData )
{
// do something
}
else
{
// ends up in here everytime....
-
- 64 Bit where to get info
by msmidt123
- 4 Replies
- Last post
by Chuck the Code Monkey
- I am not sure where to find information whether my machine is 32 bit or 64. Where can I find that
-
- User credentials delegation from IIS on WinXP to SQL Server on Win2003SRV fails
by kkos
- 11 Replies
- Last post
by Caddre
- Problem:
I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server cannot reside on the same machine and a stand alone web server is ideal as the website needs to access multiple SQL Servers. IIS is set to Integrated Windows Authentication. The an
-
- How to sort arraylist of type 'Pair'
by wannabe_coder
- 1 Replies
- Last post
by JocularJoe
- How do I sort an arraylist of type Pair(float num1, float num2) by say num1 What's the most efficient method for accomplishing this Do I need to implement the IComparer interface Thanks in advance
-
- SOS! WHY same webservice async call on a client box (client001) didn't fire 'Completed event, but fired on another client box
by James565807
- 11 Replies
- Last post
by James
- Hi,
I encounted a very strange problem.
I tried to invoke a webservice method by async method on a client box (client001) . What i got was the Completed event didn't fire at every time. however, I tried the same code on another client box (client002) , and on this box, the Completed event did fire every time.
Then, I also tried to call the same webservice by sync way on these 2
-
- How can I generate alternative to foreach Loop using codeDom?
by vbjunkie
- 3 Replies
- Last post
by baskaran
- Hi guys,
for some good reason I dont remember the CodeDom cannot generate for each statement like the one below:
foreach (DataRow row in dt.Rows) { myList.Add(ConvertToObject(row)); }
What is the alternative and How Can I generate it
thanks a lot in advance
-
- I can't get WebResponse from WebRequest on one server but I get it on others
by Gmukwewa
- 6 Replies
- Last post
by RizwanSharp
- Hi
I'm having a problem using webresponse on one server but my code works well on other servers. I get the following error:
The underlying connection was closed: The remote name could not be resolved. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.HttpWebRequest.GetResponse() at magrosa.PubVars.ResizeImage(I
-
- Negating multi-character strings
by joachimvb
- 1 Replies
- Last post
by tonn
- Hi,
I'm parsing an HTML document using regexes. The bulk of the document is what is visually a table but for some reason is displayed using all kinds of
and tags instead.
I want to make each row of the table one match, with the different s in that row being the captured groups.
the structure there is something like this (I don't have the HTML doc handy on this computer,
-
- problem excrypting connection string
by miscal
- 0 Replies
- Last post
by miscal
- Hi,
Please check out the following link:
http://www.codeguru.com/csharp/.net/net_security/encryption/article.php/c9699__1/
well, here is a part of the article:
Add a reference to System.Configuration.dll.
Add an Imports System.Configuration statement.
Invoke ConfigurationManager.ConnectionStrings( "full path to connection string" ).ConnectionString to rea
-
- KB928366 causes GetUserStoreForAssembly -call to crash on W2000 Server when running as LOCAL SYSTEM (service)
by Riku
- 1 Replies
- Last post
by Kim Hamilton - MSFT
- It seems that applying recent security update for .NET Framework 1.1 (KB928366) causes GetUserStoreForAssembly -call to start crashing on Windows 2000 machines when running on LOCAL SYSTEM account (read: when running as service with no special configuration on "log on" -tab). I encountered this when several of our customers suddenly started complaining about error messages popping up fro
-
- Parsing and Extracting an XML node
by stombiztalker
- 3 Replies
- Last post
by stombiztalker
- Its been so long since I've had to use the .Net framework to parse XML, its hard to figure out where to start.
What I have is an XML document (file on the file system) such as:
<Name/>
<Address/>
<Information>
<SetupText>
<Text>Some text</Text>
</SetupText>
</Information>
I need to take the <Text> node and
-
- SSL x.509 certificate issue while using it in asp.net 2.0
by Janakiraman81
- 1 Replies
- Last post
by SathikKhan
- Hi,
I have written a web application and using SSL x.509 certificate in my ASP.net 2.0. When i try to call web service method on server, i get below error message.
The request was aborted: Could not create SSL/TLS secure channel.
Below is my piece of code.
string certName = "Web Server UKEBUDVSD75";
// WSE 2.0 method // Open the Local m
-
- Runtime Security Policy change failure
by Luigi Fonti
- 1 Replies
- Last post
by RizwanSharp
- I tried to increase the Trust level for some managed applications.
I used Control Panel, .NET framework 2.0 Configuration, Runtime Security Policy, Increase Assembly Trust.
Then whatever application I select, i get the following error:
System.Security.SecurityException: Impossible to generate hash for assembly, in System.Security.Policy.Hash.get_RawData()...
Somebody can tell me how to
-
- Deployment Q/Issue
by Koding
- 3 Replies
- Last post
by Inbar Gazit - MSFT
- I am trying to do my first official deployment and am running into some problems. The application is a simple windows form application and imports system.data. The end user will be accessing this program via citrix. The program starts ok. When you try to do anything that requires access to the system.data library I get an error: Request for the permission of type 'System.data.SqlClient.SqlClientPe
-
- Autonumber value - synch datatable with database value
by Goran _
- 3 Replies
- Last post
by Goran _
- I have been reading a lot about this topic, and still cannot find appropriate solution. I am using RowUpdate event for retrieving autoincrement value from database
Code Snippet
void da_RowUpdated(object sender, OleDbRowUpdatedEventArgs e) { OleDbCommand cmd = conn.CreateCommand(); cmd.CommandText = "SELECT @@IDENTITY"; int recordID = 0; Int32.TryParse(cmd.ExecuteScalar().ToSt
-
- IDataReader.GetFloat() and checking for nulls
by m00n
- 3 Replies
- Last post
by nobugz
- Two problems... I have some code that calls a database, it returns several fields. I'm using the IDataReader interface because we are using the Microsft Enterprise Library and the Database object retruns an IDataReader when calling the ExecuteReader method.
Problem 1
=========================================
reader.GetString( someIndex ); Gets the string value at the ordinal 0. Howeve
-
- Posting to a web service
by Anonymous568015
- 1 Replies
- Last post
by Daniel Roth
- Hi,
I've got a web service method which takes one string parameter
[WebMethod] public string SendMessage(string message) {
//Mode Code
}
This method is accessed by people posting to it with code like below
string message = "message=" + HttpUtility.UrlEncode(messageToSend); WebRequest request = WebRequest.Create(Url); request.Conten
-
- Exception Message Globalisation Best Practices
by Anonymous578167
- 14 Replies
- Last post
by Peter Ritchie
- Hi,
I have a standard ASP.Net web site which makes use of a number of class libraries. These class libraries can obviously raise an exceptionraian exception when things go wrong.
The front end ASP.Net uses resource files in the App_GlobalResources to internationalise the standard text displayed in the browser. However I was wondering is there any best practices for internationalising
-
- Transfering Data in nested Array through Socket
by Dewang Ajmera
- 3 Replies
- Last post
by Sowmy Srinivasan
- Hello I want to transfer the Nested array Data through Socket is there any way to do so Regards, Dewang Ajmera.