Hello anyone!
I want to use IronRuby as scripting language (as Lua, for example) in my .net project.
For example, I want to be able to subscribe from ruby script to specific events, fired in host application, and call ruby methods from it.
I'm using this code for instantiate IronRuby engine:
Dim engine = Ruby.CreateEngine()
Dim source...
I have a fairly large solution with several projects and multiple deployment projects (VDPROJ). I am in the process of automating builds using MSBUILD. I am aware of the limitation where I need to invoke Visual Studio (VS) in order to build the VDPROJ. I cannot switch to WiX at this time.
Currently I have a EXE task in my build scr...
Anyone know where I can find useful resource for some information for this.
I reckon SOA is the way to go for scalabilty, but are there down sides such as performance and security I should look at.
Overall what architecture should be considered best for enterprise web applications
A good , complete, up to date book would be valuable, an...
Hi, I have in my DB a HTML markup written as a strings. How to convert them and view as a formatted HTML markup ? I tried Server.HtmlEncode(), HttpUtility.HtmlEncode() with no success
...
I have the below LINQ method that I use to create the empty EmploymentPLan. After that I simply UPDATE. For some reason this works perfectly for myself but for my users they are getting the following error -->
The target table 'dbo.tblEmploymentPrevocServices' of the DML statement cannot have any enabled triggers if the statement cont...
Hi,
I have a WCF client that connects to multiple endpoints; some net.pipe, some https.
The net.pipe endpoints have a fair amount of chatter but they work reliably, so I don't want to trace those, as the log file gets too big and cluttered too quickly. However, the https endpoint is fairly new and I need to trace that one. How do I tra...
I am using Visual Studio 2008 professional, C#. I found the App.config file is copied into the bin\debug and bin\release folder. Is that by default? I thought the XXX.exe.config file will be the only configuration file for a project.
Is it safe to release our applicaion without the App.config?
if yes, how to ask VS2008 to stop copy tha...
Hi
Is there any way to cast to a dynamic generic interface..
Site s = new Site();
IRepository<Site> obj = (IRepository<s.GetType()>)ServiceLocator.Current.GetInstance(t)
obviously the above won't compile with this cast. Is there anyway to do a dynamic cast of a generic interface. I have tried adding a non generic interface but the s...
Since I upgraded my project to visual studio 2010 project format, my C++/CLI project is targeted to .net framework 4.0.
It is easy to switch the framework version to another version from a C# project, but I have no clue how to do this in a C++/CLI project, I see no setting for this in the project property pages.
...
I'm trying to store a user list in a config file. I've been looking at DictionarySectionHandler and NameValueSectionHandler. I'm not too sure what the difference between these two is, but anyway, neither of them do exactly what I'd like.
You can add a custom config section like so:
<configSections>
<section name="userAges" type="S...
I'm trying to use extenionless / .svc-less WCF services. Can anyone else confirm or deny the issue I'm experiencing?
I use routing in code, and do this in Application_Start of global.asax.cs:
RouteTable.Routes.Add(new ServiceRoute("Data", new WebServiceHostFactory(), typeof(DataDips)));
I have tested in both IIS 6 and IIS 7.5 and I ...
Hi, I'm working in an ASP.NET MVC project where I have created a two LinqToSQL classes. I have also created a repository class for the models and I've implemented some methods like LIST, ADD, SAVE in that class which serves the controller with data. Now in one of the repository classes I have pulled some data with LINQ joins like this.
...
Recently read in a article on dotnetpearls.com here saying that static ctors take a substantial amount of perfomance hit.
Could not fathom why ?
...
I have the following code:
int result = -1;
StringBuilder sb = new StringBuilder();
SqlCommand cmd = MyConnection.
sb.AppendLine("delete from Table1 where ID in");
sb.AppendLine("(select id from Table1 t1 where not exists(select * from Table2 t2 where t2.Table1ID = t1.ID))");
cmd.CommandText = sb.ToString();
result = cmd.ExecuteNonQuer...
Possible Duplicate:
Why isnt there generic variance for classes in C# 4.0?
As a rookie programmer I have a couple of questions about variance in .NET 4. Not so much about how it works, but why certain things are not variant and if other people would find this useful.
Question 1:
I know that interfaces and delegates can be c...
I found this code on an old thread to shutdown the local machine:
using System.Management;
void Shutdown()
{
ManagementBaseObject mboShutdown = null;
ManagementClass mcWin32 = new ManagementClass("Win32_OperatingSystem");
mcWin32.Get();
// You can't shutdown without security privileges
mcWin32.Scope.Options.EnableP...
In short my scenario is like so:
The user triggers an action in the web browser, which causes an Ajax call to a web service in the web server (server A).
The web server issues a call to a WCF service, hosted in IIS (server B)
The WCF service issues a call to another WCF service, hosted in IIS (server C)
All web sites are exposed ove...
I have an idea to write a multimotor taskbar application in c# for windows xp. So, does anyone have any information how
to put a taskbar on the second
monitor,
to make it use windows styles,
to prevent aplications running on the
second monitor to appear in default
taskbar,
so on...
Any help would be ...helpful )))
...
I am by no means a programmer but currently am wondering if an application creates a temp file that windows names. For example the file it creates is tmp001, is there a way i can take that name tmp001 and ask windows to give me the next temp file it would create before it creates it.
Thanks,
Mike
...
We are using Visual Studio 2008 professional. We have created an entity data model in our src\systeminfo folder. Since then our release and debug folder have a empty src\systeminfo folder. we don't need them. how to stop VS to create that empty folder structure? thanks
EDIT:
current directory tree:
project\Properties
project\Reference...