Is it possible to convert the "Foreword" to a topic?
.Net Development
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Thursday, 14 February 2008
Configuring IIS for a 2005 Website Dean Cleaver 13:17:38
 Is there any special trick to this?

I have the DNS all correct, because I can get html files, but I cannot
browse to any aspx at all - I get told I'm not connected to the
internet. As of an hour ago, IIS no longer bothers to log any access to
the site, despite me being able to browse html files. I cannot get a
trace or any error whatsoever and am going out of my tree with
frustration.

I've checked and double checked and triple checked everything I can
think of - right ASP version, right app pool, DNS/pathing MUST be
correct or the static files would fail too... I just don't know what to
do because not being able to trace I can't get any clue as to what could
possibly be wrong.

Any suggestions?

Dino

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 3 answer | Add comment
Safe handles and Marshal class Alex Ivanoff 00:04:51
 Is there a SafeHandle-based native memory management API in .NET 2.0 or do I need to create my own?
comment 8 answers | Add comment
Wednesday, 13 February 2008
Radio button group event? Brady Kelly 18:09:07
 I have a control with several radio buttons used to choose a column
delimiter for text files. If I want to raise a DelimiterChanged event from
my control, I have to attach an event handler to the CheckChanged event of
each constituent radio button. Is there another way of doing this? Say I
wanted to add ten more explicit delimiter choices, I wouldn't like to have
to code ten more delegate assignments, as little work as it is.

comment 3 answer | Add comment
Tuesday, 12 February 2008
Update DisplayMember property of ComboBox Brady Kelly 19:59:48
 I have a collection of ExportSection objects which I bind to a drop-down,
allowing the user to select an ExportSection to edit. Now what I would like
to be able to do is allow the user to edit the Name property of the
currently selected ExportSection, but I can't seem to get changes made to
the Name in the drop-down to propagate back to the actual object.

Add comment
Monday, 11 February 2008
SMTP server in development Mark Aurit 17:13:38
 Im working on an asp.net app for eventual deployment on a hosted
internet site. Im currently in development with xp pro, pushing test
builds to a windows 2003
server. A web site on the server is open to the internet for
customertest. Nothing too fancy.

Certain behaviors in the app trigger emails using the System.Net.Mail
classes, and therein lies the rub - I dont have the knowledge or the
money to set one up,
and Im not sure Id want to do it if I could, Id rather focus on the
app. The other apps Ive done have been on a corporate intranet, so I
had exchange and
the entire smtp infrastructure to work with.

What do you guys do for smtp while in development? Ive seen a vendor
that charges $24/yr for smtp (authsmtp.com) which doesnt sound too bad,
but Im not
sure if Im missing a better solution.

Thanks, Mark

P.s. Is this off topic? It is a .net app, and more importantly Ive done
a lot of research and the results have been kinda disappointing.

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Friday, 8 February 2008
Debug Tracing and Asserts Brady Kelly 17:22:55
 I'm a raw noob when it comes to using these functions, but feel a need to
introduce some controls and audit in my current project. It is littered
with null checks, which mostky do nothing if a component is missing, i.e. a
property is null after deserialising because the XML element that represents
it was missing.



I now have reached a stage where, downstream, I get null reference errors,
and I have to trace all the way down the stream, from the spring, so see
where and why my property is null. Could somebody please recommend a good
resource on using the features provided by .NET to assist in diagnosing and
auditing these scenarios?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Managed vs Unmanaged for Memory Economy Brady Kelly 15:26:45
 I'm having a discussion with a friend on this subject, and while I know full
well that unmanaged is more economical, I'd like to know of any case studies
for similar scenarios that actually use managed code successfully. Here are
some excerpts from his description of their system:



We sent out a total of 4,161,835 eMarketing emails in January


This week we sent out:

Emails - 754,851

SMSes - 252,279





But what uses all the memory? Calculations for the emails, queuing,

writing PDF's?



Two things, building and sending.



To build the email, all the correct substitutions must be made, statements
generated from data files, etc. Common to have several big builds going on
at once.



Once it's built, it's stored in a batch file. The mail server queues and
sends the messages out. Possible to have multiple simultaneous SMTP sessions
going on at the same time.





Brady, our outgoing bandwidth utilisation per month is in the terabyte
range! When you're pushing that much data, you quickly run into the
limits...


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Consuming your own events. Brady Kelly 01:15:36
 I came across a mention in an article last year, advising on not consuming
your own events, e.g. not using a Form_Load handler on your form, but
overriding OnLoad. What is the story behind this, and is it a UI thing I
should ask about elsewhere, or a more general pattern?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 57 answers | Add comment
Losing Wireless Connection to ASP.NET Web App Mark Potter 01:15:36
 I am not sure this is the right list but here goes.

I have an ASP.NET 1.1 web app that uses forms authentication. The site is
run from DELL AXIM WIRELESS PDA's in an outside plant environment. We
have several CISCO wireless access points positioned throughout the
plant. What is happening in the application is that the user logs in fine
and works thru the app okay. But then the user starts moving around in
the plant area. And the tcp/ip connection is broken and a new one is re-
established when they leave one wireless access point zone and enter
another (kind of like roaming on a cell phone). The whole process of
tcp/ip connection loss in one zone and then re-establishment in the next
zone takes about 1 or 2 seconds. The question I have is there anything I
can do in the app (or IIS on Windows 2003 Server) on the back end to re-
establish the session without the user having to re-authenticate.

Thanks in advance.

Mark Potter

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Re: System.Transactions­ snafu :: MSDTC/RPC issues Peter Obiefuna 01:07:39
 Hi everyone:
This may not be the right core group for this issue. But you folks are like
family and there are many all-rounder guys on this community. So, here goes:

We are trying to originate a distributed transaction from
System.Transactions­. Then, predictably enough, this transaction got
escalated to MSDTC because 2 Sql Server connections were opened in the
transaction. Problem is that MSDTC failed. When I tried DTCPing, it succeeds
only in one direction: from the XP sp2 machine up to the w2k3 sp2 server but
not in the reverse direction. DTCPing reports it as an RPC failure.
I have enabled network DTC on both machines and relaxed all the options in
the MSDTC/Security Configuaration Tab of Component Services. Yet, I get the
same problem. Here is the failing DTCPing log from the Server to the Client:

DTCping log file: C:\_LOCALdata\dtc.p­ing\unzipped\2496.lo­g
RPC server is ready
Please Start Partner DTCping before pinging
++++++++++++Validat­ing Remote Computer Name++++++++++++
Please refer to following log file for details:
C:\_LOCALdata\dtc.p­ing\unzipped\2496.lo­g
Invoking RPC method on d-285628
Problem:fail to invoke remote RPC method
Error(0x5) at dtcping.cpp @303
-->RPC pinging exception
-->5(Access is denied.)
RPC test failed
Please send following LOG to Microsoft for analysis:
Partner LOG: D-2856285224.log
My LOG: 2496.log

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Thursday, 7 February 2008
Prompt characters in a MaskedTextBox Amit Bhatnagar 19:44:27
 I have the need to create a customized text entry box that can accept
various types of geographic coordinates. The problem

The MaskedTextBox only allows a single prompt character to be displayed
upon user input. I need the ability to display different prompt
characters for certain character positions. How can I do this? Also, due
to the nature of the text being inputted, I suspect that I will need to
use a regex to validate this properly. So I'm assuming because of these
two limitations, that the MaskedTextBox isn't the way to go.

Does anyone have any suggestions on how I can go about this? Use a
regular text box and validate against a reg expression? But how do I
handle displaying the custom prompt characters?

The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message.
Thank you.

comment 5 answers | Add comment
Expand/Collapse Edit View for Details Brady Kelly 15:15:56
 I have an HTML table rendered by a Repeater control on a UserList page. It
displays a list of Users, and to the right of each user, a delete and an
edit image button. I have JavaScript that executes on the page load, that
binds event handlers to the onblur event of each cell in each table row. The
event handler posts an Ajax request to the server, so any updates the user
makes are almost instantly persisted to the DB.



Only selected, frequently used, User fields are displayed in the table for
the 'in-place' editing described above. To edit other fields, the user
clicks the Edit button at the right of a User row, and another, UserDetails
page opens in a pop-up, which the user closes by clicking Cancel or Save
after any editing of the User details.



I now need to modify the UserList page so that when the user clicks the Edit
icon, a User Details edit area becomes visible still on the UserList page,
i.e. an invisible/collapsed­ area for user details expands/becomes visible
when Edit is clicked, then collapses/becomes invisible again when Save or
Cancel is clicked.



How could I best achieve this?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Wednesday, 6 February 2008
FW: Interop Problem: Object or class does not support the set of events Brady Kelly 19:59:05
 That was a brain fart. My event name in the events interface doesn't match
the event name in the main class, but I wasn't warned because I'm not
explicitly inheriting the events interface.



From: Brady Kelly [mailto:brady@chasesoftware.co.za]
Sent: 06 February 2008 06:49 PM
To: 'Discussion of development on the .NET platform using any managed
language'
Subject: Interop Problem: Object or class does not support the set of events



Can anyone advise me on this issue? I'm at a complete loss, and resorting
to 'bottom-up' rewrites to get my C# event source accepted by my VB6 client.
My COM interface is as below:



public delegate void ProgressChangedEven­t(string currentSection, int
totalRecords, int processedRecords);



[ComVisible(true)]

[Guid("41AC9609-F777-41ac-901B-E8EAAEDFD486")]

[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]

public interface _ExportEngine

{

string ConnectionString { get; set; }

void RunExport(int batchId, string connectionString);

int DemoDelay { get; set; }

void DemoExportFile(stri­ng filePath);

}



[ComVisible(true)]

[Guid("35182B01-57E1-4e46-978F-5AEAC43C04A9")]

[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]

public interface _ExportEngineEvents­

{

void ProgressChangedEven­t(string currentSection, int totalRecords,
int processedRecords);

}



[ComVisible(true)]

[Guid("A5F75277-D8B7-4749-A3B7-A3AA0869B23F")]

[ClassInterface(ClassInterfaceType.None)]

[ComSourceInterfaces(typeof(_ExportEngineEvents))]

public class ExportEngine: _ExportEngine

{...






===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Interop Problem: Object or class does not support the set of events Brady Kelly 19:48:32
 Can anyone advise me on this issue? I'm at a complete loss, and resorting
to 'bottom-up' rewrites to get my C# event source accepted by my VB6 client.
My COM interface is as below:



public delegate void ProgressChangedEven­t(string currentSection, int
totalRecords, int processedRecords);



[ComVisible(true)]

[Guid("41AC9609-F777-41ac-901B-E8EAAEDFD486")]

[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]

public interface _ExportEngine

{

string ConnectionString { get; set; }

void RunExport(int batchId, string connectionString);

int DemoDelay { get; set; }

void DemoExportFile(stri­ng filePath);

}



[ComVisible(true)]

[Guid("35182B01-57E1-4e46-978F-5AEAC43C04A9")]

[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]

public interface _ExportEngineEvents­

{

void ProgressChangedEven­t(string currentSection, int totalRecords,
int processedRecords);

}



[ComVisible(true)]

[Guid("A5F75277-D8B7-4749-A3B7-A3AA0869B23F")]

[ClassInterface(ClassInterfaceType.None)]

[ComSourceInterfaces(typeof(_ExportEngineEvents))]

public class ExportEngine: _ExportEngine

{...






===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
REGASM Leaves Type Library Brady Kelly 19:27:54
 When I run REGASM /u on an assembly I register, it tells me "Types
un-registered successfully", but using the old OLE/COM Object Viewer, I see
the type library is still registered.


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 3 answer | Add comment
Friday, 1 February 2008
Circular Reference Question Attribute Brady Kelly 17:19:36
 I have a custom attribute that I use for serializing properties of classes.
It indicates which properties should be serialized and their target XML
attribute. To me this information is all to do with my XML persistence, not
the actual components being persisted, so it makes more sense (now, I hope I
change my mind) that the attribute be defined in the persistence project,
but the persistence project needs a reference to the components project to
serialize components, so the components project can't have the reference to
persistence it needs to use the attribute. Confusing?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Command Controls on Content Controls Brady Kelly 15:48:54
 I've been wandering about whether to include command controls, such as
command buttons: AddColumn, AddRow etc. to my Layout control, or to just
expose command methods on the control and have it's host determine how the
commands are invoked. What does convention say regarding this?

Add comment
Thursday, 31 January 2008
Privileges in BCL Alex Ivanoff 18:33:24
 Does BCL have classes to enum/get/set privileges?

Alex
comment 5 answers | Add comment
Pattern: Static Properties Return Objects Brady Kelly 16:20:53
 I often have a situation where my info needs progress beyond a simple enum.
I then create a class, with a private constructor that takes an enum, and
returns an object representing one of the enum items, but with more data. I
expose static getters to construct and return each type of object, so that
using the class appears as if using an enum. Is there a name for this
pattern or practice?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 7 answers | Add comment
List's Add and Remove are not virtual. What now? Brady Kelly 01:27:09
 I would have like to override these methods in my class derived of List<T>.
Is there some base list somewhere I could use to the same effect, and why
shouldn't these be overridden?


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Wednesday, 30 January 2008
Gridview, bind column to property of nested type Ron Young 19:50:22
 Given the following:

Class UserRole
{
Public string RoleName { get; set; }
Public string Description{ get; set; }

Public override string ToString(){ return RoleName; }
}

Class MyUser
{
Public UserRole Role{ get; set; }
Public string FirstName{ get; set; }
}

I want to bind a list of MyUser to a gridview, and one of the columns in the gridview should display the RoleName of the user.

I thought overriding ToString() in UserRole would do the trick but I get a NullReferenceExcept­ion.

I know my code to generate a List<MyUser> is correct.

Here's the bound field for that role column in the gridview:


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
COM Callable Assembly Missing in Reference Lists Brady Kelly 17:44:02
 Last night I did an emergency conversion of a C# command line utility into a
COM callable library. Following Phil Wilson's advice[1] on deploying a .NET
assembly to COM, I manually create a type library and added my assembly to
the application folder of a setup project. I set both to xsxxRegisterCOM.
Now, when I run the installer, it does actually install the DLL for COM. I
can use it through late binding in both C# and VBA, but it appears in
neither the COM References list in VS, nor in the References list in Access
VBA.



I've done this same procedure previously without this problem, but I have no
idea where to start diagnosing it.





[1]
http://www.simple-t­alk.com/dotnet/visua­l-studio/build-and-d­eploy-a-.net-com-
assembly/




===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
RegEx for Function Declarations Brady Kelly 14:43:27
 I'd like to parse aggregate function declarations, as in Sum('x'), where x
is a field name. I'd love to break out a regex explorer and experiment, but
I have a demo in three hours and would appreciate some assistance. The set
of functions is finite, i.e. Count(), Sum(x), Max(x), Min(x).


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Disposing of non-components in a component Mark Hurd 10:50:33
 This is related to the "Consuming your own events" thread.

I have created a component in VS2008 (could have been 2005) that has
one component added using the designer surface, but another
IDisposable property manually added in my code.

I want to (must) call the property's Dispose when disposing happens,
but the boilerplate Dispose(Boolean) in the .designer file doesn't
cater for user-defined disposal. (A perfect case for a Partial
method.)

(If my property was an IComponent I could manually add it to the
components collection, and I could create a wrapper that is just for
that purpose, I suppose.)

The simple solution (ignoring the .designer file) is to handle the
Disposed event and do the extra disposal there.

What I actually did was rip the Dispose(Boolean) from the .designer
file and put in my source and extended it to dispose my property.

I did a fairly extensive search to see if this issue was discussed in
the help files or on the web and the only reference(*) I found just
says "This implementation (of Dispose(Boolean) can be overridden to
provide custom cleanup code.", but it doesn't say how to.

(*) ms-help://MS.MSDNQT­R.v90.en/dv_fxmclicc­/html/58444076-a9d2-­4c91-b3f6-0e180dc069­5d.htm

Any definitive resources or just opinions welcome.

Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Tuesday, 29 January 2008
Overriding SetValue in DataGridViewTextBox­Cell Brady Kelly 16:39:14
 I'm overriding SetValue in my custom cell, to parse the new value and decide
what value type it is, e.g. if it starts with #, then it is a string
literal, otherwise it is a field name. Now I want to handle aggregate
functions as well, so I need to parse for, e.g. Sum('xxx'), where 'xxx' is
a field name. How do I cancel the edit if the input is of bad aggregate
syntax, or a non-defined function, such as MyFunc('xxx')? Do I throw an
exception in SetValue, catch it, and cancel the edit event? How is this
normally handled in bound grids?

Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
removing lines from array
Modssl & php 4 fears
REPOST: Image color quality problems
пройди тесты:
Do you really know yourself?
see also:
baz-baz-baz-baz pam-parabaram baz-b...
internationlization and javascript
The Apache HTTP Server can be…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .