logo
down
shadow

.NET QUESTIONS

"Does not implement IControllerFactory.CreateController" in Visual Studio 2010
"Does not implement IControllerFactory.CreateController" in Visual Studio 2010
should help you out Error went away after I added reference to System.Web.Routing 4.0.0.0. Before this it was indirectly referenced to 3.5.0.0 version (through System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)Thus i h
TAG : .net
Date : November 27 2020, 07:01 PM , By : Gaspard
Tabs for a ASP.NET website
Tabs for a ASP.NET website
To fix this issue there are 1001 ways to accomplish the behavior...you can even go with jQuery Tools and load each tab asynchronously from each page
TAG : .net
Date : November 27 2020, 07:01 PM , By : vits
AccountManagement.UserPrincipal.Current takes 5 seconds
AccountManagement.UserPrincipal.Current takes 5 seconds
may help you . My guess is that since DirectoryServices is geared towards looking up data in a directory, in this case Active Directory, and you are on a single machine, it times out with the request to find a Domain Controller.I assume you want to g
TAG : .net
Date : November 27 2020, 07:01 PM , By : user3863721
Will linq to sql work in an asp.net 2.0 web application?
Will linq to sql work in an asp.net 2.0 web application?
hope this fix your issue The server only needs to understand ".net 2.0". When linq was added in .NET 3.0, the CLR was not updated. As long as everything was compiled on a machine that at least had .NET 3.0, it will work fine.It often looks like a giv
TAG : .net
Date : November 27 2020, 07:01 PM , By : CapsLock
How to use XML namespace prefixes without xmlns="..." everywhere? (.NET)
How to use XML namespace prefixes without xmlns="..." everywhere? (.NET)
it fixes the issue The subject is probably too short to explain it... , In general using DOM Level 2 Core methods you would expect:
TAG : .net
Date : November 27 2020, 07:01 PM , By : Tomi Win
Retrieving OS name
Retrieving OS name
it helps some times Is there any way to get the OS name the user is currently using? , You can use
TAG : .net
Date : November 27 2020, 07:01 PM , By : Deepty Angrish
.Net Regular Expression to get parenthetical text at end of <p> tags
.Net Regular Expression to get parenthetical text at end of <p> tags
This might help you I have a simple pattern I am trying to match, any characters captured between parenthesis at the end of an HTML paragraph. I am running into trouble any time there is additional parentheticals in that paragraph: , Just change the
TAG : .net
Date : November 26 2020, 07:01 PM , By : user3863363
The Project Location is Not Trusted error in Visual Studio
The Project Location is Not Trusted error in Visual Studio
I wish did fix the issue. caspol is the right tool to use to suppress these warnings. Here is the command I use:
TAG : .net
Date : November 26 2020, 07:01 PM , By : user3863341
how to tell if a photo was taken in landscape or portrait? JPEG .NET metadata orientation
how to tell if a photo was taken in landscape or portrait? JPEG .NET metadata orientation
it helps some times Yes, there's an EXIF tag that can store the orientation. Tag number 274, values are documented here. Sample code to read the tags from the JPEG data is available here.
TAG : .net
Date : November 26 2020, 07:01 PM , By : Claire Chi
Winform and ValidateChildren()
Winform and ValidateChildren()
To fix this issue Is it not abnormal, when you have 20 different rules for 20 controls. Lots of things you can do to DRY this out. If rules are the same for several controls, give those controls the same Validating event handler. If you have just a f
TAG : .net
Date : November 25 2020, 07:01 PM , By : Bannu Raka Sivakumar
Why need to mention "Supported by the .NET Compact Framework" for classes members?
Why need to mention "Supported by the .NET Compact Framework" for classes members?
I think the issue was by ths following , No, the CF is a subset of the .NET framework so this wording simply indicates that the type in question is part of the CF. The CF does not include every type - only those that make sense for its purposes. Arra
TAG : .net
Date : November 25 2020, 07:01 PM , By : user3863182
Pass MSI parameters to .NET installer class
Pass MSI parameters to .NET installer class
will help you In InstallShield | Component Properties, right below where you said .NET Installer Class = Yes you put in your .NET Installer Class Arguments. You basically do something like/INSTALLDIR="[INSTALLDIR]\" /FOO=42
TAG : .net
Date : November 25 2020, 07:01 PM , By : user3863162
How to print stack trace of StackOverflowException
How to print stack trace of StackOverflowException
Any of those help Use ADPlus (from Windows Debugging Tools) to force a dump on crash.E.g.
TAG : .net
Date : November 24 2020, 07:00 PM , By : user3862760
OnPropertyChange as an Alternative to Triggers in Entity Framework
OnPropertyChange as an Alternative to Triggers in Entity Framework
To fix this issue Triggers occur whenever an action happens on the database table itself. If you perform an update and have an update trigger, this will happen regardless of whether you use Entity Framework or write an update statement directly again
TAG : .net
Date : November 23 2020, 07:00 PM , By : Michael Andrew Balmf
"User Friendly" .net compatible Regex/Text matching tools?
"User Friendly" .net compatible Regex/Text matching tools?
hop of those help? Have you looked into Expresso? It can "visually" build a regular expression and explain it, but the users will still need to understand some basic regular expressions. It is also .NET-centric and can export code (and I think even D
TAG : .net
Date : November 23 2020, 07:00 PM , By : Vitor Rui Marques Sa
Non-Ascii characters not supported by .net?
Non-Ascii characters not supported by .net?
it should still fix some issue Read section 9.4.2 from the ECMA Standard for C
TAG : .net
Date : November 23 2020, 07:00 PM , By : essian
Linq SqlMethods.Like fails
Linq SqlMethods.Like fails
To fix this issue I don't know how you can make Entity Framework use the "real" LIKE operator, but a possible workaround would be to express a LIKE expression in terms of StartsWith, Contains and EndsWithFor instance :
TAG : .net
Date : November 23 2020, 07:00 PM , By : behnamy01
To check whether the SQL server DB is working properly or not
To check whether the SQL server DB is working properly or not
This might help you The simplest thing that allows you to do this is trying to open up a connection. If it fails to open up the connection, your database (or network) is not working correctly.
TAG : .net
Date : November 23 2020, 07:00 PM , By : Memet P'oYraz
What is the Difference between GC.GetTotalMemory(false) and GC.GetTotalMemory(true)
What is the Difference between GC.GetTotalMemory(false) and GC.GetTotalMemory(true)
I hope this helps you . The parameter defines whether or not to wait till a full garbage collection happens before running or not.See MSDN: Parameters
TAG : .net
Date : November 23 2020, 07:00 PM , By : drewgbarnes
Which version of .NET is available for Xbox 360?
Which version of .NET is available for Xbox 360?
this will help I just spoke to an XNA buddy of mine - the XBOX360 ships with multiple versions: 2.0, 3.0 and 3.5 - derived from the various versions of the .NET CF.
TAG : .net
Date : November 22 2020, 07:01 PM , By : Hansen
Validation (with custom ErrorTemplate) for a DataTemplate
Validation (with custom ErrorTemplate) for a DataTemplate
I hope this helps you . You could define custom ErrorTemplates to both bindings, which define the StackPanel as Validation.ValidationAdornerSite. This way the StackPanel can be adorned instead of the textboxes, whenever an error is detected.See this
TAG : .net
Date : November 22 2020, 07:01 PM , By : kate
is the threadpool shared - .net
is the threadpool shared - .net
will be helpful for those in need A thread belongs to a specific process, it cannot be shared between different processes. This means a thread-pool also belongs to a specific process.IIS is one process and other apps are their own processes. Each pro
TAG : .net
Date : November 22 2020, 07:01 PM , By : user3862190
WPF RichTextBox - Formatting of typed text
WPF RichTextBox - Formatting of typed text
this will help Isn't that the standard behavior? If I highlight text in Word, make it bold, move the cursor next to that text and type, the new text becomes bold too. I'd imagine that MS made the rich text box work similarly to the text area in Word.
TAG : .net
Date : November 22 2020, 07:01 PM , By : Matt
"ResizeEnd" equivalent for usercontrols
"ResizeEnd" equivalent for usercontrols
With these it helps There is no equivalent. A form has a modal sizing loop, started when the user clicks the edge or a corner of the form. Child controls cannot be resized that way, it only sees changes to its Size property.Solve this by adding a Siz
TAG : .net
Date : November 22 2020, 07:01 PM , By : user3862080
How work with common utils project
How work with common utils project
this will help I would recomend having it in a single place and have your other projects reference this, so that all changes will be available, without having to update all copies.The only problem you might face is if you change the signiture signifi
TAG : .net
Date : November 22 2020, 07:01 PM , By : StephTeltz
Using image resource in XAML markup?
Using image resource in XAML markup?
hop of those help? I'm trying to add little icons to my tabs in WPF but having trouble with how to set up the binding. , Use this code. It will work :)
TAG : .net
Date : November 21 2020, 07:01 PM , By : user3861932
How to write an altered COM Structured Storage file to Disk?
How to write an altered COM Structured Storage file to Disk?
help you fix your problem I don't know if P/Invoke is a design-request for your project but if it is not and you need a quick solution you can give a try to my free and open source library for reading/writing Structured Storage files OpenMCDF. It doe
TAG : .net
Date : November 20 2020, 07:00 PM , By : o.yuval
Implementing auditing using Autofac if it support method interception?
Implementing auditing using Autofac if it support method interception?
I think the issue was by ths following , AutoFac has interception capabilities, which rely on Castle DynamicProxy library (same that Castle Windsor uses). Check this website for examples of usage.
TAG : .net
Date : November 20 2020, 07:00 PM , By : zabeena ali
How can a static class be resolved by the Unity Framework?
How can a static class be resolved by the Unity Framework?
this one helps. Unity (or any IoC container framework) is basically a super-factory, creating objects and handing them to you. How is it supposed to create an instance of a static class?Refactor your design to use a non-static class. If necessary cre
TAG : .net
Date : November 19 2020, 07:01 PM , By : scarp1a
How to flush DNS cache in Windows Mobile programmatically?
How to flush DNS cache in Windows Mobile programmatically?
To fix this issue This is a good question and took some diggingI know this answer may be late, but give it a try
TAG : .net
Date : November 19 2020, 07:01 PM , By : Ritesh200
how to set autoplay=true in google audio player?
how to set autoplay=true in google audio player?
fixed the issue. Will look into that further i am using google audio player in asp.net website and i want to set autoplay=true by default,when a page loads. , One solution to many questions use below code :)
TAG : .net
Date : November 19 2020, 07:01 PM , By : will_code_yesterday
Edit dialog, with bindings and OK/Cancel in WPF
Edit dialog, with bindings and OK/Cancel in WPF
may help you . This is an old question, but I recently ran into this and found there is a better way to handle it with .NET 4.5.First, mark your bindings UpdateSourceTrigger as Explicit:
TAG : .net
Date : November 19 2020, 07:01 PM , By : Suprasaad
What does MailMessage.IsBodyHtml do?
What does MailMessage.IsBodyHtml do?
seems to work fine I'm testing sending out some emails via C, but I can't tell what effect setting IsBodyHtml to true has. Regardless of the value, whatever I send in my Body shows up with a content type of "text/plain", and my HTML shows up tags and
TAG : .net
Date : November 18 2020, 07:00 PM , By : user3860820
C# Class Library wont register for COM
C# Class Library wont register for COM
help you fix your problem Alright I found the problem, which was actually caused by two problems. When I would build the project in Visual Studio I noticed that the type library file was not being created. I discovered a warning that told me no class
TAG : .net
Date : November 18 2020, 07:00 PM , By : nemmy05
Robust DateTime parser library for .NET
Robust DateTime parser library for .NET
I wish this help you In addition to TryParse on DateTime, .Net also provides the DateTimeOffset struct which offers access to the UTC offset as another property on the struct, allowing you to store time zone info and datetime info together. MSDN arti
TAG : .net
Date : November 18 2020, 07:00 PM , By : nik333
MySql BulkCopy/Insert from DataReader
MySql BulkCopy/Insert from DataReader
should help you out Aside from using "LOAD DATA IN FILE" MySQL has a non-SQL Standard 'bulk insert' mechanism where you can specify multiple 'values' to be inserted: http://dev.mysql.com/doc/refman/5.0/en/insert.html
TAG : .net
Date : November 17 2020, 07:01 PM , By : user3860592
How do I allow all users access to one route within a website with integrated auth?
How do I allow all users access to one route within a website with integrated auth?
Hope that helps In ASP.NET MVC you should not use the location element in the web.config. Whereas the web forms engine mapped to physical files on disk, the MVC engine using routing. This means that you could inadvertently allow access to a "protecte
TAG : .net
Date : November 17 2020, 07:01 PM , By : user3860515
Reading from a oracle temp table in a separate procedure than the one it was populted in
Reading from a oracle temp table in a separate procedure than the one it was populted in
like below fixes the issue There are a few ways to connect to Oracle from .Net, but in general I assume that at some point you're creating a Connection object and using that to generate commands, etc. You need to re-use that Connection object between
TAG : .net
Date : November 17 2020, 07:01 PM , By : user3860453
Recommendations for IPC between parent and child processes in .NET?
Recommendations for IPC between parent and child processes in .NET?
I hope this helps you . IPC in .NET 3.0+ can be done with WCF and named pipes binding. The most obvious benefit is that you can split your heavy tasks across machines by simply switching the binding. More on this here.Regarding memory footprint you m
TAG : .net
Date : November 17 2020, 07:01 PM , By : Jono_1985
How to get a majority color in an image?
How to get a majority color in an image?
wish help you to fix your issue You can loop through all the pixels in the image and use the getPixel method to determine the RGB value. You can then have a dictionary that store the ARGB value along with a count. You can then see which ARGB value is
TAG : .net
Date : November 16 2020, 07:01 PM , By : user3860280
Rename parameter in a WCF client interface
Rename parameter in a WCF client interface
will be helpful for those in need Use MessageParameter for renaming parametrs:
TAG : .net
Date : November 16 2020, 07:01 PM , By : user3860169
In WPF: Children.Remove or Children.Clear doesn't free objects
In WPF: Children.Remove or Children.Clear doesn't free objects
With these it helps Update: I tried this on another, more cleanly installed, machine. I could not reproduce this on that machine. If I find out what offending (VSStudio) component causes this, I will let you know. , Change public class MyControl : Us
TAG : .net
Date : November 15 2020, 07:01 PM , By : Victor Stoe
Convincing Management to use WCF
Convincing Management to use WCF
I wish this help you Plain-vanilla ASMX does not support WS-Security or any of the other WS-* extensions at all. In order to implement those, you need to use Microsoft's Web Services Enhancements (WSE).WSE was a hold-over solution that Microsoft impl
TAG : .net
Date : November 15 2020, 07:01 PM , By : Pournami Jois
How to access a property in a class used to implement IDispatchMessageInspector on a WCF service (server side)?
How to access a property in a class used to implement IDispatchMessageInspector on a WCF service (server side)?
like below fixes the issue Based on patterns I see the WCF team themsevles establishing, my suggestion would be to have your IDispatchMessageInspector shove the value of the header into the current OperationContext's IncomingMessageProperties diction
TAG : .net
Date : November 15 2020, 07:01 PM , By : jcampbel2
How to generate distinct random numbers per distinct threads in .NET?
How to generate distinct random numbers per distinct threads in .NET?
wish of those help Well how many threads are you actually going to use? That's the limiting factor. If you only need (say) 8 threads then you can just lose 3 bits of information. You could create a "generator factory" which knows how many generators
TAG : .net
Date : November 14 2020, 07:01 PM , By : Hossain Munna
Using a DataSet instead of custom business entities in soa and n-tier architecture
Using a DataSet instead of custom business entities in soa and n-tier architecture
To fix the issue you can do If you use Entity Framework, your entity model doesn't need to match your database schema one to one. That should allow you to keep your entity model stable as the database changes.There are several issues with returning D
TAG : .net
Date : November 13 2020, 07:01 PM , By : bill
.NET assembly loading problem
.NET assembly loading problem
To fix this issue Your approach invokes the worst kind of DLL Hell. Updating a "library" assembly can break all untested apps with no way to get them to repaired by letting them use the old version of the assembly. That's why the CLR doesn't support
TAG : .net
Date : November 13 2020, 07:01 PM , By : Alberto Linao
Code Trivia: optimize the code for multiple nested loops
Code Trivia: optimize the code for multiple nested loops
Hope this helps I came across this code today and wondering what are some of the ways we can optimize it.
TAG : .net
Date : November 13 2020, 07:01 PM , By : user3859253
Is it safe to use ThreadStatic variable in WCF?
Is it safe to use ThreadStatic variable in WCF?
I wish did fix the issue. I would recommend you to use OperationContext. Here's an example of how you could use it to persist some state.
TAG : .net
Date : November 13 2020, 07:01 PM , By : Afiqruzaini Mohsin
Back button in ajax update panel not working
Back button in ajax update panel not working
To fix the issue you can do History.go(-1) is a javascript function that just redirects to the previous page cached in the browser. There is no round trip to the server, the browser just serves the cached page when it first loaded, so form fields wer
TAG : .net
Date : November 12 2020, 07:00 PM , By : user22215
Problem using ‘useLegacyV2RuntimeActivationPolicy’ & supportedRuntime in an application
Problem using ‘useLegacyV2RuntimeActivationPolicy’ & supportedRuntime in an application
will help you I'm not sure exactly what behavior you're seeing for VS2005, but it shouldn't be the case that "most of the Visual Studio used .NET 2.0 but I was able to make use of an assembly targeting .NET 4.0 framework". That config should cause ev
TAG : .net
Date : November 12 2020, 07:00 PM , By : Nathan Hood
I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?
I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?
wish of those help In case anybody runs across the same thing I did: I had created two new config settings (copied from the Debug config). For some reason "Prefer32Bit" flag was set to true, even though the checkbox was greyed out and unchecked in th
TAG : .net
Date : November 12 2020, 07:00 PM , By : Alextrimplez
Is there any way to disable the "double-click to copy" functionality of a .NET label?
Is there any way to disable the "double-click to copy" functionality of a .NET label?
To fix the issue you can do I was able to do it using a combination of the other answers given. Try creating this derived class and replace any labels you wish to disable the clipboard functionality with it:
TAG : .net
Date : November 12 2020, 07:00 PM , By : odurojunior
Verify installation of ASP.NET Ajax Extension
Verify installation of ASP.NET Ajax Extension
this will help Asp.Net Ajax extensions are part of the 3.5 framework, so they should be installed. They live in the System.Web.Extensions assembly.You can verify that that .dll exists by checking your GAC. The .dll's also physically live in the Windo
TAG : .net
Date : November 12 2020, 07:00 PM , By : eginhard
Allow IExtenderProvider control to attach to controls on a UserControl
Allow IExtenderProvider control to attach to controls on a UserControl
Hope that helps If you own the source code to the IExtenderProvider or UserControl, just change the implemenation to 1) have the extender "dig" into the UserControl.Controls property or 2) have the UserControl expose properties that wrap the control
TAG : .net
Date : November 12 2020, 07:00 PM , By : user3858874
Hooking into AppInitialize with WCF service
Hooking into AppInitialize with WCF service
I hope this helps . I'm having issues with my WCF service. I need to do a windsor container injection pre application_start and noticed I can use the AppInitialise method. It works on visual studio debug but when I deploy to IIS the code does not get
TAG : .net
Date : November 12 2020, 07:00 PM , By : Kapil Korpal
Outlook 2003 add-in - Getting COM exception on application shutdown after creating WPF window
Outlook 2003 add-in - Getting COM exception on application shutdown after creating WPF window
With these it helps You need to Invoke Shutdown on WPF window Dispatcher in the same thread after the window is closed.
TAG : .net
Date : November 11 2020, 07:00 PM , By : Rajib Shikder
how can I future-proof migration of a ADO.net local data layer to a future web based interface (web-service or REST)?
how can I future-proof migration of a ADO.net local data layer to a future web based interface (web-service or REST)?
hope this fix your issue Actually what you wanna do is to make your 2-tier application (Application Database) change into an n-tier system (Application(s) App Server Database).This is a complex change because you have to think of security, business l
TAG : .net
Date : November 11 2020, 07:00 PM , By : user3858630
How to have a class in a namespace that has the same name that is part of another namespace in a .net class library
How to have a class in a namespace that has the same name that is part of another namespace in a .net class library
Any of those help Yes, it's possible. However, you should avoid it like the plague. It makes everything much more complicated.Eric Lippert has written a series of blog posts on this very topic recently. Admittedly it's not quite the same issue - he's
TAG : .net
Date : November 10 2020, 07:00 PM , By : Chinni Reddy
Example on System.Speech.Synthesis.TtsEngine?
Example on System.Speech.Synthesis.TtsEngine?
this one helps. I'm wondering why you need to go to such a low level (System.Speech.Synthesis.TtsEngine is intended for people who are writing their own TTS engine) when System.Speech.SpeechSynthesizer already exposes all the features that you descri
TAG : .net
Date : November 10 2020, 07:00 PM , By : user3858432

shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk