I have a situation where I am using a third party library. On machines where the library is not installed, I am getting the excption: Unable to load DLL '*.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). However, I am wrapping the calling code in a try-catch block.
I have tried catching both Excepti...
Are there any good algorithms for determining the "best" type to instantiate in order to fulfill a request?
For instance say I have the following classes:
public interface ISometype<T> {}
public class SomeTypeImpl<T>:ISometype<T> {}
public class SomeSpecificTypeImpl<T>:ISometype<T> where T: ISpecificSpecifier {}
public interface ISpeci...
I often find myself using several programming languages when making .NET applications. Usually C++/CLI for interop to legacy code and C# for the rest.
With the coming support for F# as a first-class language, I could see myself mixing that in as well.
But is the only way to use multiple language still to setup a project per language? D...
I am looking to add custom reports/forms to a web application. I want users to be able to upload a report definition/template file and then be able to print out a PDF or word document (one or the other it doesn't need to be both) for each of their widgets based off of the template they uploaded. I can't install anything on the server ...
I was really drawn in and fascinated by the DataRelation object for use in an ADO.NET DataSet to cache data from my database in an ASP.NET web application. Unfortunately, I realized quite late, that I really have three DataTables.
Users with a PK of UserID
Groups with a PK of GroupID
UsersInGroups a linking table with UserID and Group...
What is wrong with this code below. I always get FALSE, meaning after compression, decompressed data does not match original value.
public static bool Test()
{
string sample = "This is a compression test of microsoft .net gzip compression method and decompression methods";
System.Text.ASCIIEncoding encodi...
Hi
I am trying to do PayPal IPN method. So I thought since I am doing asp.net mvc I can just make a method view in my controller like this
public void IPN()
{
// IPN code
}
So I tried this all on local host made my own form to post some IPN variable stuff and it worked fine. I uploaded it to my server and used the IPN simulator fro...
I have the following GET request that returns HTML for a login form, indicating that my authentication, i.e. the credentials are wrong. When I am authenticated in a browser session, and manually request the same URL, I get the expected empty XML document as a response. What am I missing?
var getRequest = WebRequest.Create("http://...
Hi, I have a windows form where I set the BackgroundImage property to a custom bitmap image.
private Image MakeCustomBackground()
{
Bitmap result = new Bitmap(100, 100);
using(Graphics canvas = Graphics.FromImage(result))
{
// draw the custom image
}
return result;
}
private void UpdateFromBackground()
{
...
With Visual Studio Setup Project I can ask for the user for some input, like a location of a folder. There is any way for the installed application to read the user input?
...
What's the easiest way to discover (without access to the source project) whether a .NET assembly DLL was compiled as 'x86', 'x64' or 'Any CPU'?
Update: A command-line utility was sufficient to meet my immediate needs, but just for the sake of completeness, if someone wants to tell me how to do it programmatically then that would be of ...
We are manipulating our Word 2007 documents from .Net using Word Interop. Mostly doing stuff with fields as in:
For Each f In d.Fields
f.Select()
//do stuff with fields here
Next
This leaves the last field in the document selected.
So, for the sake of neatness we would like to positi...
I have a string. I want to replace "d" with "dd", using Regex.Replace, but only if the d is not repeating.
For example, if the string is "m/d/yy", i want to change it to "m/dd/yy". However, if the string is "m/dd/yy", i want to keep it the same, and NOT change it to "m/dddd/yy".
How do I do this? I tried Reg.Replace(datePattern, "\bd\b...
In a Windows Service project, with a Project Installer I tried the following:
[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
public ProjectInstaller()
{
InitializeComponent();
}
protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
{
base.OnBefor...
I'm trying to develop a page in ASP.NET that will act as a tile-server for a Google Map
It will pull a collection of latitude/longitude points from the database, then render them as small red dots on a transparent background, given a zoom-level (default: 15).
It will then return the result as a GIF-type image.
Have any algorithms or l...
I'm trying to write a generic VB.NET (VS2005) function to validate an XML document against an XSD. This works fine until I use an XSD with a relative path include like:
<xs:include schemaLocation="test.02.xsd" />
It can never seem to find what is included in any secondary documents. Here is my original function below. I've been pla...
<div>
<a href="http://website/forum/f80/ThreadLink-new/" id="thread_gotonew_565407"><img class="inlineimg" src="http://website/forum/images/buttons/firstnew.gif" alt="Go to first new post" border="0" /></a>
[MULTI]
<a href="http://website/forum/f80/ThreadLink/" id="thread_title_565407" style="font-weight:bold">THR...
In order to separate concerns, on my current project, I've decided to completely separate my DAL and BLL/Business objects in separate assemblies. I would like to keep my business objects as simple structures without any logic to keep things extremely simple. I would like if I could keep my Business Logic separate from my DAL also. So ...
I am attempting to get some information from a website, the info that I need is located on the missouri.edu site (so it's publicly available).
Here is the process that I need to accomplish:
- Navigate to https://webapps.missouri.edu/ODDSearchEngine/oddsearch
- search for a department name like "business"
- Click any of the department nam...
Hi
I am having a weird problem and I am not sure why.
I have this in my webconfig
<add key="SMTP" value="mail.reliablesite.net"/>
<add key="Email" value="Email"/>
<add key="EMAIL_PASSWORD" value="Password"/>
<add key="FROM_PORT" value="2525"/>
Now when I test smtp through localhost all is well and sends my smtp and eve...