Unable to add an assembly created from ASP.Net (4.5) web site to GAC due to...
Hi, I have created an ASP.Net 4.5 Empty website from which I need an assembly as output, which needs to be deployable in GAC. In that, I have updated the MSBuild project property option to "Use Fixed...
View ArticleASP.NET MVC 5 OutputCache Client location on MVC controller action is not...
I am using ASP.NET MVC 5 and FireFox. My controller action doesn't work as expected when using the OutputCache location of "Client". It works when I set the cache location to "Server". Here is the...
View ArticleIncrease asp.net application speed which has many images to
I have an ASP.NET application with MS SQL Server back end. This application takes more time to load. It has multiple images, means multiple profile images scrolling in a listview. The application...
View ArticleSystem.NullReferenceException is being thrown in background worker C#
I have a windows form application which is written in managed c#. In my application on login click i have to validate user credentials with a remote server through web service invocation. When there is...
View ArticleActive Directory Adding user to Group, HRESULT: 0x80072014
I am not sure if this is the proper place to put this thread but I have run into a road block. I am writing a web app that will create groups in Active Directory then add users to those groups. I...
View ArticleMath.Atan2 wrong
Hello.NET 4.5.1Unit test gives different numerical result for debug build if debugger attached or not. <TestMethod()> _ Public Sub Angle() 'Atan2 behaves very strangely on some vectors,...
View ArticleErrors showing up around cast to IPermission
We have noticed an uptick in errors generated from our application that all display the following error with differing stack traces:Description: System.Exception: Unable to cast object of type...
View ArticleReading an xlsx or xls file using Microsoft.Office.Interop.Excel with VS2013...
Hi there !I am trying to read an xlsx or xls file using Microsoft.Office.Interop.Excel with VS2013 on windows 8.1, but I got the following exception... Retrieving the COM class factory for component...
View ArticleCUDA SafeHandle ObjectDisposedException when exiting application
I'm having trouble using the SafeHandle for my unmanaged P/Invokes using the CUDA library. My problem is following. I have created a CUDA P/Invoke library with two methods to create a CUDA...
View ArticleApplication pool fails couple of times in a month
Hi,Currently I am troubleshooting application pool failure issue. This issue comes in production box and I have very limited access for production. In the event log I got same errors which was mention...
View ArticleResourceWriter to generate *.resource file targeting different .NET Versions
Hi,I am using ResourceWriter class for creating *.resources file. My application is running in .NET 4.0. When I add images in the resource file, it adds depedency with .NET version 4.0 System.Drawing...
View ArticleWhat am I doing wrong with Impersonation on HttpListener class?
Hello,I have a weird problem with the HttpListener class. Please consider the following sample application:using System; using System.Collections.Generic; using System.Linq; using System.Text; using...
View ArticleCustom Control is not added to the page on right position
hi,i have created custom control in my page, i used windows forms and placeholders. My page is propertly displayed but my custom control is not displayed in the placeholder where it is written. It is...
View ArticleCreate ZIP file
Hi, Is there any way to know zipped filed creation finished, I used following code to create zip file.public static bool AddZip(string Folder) { try { string ZipFileName; Shell32.ShellClass sc = new...
View Article"No such host is known" error came when execute the Method...
we have 5+ Dns server in our Network and i have added all Dns server in Client Machine NIC card(Go To Advanced TCP/IP Settings - The Second Tab(DNS) - Append The DNS Suffix in Order). when i tried in...
View ArticleMicrosoft.VisualBasic.Compatibility.VB6. is obsolete and supported within 32...
Hi,My Name is Pramod Jaiswal, I am working for an MNC where my job is to migrate the legacy VB6 applications to .Net framework 4.0/4.5.I came across an issue that is related to the use of the DLL...
View ArticlePaging, MemoryMappedFile and GC fun
I have 16GB of data collecting in memory, in a 64-bit c# project using MemoryMappedFile. The data arrives from a network connection on quite a quick transport (a good chunk of data arriving every...
View ArticlePrincipleContext.ValidateCredentials fails when username contains a hyphen...
Hi I'm using the following code which works fine in many locations, on many platforms.using (PrincipalContext principalContext = new PrincipalContext(ContextType.Domain, domain)) { bool valRes =...
View ArticleHow to log when windows service is being stopped by server restart c#
I want to handle when windows service is killed by task manager or by system restart. I tried using below handler inside Timer_Elapsed method of the service timer public void Start() {...
View ArticlePortable class library - SSL certificate ignore support.
Hi,We are developing mobile based project targeting to windows and ios platform. 1. Project has portable class library that is been shared among all this platforms.2. We have asp.net web api services...
View Article