.net

Silverlight 3 alternative to FileVersionInfo.GetVersionInfo

Within a Silverlight 3.0 application I want to use the AssemblyFileVersion to display the version information of the application. This is not the same as the AssemblyVersion and is typically retrieved in a .NET application using code such as: var executingAssembly = Assembly.GetExecutingAssembly(); var fileVersionInfo = FileVersionInfo....

.NET wrapper for Windows API functionality

Does anyone know of a .NET managed wrapper around Windows API functionality that is not available in the .NET framework itself? Areas such as window creation and display styles, common UI control manipulation, keyboard/mouse input, file and disk information, memory mapped files etc I have been a regular to visitor http://www.pinvoke...

Will there be more C# or VB programmers for .NET & Silverlight?

Which language is preferred by most developers especially targeting .NET & silverlight? Is it C# or VB.NET? Are there any advantages/disadvantages of both languages when compared with each other? ...

Unable to generate a temporary class (result=1). error CS0009

I have a .NET 3.5 Winform exe. After applying protection using PC Guard, I got the following message while launching it. "Unable to generate a temporary class (result=1). error CS0009: Metadata file "t:\xxx\winform.exe" could not be opened -- 'An attempt was made to load a program with an incorrect format.'" After I click "OK", the pr...

Use .NET in VB6 or classical ASP

Duplicate of Calling .NET methods from VB6 via COM visible DLL Which ways exist to use/call .NET classes/functions/libraries (.net 3.x) in VB6 or classical ASP ? Has anybody experiences with that ? How much effort is necessary to wrap .NET to COM ? Are there tools which help ? ...

How to take the result of a method called Asynchronously?

Hello, to not block the UI of my applications when there is a long operation I use to do: Public Sub ButtonHandler() handles Button Dim auxDelegate as Action auxDelegate = New Action(AddressOf DoAction) auxDelegate.BeginInvoke(AddressOf EndAction,Nothing) End Sub Private Sub DoAction() ''# Do long time operations here...

Analytics API to check which bot visited

Does anyone know how to find out which bot visited your website/page using google analytics API and .Net ? ...

Installing .NET CF 3.5 side by side with standard framework

Hello, We have a machine that needs .NET Compact Framework installed and now we need to install standard .NET Framework 3.5. Any problems or known issues with installing both frameworks together? Thanks. ...

Assembly locations for Visuals Studio Toolbox

Hi, I'm trying to setup my development envrionment on a Windows 7 64-bit edition system. I've installed VS2005 and VS2008 alright. At work, we have several self-developed control libraries for the .NET Compact Framework. Under Windows XP 32-bit I was able to store them in a folder C:\owncontrols and add the folder to [HKLM\...\Microso...

Why isnt Properties.Settings.Default being saved?

I wrote this to quickly test Why arent my settings being saved? The first time i run this i have 3(old)/3(current) elements. The second time i get 3(old)/5(current), third time 5(old)/5(current). When i close the app the settings completely disappear. Its 3 again when i run it. I made no changes to the app. Why arent my settings being...

Post sharp IL level interaction

So I'm looking at PostSharp and I noticed that this isn't using runtime generated proxies but it is actually giving hints to the compilation process to include the aspects within the IL. So my initial thought were wow, how the heck is this done. Any pointers where I should be looking? ...

How to fix the error 'There has been an overflow or underflow in GC memory pressure.'

Hi, I am using C# for programming! We have three load balance servers, it was working before, however we started getting below error now days for our PORTUGUESE website only and If I check the task manager it is an network service (W3WP.exe) taking lots of memory. Once I kill that process from task manager it works fine and again tomor...

HTTP 407 proxy authentication error when calling a web service

I'm working on a .NET app that calls 3rd party web services over the internet. The services do not use SOAP, so we manually construct an XML request document, send it to the service via HTTP, and retrieve an XML response. Our code is a Windows service that is run in the context of a normal Windows domain account, and sits behind a proxy...

CAPICOM, sign document stored in DB

Is it possible to sign a document stored in DB on server using CAPICOM+javascript on client ? I´m developing web/intranet application. User need to attach his signature to document stored in server database - detached signature (p7s file) and upload this signature back on server. How to get document on client ? Is it possible to hash d...

Filtering out bad characters using a Regular Expression

I want to filter out the char ^ before searching something in a database. What will my regular expression look like if i want to achieve that the query will ignore this sign: ^ ? I'm working with VS2008 .net 3.5 and C#. ...

Tweaking my search functionality

I have tested search functionality i have implemented on a live website. I came across some small issues. I can't put special characters in the search box or my application will crash. I tried to solve this using some replaces on the characters it crashes on, but this won't cure the pain. When i entered this sign: * into the searchbox it...

How to use a dll made in vb 6 to c#.net 3.5 application ?

How to use a dll made in vb 6 to c#.net 3.5 application ? Although we have interop feature but it requires to map all the functions of the dll. Is there any other way around that is quick and reliable. Further is there any tool that might convert this vb 6 dll to .net assembly ? Thanks in advance. ...

Partial Classes across Projects

Is it possible to have partial classes across projects. e.g. Project 1 has a Customer Class. Project2 whish is an optional module adds to the customer class by attaching an order class, and utilising the original Customer Class. ...

What does char 160 mean in my source code?

I am formatting numbers to string using the following format string "# #.##", at some point I need to turn back these number strings like (1 234 567) into something like 1234567. I am trying to strip out the empty chars but found that value = value.Replace(" ", ""); for some reason and the string remain 1 234 567. After looking at...

Tell abcPdf to scale the html to fit on a single pdf page

I am using abcPdf to convert an HTML report into a pdf file. The pdf has to be a single landscape A4 page. Do you know if there is any way to tell abcPdf to scale the HTML page to fit on a single page in the pdf? I tried using the Magnify() method, and it scales the content but still breaks it into pages, even though it would fit on one...