Answer Questions
Achileos Change Application Pool Identity Programmatically
Security doesn't allow developers to have IIS installed locally on their PCs, nor do they allow developers to be in the administrator group of the development web server. In order for them to debug, we have individual application pools running under the identity of the developer. (Thankfully IIS 6.0 has allowed this feature.) We wrote a small program that allows a user to recycle their application pool: public void RecycleAppPool( string a ...Show All
Jong8282 Problem with ADO.NET and Excel
I am retrieving data from an Excel file via ADO.NET. The data being returned is not correct. Cell(14,3)=Hello, but the value being returned is DBNull. Cell(15,3)=93, but the value being returned is '3/31/1900'. What is curious is that the data being returned for columns 1 & 2 are correct. Any ideas Public Sub ReadExcel(ByVal myConnStr As String) Dim mySelectQuery As String = "SELECT * FROM [Timesheet$]" Dim myConn As New ...Show All
Masterbrain Is it impossible to send Nothing in an integer input parameter?
A third party webservice wants null / Nothing values for certain optional integer input parameters. I understand that the integer datatype cannot hold a null/nothing, but is there anyway to force this Can I manually do it somehow Tracy WebServices in .Net 2.0 has added support for Nullable<T>. If you know that both your client and service are deployed on .Net 2.0, you can use these Nullable ...Show All
Mauro Rogledi WSE3.0 Error
Hi Nikole / Vasudha, I have a fully developed web application on VS2003 / Enterprise Library 2003. I recently installed VS2005 and Enterprise Library Jan 2006. I then proceeded to recreate my config file (specifying data, exception and logging blocks) as per the instructions from the help manual. However, I still persist to get the same error as Vasudha when I try to build the solution after porting it to VS2005 using the latest migrati ...Show All
Nathan Stott Reflection and Plugins
Hi, I am starting out creating an app that I would like to dynamically load dlls that would be developed, plugins. I am using the C++.NET framework. My question is, Is Relection the way to do this I have been searching for examples in C++.NET but most seem to be in C# or VB.NET. Can any point me in the best direction Examples Relection Thanks Jeff That is something that I am concerned about, making function ca ...Show All
jose-luisp SSL server throws WebException for a protocol violation.
Hi, I'm currently working on connecting to an HTTP server on a local network to grab log files, push configurations, and modify access rights to the server. This product could be deployed to sites where said server has SSL enabled. As such, I am doing testing on a server with SSL enabled. I already have it set up to accept server certificates, but I'm having an issue when I try to get the response of the server. The code snippet is: Sys ...Show All
Ben Nevarez Data Access, where to start?
Hello, I am developing a small application and I am wondering where to store information that I need. After some thought storing the information in XML or in an Access database is probably the best option. Could someone point me in the direction of some resources for opening a connection, getting info and sending info to XML or Access or both Cheers, padraic Hickey Padraic, We've got two choices here I'd recommend, but ...Show All
DanieLondon Attach files to local mail
Hi all, My application creates files and attach these files to local mail (ex:outlook). This mean my application call local mail and attach these files automatically. I tried to use "System.Net.Mail", but I'm not successful. Please help me to solve this solution. Thanks for your collaboration. Steven. My idea includes following steps: - Open a new local mail. - Fill in "T ...Show All
Draakje Environment.UserDomainName reports machine name instead of domain name
How can I get a hold of the local machine I need the domain name and machine name. There may be better ways, but here's code you can use to get the Domain\UserName: Imports System.Security.Principal Dim x As WindowsIdentity = WindowsIdent ...Show All
miauru Failed to create an IPC Port: Access is denied.
I have a service that registers a remoting IPC channel on startup and quite often I will get this error when the service is stopped and then restarted. It doesn't do it all the time but enough to be an annoyance and when the service is stopped I do unregister the channel. Anyone else experience this Thanks!! The message is: Failed to create an IPC Port: Access is denied. I originally received this for in ...Show All
topgun2710 Adding a shortcut to open a program
How do I add a registry key to automatically open a certain program when the user inserts a camera into a usb port What you want to look at is the AutoPlay feature of Windows: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/Shell/programmersguide/shell_basics/shell_basics_extending/autoplay/autoplay2k_cookbook.asp frame=true#autoplay2k_eventhandler_reg ...Show All
ragsrags Concurrency Violation with Delete Command
I've generated a standard Master-Detail Windows form and have the master fields in individual text boxes and the child rows in a datagrid. When I use the Delete button that was generated by the form generator I get the message "Concurrency Violation: the DeleteCommand affected 0 rows" and noting gets deleted. This is a single-user application and this is the only form using these tables, so how can I get a Concurrency Violation under these ...Show All
Daniel2005 strong names problem...
I have a console application in c# that uses objects that is in another dll(unmanaged code). when I reference from the project to the dll it creates another dll with the name Interop.MyDll.dll now, I created snk file with sn.exe and added reference to it from the project [assembly: AssemblyKeyFile("@"..\..\exampleSN.snk"")] with this it wont compile because of: "Assembly generation failed -- Referenced assembly 'Interop.MyDll' does not have a s ...Show All
Matt Peirse Type Fidelity and Web Services
The company I'm a part of recently released a new verison of our distributed information processing system and while designing the thing I was presented with a few challenges that I'm now able to look back on and wonder if I did the right thing. The biggest design issue I had was wether or not it needed to be based on .NET Remoting or take the web servies approach. While I definitely would have liked taking the web services approach in partners ...Show All
Jim TheGreat .NET throws exception running under limited user account
Running our application under a limited user throws this exception at weird times and we cannot find any information on it: Object reference not set to an instance of an object. at System.Runtime.InteropServices.Marshal.ReleaseComObject(Object o) at System.Management.Instrumentation.MetaDataInfo.Finalize() The only common denominator seems to be it hits when we're running multiple threads. We're using 1.1 with SP1. We tried running both debu ...Show All
