.net-3.5 Questions

2

Solved

I'm currently trying to authenticate via Active Directory Services using the PrincipalContext class. I would like to have my application authenticate to the Domain using Sealed and SSL contexts. In...
Toluene asked 29/3, 2010 at 13:10

5

I have a project which needs to reference two DLLs with the same name. The DLLs are not strong named, have the same exact name. I need to access some types within each DLL, but these types have th...
Angio asked 14/12, 2010 at 23:5

4

Solved

I created FTP code to transfer files. This code works fine except that it sometimes causes an error 500. The exact error is - Error: System.Reflection.TargetInvocationException: Exception has bee...
Handmedown asked 19/1, 2014 at 19:10

3

Solved

Maybe I'm just not getting it, but I have a service that is deployed to an IIS 6 machine. That machine has a LAN address and a Public internet address. How on earth am I supposed to be able publis...
Regress asked 21/10, 2010 at 20:13

2

Solved

Is there a redistributable .NET 3.5 installation package that is a silent installer? Or alternatively, is there a switch that can be passed to the main redistributable .NET 3.5 installer to make it...
Hoop asked 7/9, 2008 at 12:52

3

Solved

I'm tryring to do a simple insert with foreign key, but it seems that I need to use db.SaveChanges() for every record insert. How can I manage to use only one db.SaveChanges() at the end of this pr...
Altis asked 24/5, 2010 at 8:6

11

Solved

I'm having a little bit of trouble understanding what the problem is here. I have a bit of code that pulls records from a database using LINQ and puts them into an object which is cast into an inte...
Jairia asked 18/12, 2008 at 19:19

8

Solved

I'm trying to send an XML document over the wire but receiving the following exception: "MY LONG EMAIL STRING" was specified for the 'Body' element. ---> System.ArgumentException: '&amp...
Deserve asked 17/11, 2011 at 16:31

7

Solved

There are a few minor places where code for my project may be able to be drastically improved if the target framework were a newer version. I'd like to be able to better leverage conditional compil...
Closegrained asked 27/5, 2010 at 17:5

4

Solved

I am developing a C# application (.Net 3.5, Win Forms) which is run on a server, and is accessed by Users using remote desktop. The application keeps freezing on seemingly random occasions on the r...
Skyrocket asked 24/2, 2011 at 10:17

4

Solved

I have a path string like c:\user\test\test.jpg, how can I make it c:\\user\\test\\test.jpg?
Gammadion asked 28/12, 2010 at 4:38

8

Solved

If I have 5 String variables and between 0 and 5 of them are null or empty is there an easy/short way of returning the first one that is not null or empty? I am using .NET 3.5
Jaramillo asked 29/3, 2010 at 15:45

2

Solved

I just upgraded my Windows Forms project from .NET 3.0 to .NET 3.5 and the upgrade added the following to my app.config file: <system.web> <membership defaultProvider="ClientAuthenticati...
Pizor asked 5/8, 2009 at 3:59

3

I use this code with .NET 3.5 and receive error "The remote server returned an error: (407) Proxy Authentication Required." using (WebClient client = new WebClient()) { WebRequest.DefaultWebProxy...
Enshroud asked 11/5, 2014 at 8:13

3

Solved

In my application I have class that is responsible for all database actions. It is called from main class and uses delegates to call methods after action is complete. Because it is asynchronous I m...
Bushido asked 14/9, 2012 at 6:30

12

Solved

Solution: I had also moved ashx and asmx files at the same time as this. The Class attribute of the WebService/WebHandler directives were pointed at the wrong namespace. The moral of the story is ...
Robot asked 7/4, 2010 at 21:36

6

I have a windows form project in which I want to force the user to enter values in certain fields before he presses the calculate button at the bottom. The fields include three pairs of radio butto...
Pastiche asked 23/11, 2012 at 11:29

5

Solved

/*I have defined Extension Methods for the TypeX like this*/ public static Int32 GetValueAsInt(this TypeX oValue) { return Int32.Parse(oValue.ToString()); } public static Boolean GetValueAsB...
Evangelina asked 17/6, 2009 at 11:52

1

I am trying to build a dotnet 3.5 project solution file with VS Build tools 2017 in Jenkins. The project is compiling well with DotNet 3.5's MSBuild, but when I try the same activity with MSBuild E...

22

Solved

I'm trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example: var results = from myRow in myDa...
Podite asked 14/8, 2008 at 10:8

3

When you implement the INotifyPropertyChanged interface, you're responsible for calling the PropertyChanged event each and everytime a property is updated in the class. This typically leads ...

7

Solved

I'm getting the above error on the ToList() line of the code below if (emailReplyTo != null) { System.Collections.Generic.List<String> replyto = emailReplyTo // Strip uneccessary spaces ...
Prewitt asked 4/4, 2011 at 12:22

4

Solved

I am trying to use Visual Studio 2012 to build a C++ CLI application targeting .NET 3.5. I've already gotten this working on one machine, by installing Visual Studio 2008, and specifying the v90 p...
Astridastride asked 5/11, 2012 at 3:41

7

Solved

I have a loop where i create some string value based on certain conditions. I did place StringBuilder object outside of the loop and each time i have new row in loop i need to clear StringBuilder a...
Anglin asked 12/7, 2010 at 9:30

8

Solved

My app keeps getting this error (I'm using VS 2013, VB.NET, and Windows 8.1, by the way): Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host wit...

© 2022 - 2024 — McMap. All rights reserved.