IX Web Hosting Review

by rbellantoni 6/13/2012 4:51:00 AM

DO NOT HOST WITH IX WEB HOSTING! While it may be tempting as a low cost alternative, we recently ran into an issue where we had set that we didn't want to renew one of our business accounts any longer. A little less than a year later we went in to grab our data and migrate it to a new hosting platform only to find out that they never sent us any notice, not only that, but after a month, they completely delete any data that you had associated with that plan and you cannot get it back.

 

DO NOT HOST WITH THEM!

Tags:

File Does Not Exist. System.IO.FileInfo GetFileInfo(System.String, System.String, System.Web.HttpResponse)

by rbellantoni 5/18/2012 5:25:00 AM

If you're getting this frustrating error in the application error event in the global.asax file and it looks like this:

 

12/12/2012 14:49:23
Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : File does not exist.
Source : System.Web
Help link : 
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : System.IO.FileInfo GetFileInfo(System.String, System.String, System.Web.HttpResponse)
Stack Trace :    at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
   at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

The cause of this is because there is a file missing somewhere either an image file or some other referenced file. Now normally this would not throw an error, but the issue seems to appear due to a bad AppRelative path. You check to see what file/image is missing by drilling down into System.Web.HttpContext.Current.Request and looking at the AppRelativeCurrentExecutionFilePath when inside of the application error event to find out what file is missing. There you will see the bad relative path as well as the file it's looking for. Normally it wouldn't throw an error by having a missing image or referenced file path, but because its a relative path and the property is server side it throws a server level error.

Tags:

How to Check DBNull in C# ASP.NET

by rbellantoni 4/18/2012 5:01:00 AM

Here is a code sample of how to check for DBNull and null values in C# in ASP.NET. 

if (item.OwnerTableView.DataKeyValues[item.ItemIndex]["ContactID"] == null || item.OwnerTableView.DataKeyValues[item.ItemIndex]["ContactID"] == DBNull.Value)

{

}

Tags:

Math.Round not rounding up

by rbellantoni 2/22/2012 4:53:00 AM

If you have a value like 12.1065 and you use Math.Round and it is not rounding to 12.107 like it should and is instead rounding to 12.106. Then this is what you need to do:

Math.Round(12.1065,3,MidpointRounding.AwayFromZero);

Changing the midpoint rounding mode will allow you to round properly!

Tags:

Best Repair Tracker and Service Tracker out there!!

by rbellantoni 2/3/2012 6:41:00 AM

If you looking for a great system to track your repair items or service calls, this system is the best one out there: Repair Tracker. It can take pictures of your items, track orders, search orders, integrate with quickbooks, generate claim checks and even email clients for you!

This software is simple, yet powerful, it can track your service or repair items easily and quickly, as well as give you reports on employee work and time spent. Repair Tracker will save your business time and money and keep your customers happy!

Repair Traq is one of the best repair trackers out there!

Tags:

SSRS Rich Textbox Carriage Return

by rbellantoni 1/24/2012 11:39:00 AM

Consider you have a SQL Server Table with some multiline text data. And that data contains carriage return in it.

Now, if you want to display that data with carriage return in SSRS 2005 textbox, there is no direct way to display it.

Because SSRS 2005 uses VB engine to render the data, where it doesn’t understand line feed-->CHR(10) or Carriage Return -->CHR(13) characters.

So, what is the alternative?

Well, simple we need to use the Replace() function available and replace the specific characters with VbCrLf

 

ex:

=Replace(First(Fields!YourField.Value, "DataSource"),CHR(10),VbCrLf) –>This worked for me.

or

=Replace(First(Fields!YourField.Value, "DataSource"),CHR(13),VbCrLf)

 

In my case, The user was entering the data into SQL Server Database from an InfoPath form and wanted the carriage return to be persisted in the report. And in this case, CHR(10) worked instead of CHR(13).

 

Good to see SSRS 2008 added lot of rich text functionality, where you don't have to deal with these kind of silly things..,

Happy Reporting!

Tags:

Forms Authentication Doesn't Work in IE

by rbellantoni 1/3/2012 5:22:00 AM

In issue that we recently resolved and much trouble. Was that user's were able to login properly to the website using firefox and other browsers, but were not able to log in using any version of Internet Explorer. It just kept booting them back to the login screen. After verifying that it was indeed the forms authentication ticket causing the issue, we finally tracked down the problem. The problem actually the server date time causing the expiration date to be incorrect on the cookie. It seems that for some reason mozilla still logs in fine, but not IE. After fixing the server time it worked fine.

Tags:

NetGear ProSafe VPN Firewall FVS338 review

by rbellantoni 11/17/2011 3:53:00 AM

I'm going to start off by saying that if you plan on buying ANY NetGear switch with the purpose of using as a reliable VPN, DO NOT. NetGear no longer supports the VPN Client software used to connect to it via IPSec and it is instead using TheGreenBow Client IPSec software set. While the software is ok, the interface is cludgy and definitely designed with more tech savy people in mind and is not a good interface used for business purposes. In short, the NetGear switches and firewall's work ok unless you plan on using it for VPN purposes, there are many many other options out there that have better interfaces and more professional VPN setup.

 

If you choose to purchase it anyway, or have already purchased it, feel free to check out this blog post to help get it configured: http://www.dotnetdawgs.com/post/Netgear-PROSAFE-VPN-Client-Configuration.aspx


Tags:

Overriding AspNetSqlMembershipProvider in ASP.NET 4.0

by rbellantoni 11/8/2011 7:45:00 AM

If you are having as much trouble as I did figuring out where the hell all the web.config settings went after creating Users and Roles using the built in administration tools in .NET then read on!

It turns out, that in ASP.NET 4.0, they removed some of the "clutter" from the web.config since some web.configs were getting very large with configurations and developer added keys etc. So they moved it to a machine.Config file inside of the framework folder. What this means is that they took out all the standard settings in the web.config that are required to run a website so you don't have to see them anymore....HOWEVER, they ALSO moved the default membership provider settings as well. So what does this mean?  It means you can't just make a tweak to the default settings, you need to actually implement your OWN web.config provider as follows:

 <membership>
            <providers>
                <clear/>
                <!--<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" 
                 enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
 passwordAttemptWindow="10" applicationName="/"/>-->
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
connectionStringName="test" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="500" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
            </providers>
        </membership>
        <profile>
            <providers>
                <clear/>
                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
            </providers>
            <properties>
                <add name="DisplayName"/>
            </properties>
        </profile>
        <roleManager enabled="true">
            <providers>
                <clear/>
                <add connectionStringName="test" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
                <!--<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>-->
                <add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider"/>
            </providers>
        </roleManager>

Now you can go ahead and change the settings as necessary.

Tags:

.NET | ASP.NET Enterprise Library | SQL SERVER

Using Visual SourceSafe 2005 with Visual Studio 2010

by rbellantoni 11/2/2011 4:28:00 AM

You may notice that when you attempt to add your solution to a source control in Visual Studio 2010, that it only shows a TFS server as a choice. Don’t be alarmed, however, just:

1. Go to Tools > Options.

2. Click Show all settings if not checked, then go to Source Control.

3. Go to Plug-in Selection, then change the dropdown to Microsoft Visual SourceSafe.

4. That’s it!

Tags:

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  July 2017  >>
MoTuWeThFrSaSu
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in