Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

Regex add apostrophe between name and the "s"

Hi.. I want to add a apostrophe character between the name name the "s" in the text.. And here is a example how it could be done with the Perl language.s/(?<=\bJack)(?=s\b)/'/gThis expressions...

View Article


Programmatically install windows service failed.

 I wish that it is a correct place. I want to install a windows service programmatically. It means that I type the commandMyApplication.exe -installMy code failed in this fashion but is oaky if I...

View Article


How exactly does SyncLock work

So let's say I have an ASP.Net website, and I place some object to Cache in the page A.aspx.vb as follows:Dim o As New Object() Context.Cache.Insert(key, o, ...other required arguments)Now in the page...

View Article

Add a new feature in .NET class library——“Const Class”

Hi all:Sometimes I have to define a lot of consts to be shared and used everywhere in my project. So I define a class with quite a lot of const values.But what frastrates me is that I can get something...

View Article

Image may be NSFW.
Clik here to view.

sending email with attachment corrupts entire email

I'm attempting to send an email in a console application.  If i inclue an attachment, the entire email is corrupt.  The attachment is embeded in the body of the email. In addition, the sender, send to...

View Article


Looking for Character & URL Friendly Cryptography class

I want to encrypt some URL data and pass it in the URL parameters.  The encryption stream has to be URL parsing friendly.string encryptedValue =...

View Article

LocalDb login fails

There's not an appropriate sub-forum under .NET so posting here.  If there is a better place please advise how to get to it.LocalDB with EntityFramework 6 migrations.  ASP.NET MVC5 code first project....

View Article

Image may be NSFW.
Clik here to view.

Why does a static class have "Equals" and "ReferenceEquals"?

Hi all:As far as I see, a static class something like a sealed class with all the static methods, properties……,ect. It shouldn't inherit from any classes (even from object). Because any instance-based...

View Article


Failed to load Microsoft.VisualStudio.TestTools.UITest,Extensions.IE.dll

I have created a test project with coded ui test tool and added it as a reference for another project which is a Windows Form Application. In that windows form application I am calling the execution of...

View Article


AnonymousPipes - not getting the whole message (sometimes)

I'm using anonymous pipes to send commands between two processes. Usually everything works great but from time to time the command received by the consumer is truncated and only half of it comes...

View Article

Visual Studio 2010 Crashes While Loading a project / After exiting the...

I currently have 2 crashes happening on my system when using Visual Studio 2010.1. Start "devenv /safemode" from administrative command console.2. Open Project.3. Run Debugger4. "Exit the...

View Article

Problem with the Library

Hello I'm actually writing my own program to using Xaml and C# Language with my book.In an excercise i must have library Windows.Storage and Windows.Ui.Xaml.Controls but I don't have them.How can i get...

View Article

Trouble with codes for a "tax program"

I am trying to create a program where a person types in their income, then they will click a radio button and then they hit a button to compute their tax and then their taxes show...

View Article


How to convert .pst to .msg

HiCan anybody help me out find a solution for conversion of .pst file to .msg files thanks & regardsKB 

View Article

.NET Reflector: item is obfuscated and can not be translated

Hi all, I need to see and debug the code in a Dll which I don't have the source code. But when I use .NET Reflector I'm having several of this messages:protected void fillddlGroup()        {...

View Article


want to get a connection of local db (.mdf file) in visual studio12. but want...

i have made a connection of local db in my project. here is my code. class Connection { public SqlConnection GetConnection() { string mycon = @"data source=(LocalDB)\v11.0;" +...

View Article

Please help

<?xml version="1.0" encoding="utf-8" ?><configuration><configSections></configSections><connectionStrings><add name="Sapphie.My.MySettings.SapphireConnectionString"...

View Article


Using mubuild to compile lambda expresion into a class library

The project I am working on requires me to build a project into a class library using the msbuild command via command line. When the compiler gets to a predicate function it returns error BC30201...

View Article

Test

Tessts

View Article

Is email working?

Are people getting email notifications from forum?  Not sure if it is an Microsoft issue or my mail server.jdweng

View Article
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>