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ответов
732 просмотров

VSTO in Excel: The customization does not have the required permissions to execute

At the very beginning. Created a new Excel Workbook from VS2005. Try to save it? Cannot access the .xls file. Try to run it? same error, plus the customization permissions error in the title. Where do I set the permission? EDIT I've read a few SO questions and answers around this and it al...

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

How to not overwrite exsiting config files with websetup

Is it possible to configure a WebSetup project to not overwrite config files? Why? We have several websites that runs in both staging and prod and I would like to have one installer instead of one for staging and one for prod. /Carl

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

Build Providers in .net 2.0

How can I determine the actual filename (App_Code_xxx.dll) of the types (classes) which is being built by my build provider. For instance I have a build provider which injects classes based on some configuration. Say MyNameSpace.MyClass. When this build provider is consumed by the Web App. I jus...

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

Windows login from a user's computer through an intranet web-app WITHOUT prompting for user/pass

I'm creating an intranet web-application in an IE shop and I'm looking to retrieve the user's logged-in computer username without prompting for a username/password combination. This is easy, until the application is placed on a webserver. It seems that every combination I try from here on in re...

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

SHA1 hash different in Vista and XP

In a WinForm application using C#.NET 2.0 (on Vista), I am using SHA1 hash to create a hash from a string and store the hash in a text file (with UTF-8 encoding). I want to use the hash stored in text file to in a condition. When I run the project in Vista it works properly (i.e. the condition re...

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

How can Windows Sidebar Gadget communicate with my desktop app?

I've got a .NET 2.0 Windows desktop application (time-sheets) which i develop and wanted to add a Gadget interface to it (so that app runs hidden and is controlled via the gadget). What is the easiest way to get my gadget to communicate to my app? An idea that i had was to have a built-in web s...

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
голосов
5ответов
477 просмотров

List<t> fill collection performance</t>

I am having performance problem when truing to fill typed list. Below is my simplified code: public static List&lt;Product&gt; GetProducts() { List&lt;Product&gt; products = new List&lt;Product&gt;(); using (DbQuery query = new DbQuery()) //this is...

0
голосов
7ответов
3144 просмотров

What is the fastest way to parse this string

I have a string, that is in the following format: [Season] [Year] [Vendor] [Geography] so an example might be: Spring 2009 Nielsen MSA I need to be able to parse out Season and Year in the fastest way possible. I don't care about prettiness or cleverness. Just raw speed. The language is C# ...

14
голосов
6ответов
24761 просмотров

How to build XmlNodes from XmlReader

I am parsing a big number of big files and after profiling my bottleneck is: XmlDocument doc = new XmlDocument(); doc.Load(filename); This approach was very handy because I could extract nodes like this: XmlNodeList nodeList = doc.SelectNodes("myXPath"); I am switching to XmlReader, but Whe...

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

How can I extract the URL of a Web Reference added to a C# project?

Let's say I add a web reference to a project), I would instantiate it like this: MyWebService.MyClass myClass = new MyWebServive.MyClass(); Is there anyway to get the URL of this web service aside from checking the config file, e.g: myClass.getURL(); at runtime? Does anybody have some ideas?

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

How to determine the latest version number of a GAC assembly

I'm trying to create a diagnostic log for my application that will display the latest version number of an assembly installed in the GAC. For example, there are two versions of the same assembly in the GAC: foo.dll version 1.0.0.0 and foo.dll version 2.0.0.0. I need a function like the followi...

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

Trying to find getAdminStatus method

The SuperAdmin page in my web application has a method call to getAdminStatus() but I cannot find any occurences of this method when searching the entire solution. Is this method part of the .net 2.0 framework. &lt;ItemTemplate&gt; &lt;asp:Label runat="server" ID="admin" Text="&lt;%= g...

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

How do I trigger a PostBack with arguments from Javascript?

This is what I'm doing: Using jquery, I'm popping up a "form" over the page that lets the user search for branches of the company and select the one they want. When the form pops up, they can type in a textbox, and it will do AJAX requests back to the server to return the top n results for what t...

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

Restricting access to a website by IP address range / domain

I would like advice on the best way to restrict access to a weba pplication (using .net 2.0 and II6) based on the clients IP address. The two ways I am considering: 1) Through the server side code - check the client I.P against a list of IP addresses within the web.config. 2) Through IIS by cre...

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

Why does Thread.Join take so long to return?

I'm calling Thread.Join on a ThreadPool thread at the end of a service. The code executed in the thread ends about the same time as Thread.Join is called, but the Join takes 2 minutes to return. Why is it taking 2 minutes for Thread.Join to return. The log: (2009-10-08 14:22:09) Inf: ProcessR...

50
голосов
2ответов
15295 просмотров

yield return statement inside a using() { } block Disposes before executing

I've written my own custom data layer to persist to a specific file and I've abstracted it with a custom DataContext pattern. This is all based on the .NET 2.0 Framework (given constraints for the target server), so even though some of it might look like LINQ-to-SQL, its not! I've just implement...

1
голосов
6ответов
4372 просмотров

ExecuteNonQuery not executing - vb.net

I'm trying to execute a SQL command, but I just can't find out why this is not working. This is how I defined the "execute" function in my class named "clsSQL": ''#... Private m_sConnectionString As String = String.Empty ''#... Friend WithEvents m_objConnection As SqlConnection ...

0
голосов
4ответов
2389 просмотров

How to use HTML pages in a Windows application?

I want to use HTML pages in a Windows application using C#. Can anyone help me?

10
голосов
5ответов
23495 просмотров

Celsius symbol in RichTextBox

I write windows application using C# and .NET2.0. In RichTextBox I would like to show Celsius symbol. How to do it? Is it possible?

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

.NET 2.0 - TimeZone Conversion

I need help in writing a function which should take a datetime object and target timezone and it should return a datetime object after converting it to the target timezone - WHILE considering Day Light Saving of either target or current timezone. Also, need a method to enumerate all available ti...

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

.NET 2.0 application ('Any CPU') running slow on 64-bit OS/processoer

My Windows application is deveoped on .NET 2.0 Framework and is build using 'Any CPU', development enviroment is 32-bit OS + Visual Studio 2005. Now I am deploying this application on 64-bit processoer + 64-bit OS it is running slow. But if I build using x86 (32 bit), it is working fine without...

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

C# Memory Mapped File - Bitmap

Can any help, please&gt; Can anyone provide me with the basics of passing (interprocess) a bitmap? Send &amp; Receive in C# CreateFileMapping, I belive, is still the only way to do this. Many thanks in advance.

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

Export the datagrid data to text in asp.net

Problem:It will asks there is no assembly reference/namespace for Database Database db = DatabaseFactory.CreateDatabase(); DBCommandWrapper selectCommandWrapper = db.GetStoredProcCommandWrapper("sp_GetLatestArticles"); DataSet ds = db.ExecuteDataSet(selectCommandWrapper); StringBuilder str...

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

VB.NET project upgrade VS2005 to VS2008

I have a VB.NET 2.0 project developed using VS2005 Free Edition and I am considering to upgrade it to VS2008 FE, mainly because I have problems once per year, whenever my Temporary Certificate expires. I was wondering if you can point to some resources describing in what parts of the code I shou...

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

Deploying .NET 2.0 sp2

I would like to deploy the .NET Framework 2.0 sp2 redistrbutable (NetFx20SP2_x86.exe) with my app. Do I need to uninstall 2.0 or 2.0 sp1 if they exist on the client machine first, or is it acceptable to simply install 2.0 sp2 over the top? Thanks.

0
голосов
4ответов
260 просмотров

How to SELECT data from SQL Server using .NET 2.0 -- as simple as possible

Easy question: I have an app that needs to make a half dozen SELECT requests to SQL Server 2005 and write the results to a flat file. That's it. If I could use .NET 3.5, I'd create a LINQ-To-SQL model, write the LINQ expressions and be done in an hour. What is the next best approach given tha...

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

RichTextBox links don't do anything

I have a RichTextBox control on a form with some text, some of which are URLs. The DetectUrls property is set to true. The control properly detects my URLs (they're blue, underlined and the cursor changes to a hand when I hover them). However, when I click on them nothing happens (double-click...

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

Is WSE2 obsolete?

I'm attempting to bring some .net 1.1 legacy code into .net 2.0 and some of it relies on the Microsoft.web.services2 web services enhancements. I could have swore I read somewhere about the objects in that dll being packaged into the .net 2.0 framework, or that they were replaced by something el...