0
голосов
3ответов
1431 просмотров

How to convert Windows application from .NET2.0 to .NET3.5

I have problem, when converting Windows application from .NET2.0 to .NET3.5. I do this like so: 1. In Win XP I start VS2008 and open my solution project which consists of 4 projects; 2. On all of these 4 project Properties window in tab "Application" I select target framework value ".NET Framew...

1
голосов
1ответов
305 просмотров

Missing namespaces, LINQ works in web app but not website!

Okay guys, I have an asp.net website set up to target the 3.5 framework, using Linq to Sql. However, the site won't build, and i get missing namespace and assembly exception whenever i try to. Here's the catch, I have installed 3.5 SP1, and I have added the System.Core, System.Data.Linq, System...

2
голосов
1ответов
3041 просмотров

Set System.Windows.Controls.WebBrowser's content to a static HTML literal?

I want to set up inline content of a WPF WebBrowser control: <WebBrowser> <html> <body><b>Inline content.</b></body> </html> </WebBrowser> Or alternatively: Dim wb As New WebBrowser wb.Content = "<html><body><b>...

4
голосов
1ответов
2812 просмотров

WPF: DataBinding a ListBox where each item is a Tab Stop

I just built a WPF form that contains a ListBox. The ListBox has bound to it a list of TextBox controls. I need to make each TextBox control a TabStop so that a user can hit tab, type in a number, hit tab again and type in the next number, etc. Problem is, the ListBox itself catches the tab then...

0
голосов
1ответов
108 просмотров

Client Server Assembly Missing? Db4Objects 7.4

I have downloaded the current version of Db4Objects (7.4) and installed it. It appears to be missing the Client Server assembly Db4objects.Db4o.CS.dll Does anyone know if Client Server has changed with this version? If it has, does anyone have some details about creating a simple Server?

1
голосов
2ответов
1232 просмотров

Snapshot of Objects in Memory

I am writing a C# WinForms app using VS2008. Is there a way I can view all of the objects that my application has loaded into memory?

2
голосов
2ответов
688 просмотров

Callbacks using asynchronous sockets

My asking is quite simple and is about asynchronous sockets, working with TCP protocol. When I send some data with the "BeginSend" method, when will the callback be called? Will it be called when the data is just sent out to the network, or when we are ensured that the data as reached its desti...

1
голосов
1ответов
558 просмотров

Parse string as DateTimeOffset in Expression<func bool>&gt;</func>

Hey, I am trying to create an Expression&lt;Func&lt;T, bool&gt;&gt; in which a string property is converted/cast to a DateTimeOffset so that DateTimeOffset operations can be performed on it. We are using Linq2SQL as our data provider, which does support converting strings to the SQL equivalent ...

5
голосов
2ответов
1055 просмотров

WPF Architecture and Direct3D graphics acceleration

After reading the wikipedia article on WPF architecture, I am a bit confused with the benefits that WPF will offer me. (wikipedia is not a good research reference, but i found it useful). I have some questions 1) WPF uses d3d surfaces to render. However, the scenegraph is rendered into the d3d s...

4
голосов
3ответов
1445 просмотров

Windows Workflow Dynamic, User-Created Workflows

I have a client who's interested in utilizing Windows Workflow Foundation (WF) technology in a web-driven application. I'm a .NET developer, but I have no experience with either WF or SharePoint workflows. Most of what the client wants to do seems to be straight-forward except that they want th...

9
голосов
1ответов
8337 просмотров

Proper way to dispose a BitmapSource

How are you supposed to dispose of a BitmapSource ? // this wont work because BitmapSource doesnt implement IDisposable using(BitmapSource bitmap = new BitmapImage(new Uri("myimage.png"))) { }

0
голосов
1ответов
855 просмотров

Attempt to save HttpContext.Current.Request.Url.AbsolutePath.ToLower() results in UnauthorizedAccessException

The following line: string url = HttpContext.Current.Request.Url.AbsolutePath.ToLower(); results in an unauthorizedaccess exception. This is odd to me, especially since I can hover over the variable and see its value. This is inside a custom class inherited from IHttpModule that runs as aspx...

7
голосов
3ответов
5819 просмотров

WCF NetTCP Binding Over Internet

I have a question. I would like to serve a series of services made with WCF. The client that consumes the services is also .NET with WCF. I would like to have high speed of access, fast response, transport medium to small Data Contracts (primary .net basic data types). The distribution will be o...

1
голосов
3ответов
456 просмотров

.NET3.5 SP1 patch

Is the .NET3.5 SP1 patch cummulative? Means if I roll out .NET3.5 SP1, will it include or support .NET1.1 and 2.0 as well, or do I have to release all three versions in a order?? Thanks

2
голосов
2ответов
1894 просмотров

Setter precedence overriding in WPF?

Look at the line "THIS LINE ####" in following example. &lt;ListBox Grid.Row="0" x:Name="listBoxServers"&gt; &lt;ListBoxItem HorizontalContentAlignment="Stretch"&gt; &lt;StackPanel&gt; &lt;TextBlock&gt;&lt;Run Text="My computer"/&gt;&lt;/TextBlock&gt; &lt;TextBlock Foreground...

4
голосов
4ответов
901 просмотров

Implicit Type Inference only for lambda expressions ? Why ? Confused !

I have the following sample code (used for C# 3.5 study purpose only !). I am making a call to the Sort function that accepts an IEnumerable and a sort function. If I call it using a lambda expression (Case A) the compiler can derive the return type TResult, however when I pass the func SortInt...

19
голосов
3ответов
32524 просмотров

WPF - How to right align a textblock inside a horizontally oriented stackpanel?

This should be so simple - I've been hitting my head against my desk for so long trying to make a seemlingly simple task work (makes me feel like WPF is un-intuitive or buggy)... In any case, I've got a Stackpanel which is set to horizontal orientation. Inside it I've got two TextBlocks. I want...

0
голосов
2ответов
2636 просмотров

IIS7 &amp; 301 Redirects - Folder to File

We're using IIS7 and ASP.NET 3.5. We have updated our website with new pages. Now, there are many links on the internet pointing to our website, however many of those links are now broken due to a change in our directory structure for our new website. I need to have a number of requests, 301 r...

0
голосов
2ответов
538 просмотров

Refactoring the following methods to remove duplicate code

I have a bunch of DAO classes that do something similar for an Entity. I was wondering if anyone can help me with ways to: 1) Simplify this code 2) Stop from duplicating code like this for each entity. public IList&lt;IUser&gt; GetAll() { IList&lt;IUser&gt; users = new List&lt;IU...

3
голосов
1ответов
2768 просмотров

TcpServer - Sending and Receiving Data

I'm having to write a TCP Server for a project at work and I googled around how to. I got an MSDN answer and managed to get it working, but I have no clue how to get data to be able to receive back and forth. The sockets aren't going to be connected more than about 30 seconds MAX (because my boss...

4
голосов
4ответов
3511 просмотров

What ORM frameworks for .NET and Oracle Do You Like Best?

What ORM frameworks for .NET and Oracle Do You Like Best?

2
голосов
2ответов
656 просмотров

Calling custom UrlAuthorization module with every page load

I have implemented a custom UrlAuthorization module as shown here The code is as follows: public class CustomUrlAuthorizationModule : IHttpModule { public void Init(HttpApplication context) { context.AuthorizeRequest += new EventHandler(context_AuthorizeRequest); ...

1
голосов
1ответов
545 просмотров

Mixing DNN modules that use .NET 2.0 and 3.5

I am running a DNN 4.9.x site with a number of custom modules that we've written. They all use .NET 2.0 until I upgraded one of them to use 3.5. Now I'm getting this error on the 2.0 modules error CS0433: The type 'System.Web.UI.UpdatePanel' exists in both 'c:\WINDOWS\assembly\GAC_MSI...

0
голосов
2ответов
2463 просмотров

Could not load file or assembly

I've got an assembly of domain objects. It WAS called company.xpo.domain (it was named that by the contractor that initially named the project, and they are longer with us - we own the software). I did a global rename of the namespace to xpo.domain and I changed the default namespace in the desig...

4
голосов
3ответов
3401 просмотров

Implementing Row-Level Security – (SPs vs LINQ to Objects)

I believe this is more a question about best practices and design than anything else. I tried searching for similar queries regarding this but couldn’t find any. I actually found the Row Level Security with Entity Framework but I believe the context here is a bit different. I will try to explain...

0
голосов
1ответов
1531 просмотров

Crystal Reports Failing after upgrading app to VS2008\.NET 3.5

I'm in the process of upgrading an existing ASP.NET2.0 application to .NET3.5 (moving from VS2005 to 2008 - yes I know I'm late!) and have encountered a problem with Crystal Reports. Basically the following line of code causes the Webdev.WebServer.exe to close and the application to crash (I'm r...

2
голосов
2ответов
1059 просмотров

SQL Server CE "module could not be found" Crash

We are getting following error message in one Windows XP - X86 Exception Source: System.Data.SqlServerCe Exception Type: System.DllNotFoundException Exception Message: Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E...

0
голосов
1ответов
1382 просмотров

How to send email from windows form app with log4net

I have set up log4net in my C# 3.5 windows form application. I am looking for how to send email from a client pc with log4net. The SMTPAppender requires knowledge of SMTPHost and the examples I've seen are for web applications. Is there a way to send email from an application that will work on...

3
голосов
8ответов
2403 просмотров

C# Creating a log system

I was reading the following article: http://odetocode.com/articles/294.aspx This article raised me a lot of question regarding logs. (I don’t know if I should have made this in separated questions… but I don’t want to spam stackoverflow.com with questions of mine) The 1st one is if I should sto...

0
голосов
2ответов
476 просмотров

.NET Routing match all pattern (wildcard) with exceptions

If say I have a route that is defined like this: "{books}/{*all}", then any URL that have a root folder defined will match it (i.e. http://mysite.com/greekbooks/somethingirrelavant.htm). But what if I wanted to go further, and would like to present a custom handler for greekbooks published in 1...