Tag Archives

Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error

I recently began using Visual Studio 2012 for new projects.   I ran into a Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error for my application using MVC 4. After adding the custom membership provider and hooking up the Web.config, the web application failed to load with the following Yellow Screen of Death error. This method cannot

Comments Off on Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error

ASP.NET Error: Could not load file or assembly ‘Some.dll’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

I was testing an ASP.NET application installation on a test server recently and ran into the following error when I ran the application. Could not load file or assembly ‘Some.dll” or one of its dependencies. An attempt was made to load a program with an incorrect format. I hadn’t seen this during development on my

Comments Off on ASP.NET Error: Could not load file or assembly ‘Some.dll’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Injecting Conditional HTML and Content Blocks with ASP.NET MVC Razor

I have been working recently with ASP.NET MVC 3 and the Razor view engine. For part of the work I’m doing, I need to send some content to the browser based upon certain conditions. I described a couple of ways to do this before in this post and this post and I wanted to share

Comments Off on Injecting Conditional HTML and Content Blocks with ASP.NET MVC Razor

Exchange 2007 PowerShell Errors with New-Mailbox Cmdlet and IIS with ASP.NET

I recently was working on a customer implementation of our PeopleProvision solution and I needed to create a new Exchange mailbox for new user accounts in Active Directory. Our customer uses Exchange 2007 and, after installing the Exchange Management Shell that includes PowerShell cmdlets used to create mailboxes, the system seemed ready to go. I kept

Comments Off on Exchange 2007 PowerShell Errors with New-Mailbox Cmdlet and IIS with ASP.NET

ASP.NET: Use Url.Content() from Razor to Resolve Relative URLs

You often need to resolve a relative URL to the proper absolute URL when using server-side programming platforms. Differences between development, test and production environments often mean the web server configuration for the application changes from one environment to another. Linking to resources can become nightmarish when moving from a virtual directory in dev to

MVC Razor Tip: Output Raw Unencoded HTML

I’m working on an MVC Razor project and need to output some raw HTML to disable an HTML text box if the text box is populated with a value. I realized, though, that my initial attempt didn’t render quite the output I expected. My original code to output the  disabled=”disabled” attribute (gotta love XHTML compliance!) was

The controller for path ‘/favicon.ico’ was not found or does not implement IController

I was working on an ASP.NET MVC project today and ran across some favicon.ico errors while troubleshooting another issue. When reviewing my event logs, I kept seeing the following error. The controller for path ‘/favicon.ico’ was not found or does not implement IController. Thankfully, this error is easy to address by adding a route constraint

Comments Off on The controller for path ‘/favicon.ico’ was not found or does not implement IController

ASP.NET MVC Razor and Ternary/Conditional Operators or Other Compound Expressions

Many times we have areas of an MVC Razor view that displays based upon some condition. For example, we may want show a placeholder message if we have a blank string. In this example, we use the C# ternary/conditional operator to test the message length and display a placeholder message if the original message has

Comments Off on ASP.NET MVC Razor and Ternary/Conditional Operators or Other Compound Expressions

Run a Different Version of ASP.NET as a Child Application in IIS

We have a customer that hosts one of our web applications on Windows Server 2003/IIS 6. During a support session recently, I noticed that the customer has a unique setup that I had not seen before. To preserve legacy URLs, the customer deploys this application as a virtual directory under the IIS Default Web Site.

Comments Off on Run a Different Version of ASP.NET as a Child Application in IIS

IIS Application Pool Identity Tricks and Fun

WebAD produces web applications to help you manage your Active Directory environment and we’ve used ASP.NET since version 1.0 of the .NET Framework. In that time we’ve seen lots of great innovations in both the IIS hosting platform and the ASP.NET run-time environment. Sometimes these innovations come at a cost of breaking your current application,

Sign in
classic
Forgot password?
×
Sign up

(*) Required fields

I agree with OptimaSales Terms & Privacy Policy

×