Hi,
I want to get Assemblies Friendly Names in Current Application Domain and hence I wrote something like this :
static void Main(string[] args)
{
foreach (System.Reflection.Assembly item in AppDomain.CurrentDomain.GetAssemblies())
{
Console.WriteLine(item.FullName);
}
}
But the problem is ...
Hi All,
I have an xml file which is stored in an "image" column in an MSSQL database. This field is being set by a java program i do not have access to. I have been told its just a standard Java "blob" object.
Is there anyway for me to read this field from the db in .NET and decode it into a readable string?
I have close to no Java k...
We are developing a .NET plug in (class library) for an existing application within our enterprise. Its a desktop application which has preexisting support for plug ins.
1) Is there a mechanism to secure the plug in to ensure that it is only invoked by the existing desktop application? (We have no control over the desktop applications c...
Is it possible to get the arguments from a sub or function in vb2005 as an array?
...
Hi,
I working on a method that does something given a string parameter. A valid value for the string parameter is anything other than null or string.Empty. So my code looks like this.
private void SomeMethod(string someArgument)
{
if(string.IsNullOrEmpty(someArgument))
throw new ArgumentNullException("someArgument");
...
I'm debugging a program (VS2008), and I was stepping through lines of code. I came across one line where a delegate function was being called, and I tried to step into it. However, rather than stepping into the method as I expected, the method was bypassed, with the debugger instead stepping into what I assume is a function called by the...
when i click to a node in the treeview i want to see it's corresponding form in the splitcontainer.panel2,there have diffrent nodes and forms.if any one knows please help me
...
I am deserializing the following XML file. Using XML serializer with VSTS 2008 + C# + .Net 3.5.
Here is the XML file.
<?xml version="1.0" encoding="utf-8"?>
<Person><Name>=b?olu</Name></Person>
Here is the screen snapshot for the display of the XML file and binary format of the XML file,
If there are some solutions to accept suc...
I am creating basic project which includes layers. One is bussiness layer another one is Data layer. And my front end(default page). I have created 2 classes for BL and DL. Please help me how to add that class in my project.
...
I'm interested in knowing what are the best practices for using role based security in MVC: how to secure your actions and make them accessible by specific roles only?
...
c# visual studio 2008 , setup project ,file types on targed machine, &open-> Arguments
http://msdn.microsoft.com/en-us/library/0ehs907t%28VS.71%29.aspx
in this section i can write only characters, how can i specify file name (to open).
Many Thanks
...
hi,
If user is in Administrative group then interop.cdo.dll is sending mail. But if user is not in administrative group then it is not sending mail.Can any one help me how can i provide permission for interop.cdo.dll for user having non administrative group.
i am using VS 2003.
thanks
...
Hi there,
To do the above using the config file I would do:
<endpoint
address="...."
binding="netTcpBinding"
bindingConfiguration="MyBinding"
contract="IService1">
<identity>
<servicePrincipalName value="name"/>
</identity>
</endpoint>
But how do I add it to the below code?
...
I’ve worked on numerous projects where we’ve developed our own frameworks and platforms from scratch and it was never really successful and I’m re-evaluating to rather use a commercial product to assist us with our product development.
If you get a chance to develop an N-Tier system with a SOA layer from scratch would you recommend Idea...
I have two XML file sitemap.xml and mouse.xml which look like below.Here the thing is that
i need to compare sitemap.xml with mouse.xml in such a way that the tag
<Name></Name>.I need to compare both xml file whether the content
coming inside <Name></Name> tag is same or not in c# code
Here the <Name></Name> tag are different means si...
Is there any lists where the error codes are explained. Eks: HRESULT: 0x81070215 does not tell me enything about what when wrong?
...
Can't imagine this isn't a dupe but I can't seem find any previously matching questions.
I have a generic method
public T GetSetting<T>(Guid userId) where T : ISetting, new()
This in it's turn calls a generic method
public static ISetting CreateSetting<T>(IDictionary<string, object> data) where T:ISetting, new()
The signatures...
Hi there,
I have a website hosted on ServerA which runs using an App Pool using a special user accout with domain privilages to access our database. In the config file of the website I specify:
<identity impersonate="true" />
I then have a service which is also on ServerA and hosted in a console app programmatically (i.e. no conf...
I need to create a com object for my classic asp, since i can create a .net Assembly and have it 'Interop' with com, so i proceeded to create a .net Assembly like this:-
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Da...
This question is similar to this question but not quite the same.
Can I make a dynamic query on a linq-to-sql data context and have the result return as an IDictionary<string, object> where the key is the name of the column?
A bit like so (doesn't compile, but illustrates the intention)
IDictionary<string, object> data = new Dictionar...