.NET Development
Recent update: 2008-3-21

XML file Corruption when the framework is uninstalled

148 byte By guest at 2008-3-11
When i uninstall the .net frame work1.1 in my system all the XML file i have in my system is getting corrupted.Wat may be the reason for it.Plz help

TechEd sessions on Acropolis available online?

108 byte By sbussinger at 2008-3-7
Will Kathy Kam and David Hill's sessions on Acropolis at TechEd 2007 be made available for viewing online?

search words sequence in a string with regular expression

810 byte By Abunet at 2008-3-7
HI,I've got some strings that contain the following text:1) "That film is very beautifull".2) "How much beautifull is the film?".3) "The film is boring".I need, if it is possible with RegEx, to search if the string contains "film" AND ...

.NET 3.0 and Windows 2000

282 byte By Neo_ms at 2008-3-7
Hi, Where ever I read news about .net 3.0, It occurs that the only operating systems that are supported: are: Vista, w2k3, XP SP2 yet not Windows 2000. My question: is it possible to install .NET 3.0 on windows 2000 and if so how to do it? Greething, Rafal

Attaching multiple debuggers to a target (Re: Multithread stepping)

454 byte By FranciscoG at 2008-3-7
I need to attach different debuggers (each one is a different process) to a different target thread in the same process. I have built a prototipe that attaches to a thread after that I try to attach mcordbg to the same process and failed to do that. That's the meaning of the sentence: "I'm ...

pls help me? how to make focus to next control when enter key press in that controll

443 byte By JohnCherian at 2008-3-7
I have 3 textbox When I Press Enter key In Textbox1 The Focus to should be 2 textbox and iF 2texbox enter Foucs on 3 Textbox My Problem is Name_txt.Attributes.Add("onkeypress", "if(event.keyCode==13)document.forms[0].Address_txt.focus()") When I enter key is Press in Name_txt The Page load is ...

How to know if client loses connection, etc

747 byte By TylerFrugia at 2008-3-7
Last question :)Is there a way to know from the web service end to tell if a user that has posted to the webservice has disconnected? Here's my scenario:User posts to web service, some sql server inserts are completed, results from inserts are returned as a dataset, dataset is returned to the ...

Updates through OleDbCommand are not written to database

516 byte By Yes! at 2008-3-7
Hi,i am trying to update an access database with the OleDbCommand.ExecuteNonQuery function......lintRows=lobjOleDbCommand.ExecuteNonQuery("UPDATE TableX SET ColumnValue=9 WHERE ColumnId=1") .....The function returns value 1, indicating that 1 record have been updated.After closing the ...

Where is ICLRRuntimeHost::GetDefaultDomain?

337 byte By LeonFinker at 2008-3-7
I'm trying .NET Beta 2 CLR hosting. Why is there no ICLRRuntimeHost::GetDefaultDomain? QI for IID_ICorRuntimeHost on ICLRRuntimeHost returns E_NOINTERFACE. Calling CorBindToRuntimeEx twice is not allowed to get both pointers. Is this just for beta2? How would I create/manipulate AppDomains ...

Warning related to size_t

894 byte By NavinTripathi at 2008-3-7
I am trying to port an application from 32-bit to 64-bit windows environment. While compiling i get a lot of warnings related to "size_t". This is because the size of the variable "size_t" changes from 32-bit to 64-bit on a 64-bit platform. The kind of warnings which i am getting ...

Killing Asynchronous Calls

965 byte By GBez at 2008-3-7
Hi, I have thee following code that uses a delegate to make an asynchronous call. What I would like is a way of killing this call if need be. That is, the user could click on an abort button while the call is in progress, I want to then end that process immediately. Please can anyone help? ...

How Can I Perform Command On FTP Server ?

1431 byte By Fraas at 2008-3-7
HiHow Can I (Delete File, Rename, Create Directory , ext..) from the FTP Server with the Help of FTP Classes in .NET Framework 2.0I have the following Code to Delete the File From FTP Server FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create("ftp://localhost/FileName.txt"); ...

UploadFile

3089 byte By HamdevGuru at 2008-3-7
Hi everyone!I'm having some trouble uploading a file to my webserver, using the new My.Computer.Network.UploadFile method. This is the code i am using (The credentials are fictitious) : Dim filepathupload As String = "C:\uploadtest.txt"Dim urlupload As String = ...

XML Fails validation

1126 byte By TomMorgan at 2008-3-7
My XML fails validation.My root element: <UNHCR_RRF xmlns=" http://tempuri.org/ElectronicRRF.xsd" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" ...

Unable to add ResourceDictionaries to AcropolisApplication.Resources

1993 byte By PavanPodila at 2008-3-6
I want to include some resources at the application level like so: <AcropolisApplication.Resources> <Framework:ResourceDictionary> <Framework:ResourceDictionary.MergedDictionaries> <Framework:ResourceDictionary Source="/Resources/BrushResources.xaml"/> ...

Regex on Non-US Address

974 byte By Jae at 2008-3-6
Hi,If I had a textbox that contained the following:--Mr FirstName LastNameABCD Ltd, Address 1, Address 2, Town/City, PostCode,Notes1, Tel: 0171 800900, Fax: 0171 800909--how can I parse this to --Mr, FirstName, LastName, ABCD Ltd, Address 1, Address 2, Town/City, PostCode, Notes1, 0171 800900, ...

Error in installation of dotnetfx3setup.exe

2101 byte By UNODevelopment at 2008-3-6
Hello, I ran the vs_uninst_winfx.exe tool. When I tried to run the dotnetfx3xsetup tool, I got the following error in the file dd_dotnetfx3error.txt in the user temp folder. Please direct me to the correct forum for this question. As always, we need this resolved as soon as you can. ThanksJay ...

MDbgValue

824 byte By GilesBathgate at 2008-3-6
There dosen't seem to be a very handy way of Getting and Setting the Value of the MDbgValue Here is some code I use to Get the Value Private Function ExtractValueType(ByVal val As MDbgValue) As String 'This is a bit of a hack to get the value out. 'because mdbg doesn't seem to provide a ...

sorting help

3428 byte By kalikoi at 2008-3-6
Hi All I had an HTMLpage with a table consisting of 5 columns the first two columns are images add and delete on the page load i have only one row for the table when i click the add button then a clone is created below it not what i want is as soon as i add some rows and fill them with ...

IIS with Authentication causing issues....

1077 byte By TylerFrugia at 2008-3-6
I have a webservice that is using Digest Authentication. There is a function in the webservice that takes a string - the string is compressed XML. In the function I am decompressing the XML and doing some database manipulation.Here's the issue:This scenario works GREAT when the XML is is ~5MB ...

Transaction is slowing down the select queries

1619 byte By RamaKrishna at 2008-3-6
Hi Folks,I have a situation here..There is a transaction that I start from within my C# code on a Connection object and hit the DB to execute a Stored Procedure. The SP has some insert statements, some update statements and then some SELECT statements also. Now after I read the data back I need ...

Could I NGEN my application before add it into the setup package?

235 byte By LeiJiang at 2008-3-6
It seems the NGEN is used after the program is installed on target machine? Could I NGEN my program, add it into the setup package, and distribute the package so that the end user will not cost his time on waiting the ngen processing?

VS 2005 hardware: AMD or Intel?

209 byte By Nihad at 2008-3-6
I have VS 2005 Beta2 installed on my P4 2,4MHz machine and now I'm planning to buy a new machine with x64 processor. Can anyone suggest what to buy: Intel or AMD chip. Which is better for VS? Regards

The wrong Principal is passed to my remoted object

917 byte By BartCoppens at 2008-3-6
Hi there,This article: http://blogs.msdn.com/manishg/archive/2005/04/22/410879.aspx#436192helped me a lot when trying to impersonate my user to my remote object. But... when I try to access my remoted server object from a web application, the wrong principal is passed. I've got a web forms ...

ftp connection breaks

280 byte By CasualJim at 2008-3-6
Hi, I have a ftp client based on the edt library. And it works fine untill I switch to a different program or I minimize it. Then it starts spawning all kinds of exotic errors. But mostly I get connection already in use ? Any ideas on how to solve that ? Thanks already

Visual Web Dev Express and .NET 1.1

357 byte By Danielle at 2008-3-6
I understand that Visual Web Dev Express installs the .NET 2 Framework. If I install that, will I still be able to compile libraries with the same machine for use on a web server running the .NET 1.1 framework? Does it matter? I am a web developer and I don't use Visual Studio. I just compile ...

Xml problem in finding a particular element when reading

914 byte By vbjunkie at 2008-3-6
Hi guys. What it the best way to do this? I Have an xml file in this format <Countries> <Country> <ID>1</ID> <Name>Italy</Name> </Country> <Country> <ID>2</ID> <Name>France</Name> </Country> <Country> ...

Support for custom shells and project templates?

838 byte By FabriceMARGUERIE at 2008-3-5
Here is how we work with CAB and a GAX guidance package currently: We have created a common shell that is used for all of our applications. This shell provides a standard set of services and smart parts. When developers create new applications or new modules, they use a template provided by ...

regular expression pattern

500 byte By PradeepGupta at 2008-3-5
4/21/2003 : On 4/21/2003 6:02:49 PM By DBROWN :: ; &#10; On 4/21/2003 7:04:41 PM By DBROWN :: &#10; called on 4/19 ; from the above string can any one tell me the pattern toextract the date preceded by 'On ' and name preceded by ...

Regsvcs.exe causing installation of .NET 2.0 to freeze...aghhh

701 byte By Spuddo at 2008-3-5
When I attempt to install .NET Framework 2.0 x32, the installer keeps freezing while registeringSystem.EnterpriseServices.dll by running RegSvcs.exe while invoking/bootstrapi.I have the latest msinstaller (I think). I can make the installer finish after killing the regsvcs process, but then ...

Multithread stepping

361 byte By FranciscoG at 2008-3-5
Hello, If I have a process with several threads, ?can mdbgeng or a tool using ICorXX API step code in different threads at the same time and independently? I have tried StepOver in that case but the non-active threads of the process run when I step on the active thread. I'm interested on a ...

How Can I Set PageSize property In Page Printing with CSS

267 byte By Matt.Lin at 2008-3-5
hello all;</P> i am sorry for posting this unsuitable question.</P> Can I Set pageSize and PageMargin printing With CSS,</P> I got using @page can do , but now IE default print Template does not supported,</P> what can i do else?</P> thank; </P>

Order of webmethods

295 byte By SwamyKanakala at 2008-3-5
Hi, I've whole bunch of web methods in my web service and they are all appearing in random order instead of the order specified in the cs file. Can somebody tell me if there is any attribute or setting that will let us specify the order, please? Thanks for your time! Regards, Swamy

Transaction in .NET Framework 2

199 byte By AlexeyRokhin at 2008-3-5
If I use TransactionScope against MS SQL 2000 in .NET Framework 2.0 Beta2 then I get distributed transaction. Will LTM-transaction be available for MS SQL 2000 in final version of .NET Framework 2.0?

Obtaining ModuleID

258 byte By VitalyPimenov at 2008-3-5
Maybe someone knows any technique to obtain ModuleID of some module in .NET Profiling API 2 when all information we have is it's metadata token - mdModule and IMetaDataImport2 interface. Of course also we can use ICorProfilerInfo2 methods. Thanx.

Autocad 2006

283 byte By MarkFarrington at 2008-3-5
I just purchased an Xi computer with Windows XP 64-bit OS. I've tried to load Autocad 2006 and it says the .NET Framework Runtime 1.1 is not compatible with Windows 64-bit version. Do I install the 2.0 Framework on the Xi computer and Autocad 2006 will load properly? Any thoughts?

Authentication with the TCP Channel

967 byte By BartCoppens at 2008-3-5
Hi there,I'm working with the July CTP of VS.NET and found this article: http://msdn2.microsoft.com/library/59hafwyt(en-us,vs.80).aspxSomebody out there who tried authentication with the tcp channel?I have a website that talks over a tcp channel to a marshal-by-ref bussiness layer object that ...

the best tools

1231 byte By YuriySkroba at 2008-3-5
Hi everyone,We are trying to decide what kind of application (with VS.Net, preference VB.Net) to develop for a client. They have a central administrative office that includes space and people who serve their clients directly. They also have two remote sites that serve clients but do not have ...

Persistance Frameworks

417 byte By UnquaLeX at 2008-3-5
I want to know what do u think about Persistance Frameworks. Do you use them of one in your projects ? there was a sound about objectSpaces. Cant wait to see that. Now I use NHibernate to persist my classes to db. I dont know it is good way or not. if Microsoft stopped to release the ...

System.xml namespace issue

678 byte By johnewing at 2008-3-5
I appologise if this is an obvious question but I haven't been able to find an answer to it and was wondering if was an issue with visual studio 2005 If I create a new project and attempt to include the xml namespace by Imports System.Xml I get an error stating that the namespace can't be ...

Which one of the following statements is true about type safety?

297 byte By Rahul at 2008-3-5
Choice 1 All CTS constructs are type-safe. Choice 2 All CLS constructs are type-safe. Choice 3 All MSIL constructs are type-safe. Choice 4 All constructs created by a managed code compiler are type-safe. Choice 5 CTS constructs are type-safe if they are not CLS compliant.

Error adding Part and View

394 byte By AllTec at 2008-3-3
I tried adding part and View in my Acropolis application. I got error message (alert) saying "Error HRESULT E_FAIL has been returned from a call to a COM component'. I am working on Orcas VPC from Microsoft, all my sample apps worked fine. In this app, I moved Shell from root to one of ...

regex match search or not to search

1823 byte By software_writer_nyc at 2008-3-3
Re: System.Text.RegularExpressions.Regex, C#lets call the string to be searched target stringDesired Result: Efficiently Match a regular expression to target string. WHOLE target string should be consumed.Actual Result: The Match searches as documented until it finds a match WITHIN the target ...

error 25015 .net framework 2.0

394 byte By kevow at 2008-3-3
hi im new to this forum so i dont know if im posting this in the right forum.im having this problem while installing .net framework 2.0 sorry for my bad translation Error 25015.the instalation of assembly C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll has failed cause of a system ...

NUnit

449 byte By KingKarter at 2008-3-3
Hi guys,please ,can some one help me with NUnit.Assert.AreEqual(10,5,"Some message")The above line of code will result in fail and displaying a message on the GUI of NUnit. IS THERE any way to capture that message and instead of displaying that on to the NUnit gui...or in addition to ...

Tooltip for each items in select box

280 byte By Shiby at 2008-3-3
Friends,</P> Some of the items in my listbox(Select box in html) are too big to display. Can I have a tooltip that displays the same text when I move over it? If so, how?</P> Any help or suggestions would be appriciate.</P> Thanks & Regards, Shiby</P> </span>

.NET 2.0 Error

1109 byte By lumstar at 2008-3-3
I have created a webservice at the location //localhost/WebSite using VS 2005 Beta 2. The webservice contains nothing but the helloWorld web method. When I run a debug I get a server unavailable error in IE and the following in the event viewer: Warning: Failed to initialize the ...

how to update two tables at the sametime with SqlDataSource and GridView?

130 byte By helloone at 2008-3-3
I can only update one table with SqlDataSource's UpdateCommand property. So how can I update two tables at the same time?

Delegates, function pointers, and evil unmanaged code that should die

7717 byte By 280Z28 at 2008-3-3
I'm trying to write a plugin for a popular program in C# instead of C/C++. I decided to make an API so people could easily write these plugins in C#. The basic requirements are as follows.Make a dll that exports the following two functions:extern "C" int __declspec(dllexport) plugin_version( ...

About debugging a 64bit program?

325 byte By hupo1982 at 2008-3-3
We are debugging our 64bit program now.Because we have some C++ codes and some Fortran codes,so I choose to use Windbg.But I met a problem with it: I can debug a very simple 64bit program , but when I tried a complex one I found I can't set a breakpoint.I got an error "code not ...

.NET Development

Site Classified