Category: Dot Net

Config Error: This configuration section cannot be used at this path ! 0

Config Error: This configuration section cannot be used at this path !

Encountered an error when trying to load the home page after deploying a new site to IIS: Config Error: This configuration section cannot be used at this path. This happens when the section is locked...

Custom tool warning: Cannot import wsdl:portType / wsdl:binding ! [Solution] 0

Custom tool warning: Cannot import wsdl:portType / wsdl:binding ! [Solution]

Was getting the following error while adding a WCF service reference to an MVC application- Custom tool warning: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent...

IE 11 negative margin bug ! [Alternate Solution] 0

IE 11 negative margin bug ! [Alternate Solution]

I had the below class applied on a div tag which had an image inside it. The image was positioned correctly in all other browsers except IE 11. On searching it came out that IE...

Internet Explorer – IE 10 issue with ASP.NET [cookies, javascript, postback issues] 0

Internet Explorer – IE 10 issue with ASP.NET [cookies, javascript, postback issues]

There is a bug in the browser definition files that shipped with .NET 2.0 and .NET 4, namely that they contain definitions for a certain range of browser versions. But the versions for some...

Build Error – error MSB4019 ! [Solution] 0

Build Error – error MSB4019 ! [Solution]

VS2013 solution gives the following error when using the below MSBUILD.exe in command prompt- (works fine in VS cmd prompt) C:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.exe Error- error MSB4019: The imported projec t “C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplications Microsoft.WebApplication.targets” was not...

Handling special characters in web.config file ! 0

Handling special characters in web.config file !

Web.Config files are XML files and require encoding for certain characters. This is usually required in case of maintaining connection strings or key value pairs in the web.config files. The reason being that these...

Setting width of MVC HTML helper DropDownList ! [@HTML.DropDownList] 14

Setting width of MVC HTML helper DropDownList ! [@HTML.DropDownList]

HTML helpers- MVC, HTML helpers are similar to the ASP.NET webform controls. HTML helpers are light weight but do not have Events and ViewState unlike ASP.NET controls. Now, coming back to the topic, it is...

Adding ASP.NET 4.0 application pool to IIS ! 0

Adding ASP.NET 4.0 application pool to IIS !

Not able to find ASP.NET 4.0 in the list of Application Pools in IIS? Follow the below steps- Check if C:WindowsMicrosoft.NETFrameworkv4.0.30319 path is present on the machine. If not, you probably need to Install .NET...

Error: “There is no SoapTransportImporter that understands the transport ‘http://www.w3.org/2003/05/soap/bindings/HTTP/'” in the generated reference / Proxy class. [Solution] 0

Error: “There is no SoapTransportImporter that understands the transport ‘http://www.w3.org/2003/05/soap/bindings/HTTP/'” in the generated reference / Proxy class. [Solution]

Sometime back I came across this error while generating Proxy class from a service WSDL. The Proxy class that got generated had nothing but this error – //—————————————————————————— // <auto-generated> // This code was...

Hosting WCF Service on IIS 7.0/7.5 ! 0

Hosting WCF Service on IIS 7.0/7.5 !

Assuming that you have a WCF Service code ready and you are ready to HOST it on IIS and test it. Make sure you have IIS installed and configured on the machine. If not,...