European Windows 2019 Hosting BLOG

BLOG about Windows 2019 Hosting and SQL 2019 Hosting - Dedicated to European Windows Hosting Customer

European SQL 2008 R2 Hosting :: Top 10 Features of SQL 2008 R2

clock May 23, 2011 06:58 by author Scott

Introduction

Microsoft SQL Server 2008 R2 is the latest release of SQL Server. This article will introduce the top 10 features and benefits of SQL Server 2008 R2. The “R2” tag indicates this is an intermediate release of SQL Server and not a major revision. However, there are a number of interesting new features for both DBAs and developers alike. At the time of this article, R2 is available as a CTP (Community Technology Preview). In addition to new features, there are two new editions as well, SQL Server 2008 R2 Datacenter and SQL Server 2008 R2 Parallel Data Warehouse.

Report Builder 3.0

Report Builder is a tool set for developing rich reports that can be delivered over the web. Some of the features of Report Builder include the ability to create reports containing graphs, charts, tables, and printing controls. In addition, Report Builder also supports drill downs and sorting. If you are familiar with the third party tool Crystal Reports, then you have good idea of what to expect from Report Builder.

New features in SQL 2008 R2 / Report Builder 3.0 include: Map Layers, which can hold spatial and analytical data and will integrate with Microsoft Virtual Earth. Indicators, these are gauges used to show the state of one value. Report Parts, this object can be reused or shared between multiple reports. Aggregate Calculating, this allows you to calculate the total value of other aggregate calculated totals.

SQL Server 2008 R2 Datacenter

The new Datacenter edition of SQL Server 2008 R2 is targeted towards Enterprise Edition users who require a greater performance platform. The new edition will support 256 logical processors, high numbers of instances, and as much memory as the operating system will support.

SQL Server 2008 R2 Parallel Data Warehouse

Another new SQL Server edition, Parallel Data Warehouse, formally codenamed “Madison”, specializes in handling extremely large amounts of data. This new version uses massively parallel processing to spread large tables over multiple SQL nodes. The multiple nodes are handled by a propriety Microsoft technology called Ultra Shared Nothing. This new technology is described as a Control Node spreading queries to Computer Nodes, evenly distributed, then collecting the results.

StreamInsight

New in SQL Server 2008 R2 is component called StreamInsight. This interesting component allows streaming data to be analyzed on the fly. Meaning the data is processed directly from the source stream prior to being saved in a SQL Server table. This could be extremely handy if you’re running a real time system and need to analyze data but can’t afford the latency of a committed write to a table first. Examples usually cited for this application include stock trading streams, click stream web analytics, and industrial process controls. Multiple input streams can be simultaneously monitored.

Master Data Services

Master Data Services (MDS) is both a concept and a product. The concept of a Master Data Service is that there is a central data gate keeper of core business data. Data items such as customer billing addresses, employee/customer names, and product names should be centrally managed so that all consuming applications have the same information. The Microsoft example given is a company that has a customer address record in the customer table but a different address in the mailing table. A Master Data Service application would ensure that all tables would have only one correct address. While an MDS can be a homegrown application, SQL Server 2008 R2 includes an application and an interface to manage the central data.

PowerPivot for SharePoint

PowerPivot is an end-user tool that works in conjunction with SharePoint, SQL Server 2008 R2, and Excel 2010 to process large amounts of data in seconds. PowerPivot works like an Excel Pivot Table, and includes analytical capabilities.

Data-Tier Application

A Data-Tier Application (abbreviated as DAC –no idea what the C stands for, and not to be confused with the Windows Data Access Components also abbreviated as DAC ) is an object that stores all the needed database information for a project, such as login, tables, and procedures into one package that can be consumed by Visual Studio. By creating a Data-Tier Application, a SQL Server package version could be saved with each Visual Studio build of your application. This would allow application code builds to be married to a database build in an easily managed way.

Unicode Compression

SQL Server 2008 R2 uses a new algorithm known as Simple Compression Scheme for Unicode storage. This reduces the amount of disk spaced used by Unicode characters. This new format happens automatically and is managed by the SQL Server engine so no programming changes are required of the DBA.

SQL Server Utility

The new SQL Server Utility is a repository object for centrally controlling multiple SQL Server instances. Performance data and configuration policies can be stored in a single Utility. The Utility also includes an Explorer tool where multi-server dashboards can be created.

Multi Server Dashboards

While the SQL Server Management Studio could always connection to multiple servers, each was managed independently with no central view of all of them. Now with SQL Server 2008 R2, Dashboards showing combined server data can be created



European SQL 2008 R2 Hosting :: 10 Tips for Upgrading to SQL Server 2008 R2

clock May 5, 2011 08:19 by author Scott

Upgrading a database server to SQL Server 2008 R2 involves more than just inserting an installation DVD and clicking your way through the wizard. A lot of planning goes into a SQL Server upgrade. In this article, I will share with you 10 tips that should help your upgrade process to go more smoothly. If you're looking for Windows hosting that support SQL 2008 R2, you may try us to be your partner. Please take a look our hosting plan at here. OK, let we start this article..

1. Be aware of the supported upgrade paths

Before you begin planning an upgrade, you need to be aware of Microsoft’s supported upgrade paths. For example, if you are currently running SQL Server 2005 X64 Enterprise Edition, you can’t upgrade to SQL Server 2008 R2 Standard Edition. Your only options are to upgrade to SQL Server 2008 R2 Enterprise Edition or Datacenter Edition.

2. Run the Upgrade Advisor

The Upgrade Advisor, which is a part of the
SQL Server 2008 R2 Feature Pack, is a free utility that is designed to assist you with your SQL Server 2008 R2 upgrade. The tool analyzes your existing SQL Server
deployment and informs you of issues that need to be addressed prior to performing an upgrade.

3. Don’t panic over Other Issues

The report generated by the SQL Server Upgrade Advisor often contains a section called Other Issues. This section exists as a way of informing you of possible issues that may exist, but that the tool is incapable of testing. Therefore, the issues that appear in the Other Issues section may not necessarily be present on your network.

4. Figure out what to do about the Notification Services

If you have SQL Servers that are running the Notification Services, you will need to plan how you want to deal with them. The Notification
Services were discontinued starting with SQL Server 2008, and can’t be upgraded to SQL Server 2008 R2.

5. Verify the hardware and software requirements

If you’re considering an in-place upgrade (rather than a migration), it is critically important to verify that your existing SQL Server meets all the hardware requirements for running SQL Server 2008 R2 and that all the necessary software prerequisites are in place. Check out this full list of the hardware and software requirements.

6. Perform a full backup

Although it should go without saying, you should always perform a full server backup prior to performing a SQL Server 2008 R2 upgrade. The upgrade process usually goes smoothly, but things can and sometimes do go wrong. It’s important to have a way to revert your SQL Server to its previous state if the upgrade does not go as planned.

7. Take care when upgrading the database engine

There are a few things that you should do prior to upgrading the database engine to ensure that things go smoothly. First, if you are running the Analysis Services, make sure you upgrade them before you upgrade the database engine. The Analysis Services must be upgraded first.

Just before the upgrade, temporarily disable any stored procedures. During the course of the upgrade, various SQL-related services will be started and stopped. If you have stored procedures that are configured to run when services start, there is a good chance those stored procedures will interfere with the upgrade.

Also check the Master, Model, MSDB, and TEMPDB databases and verify that they’re set to autogrow (and that there is plenty of disk space available). In addition, be sure to disable database replication prior to performing an upgrade.

Finally, even though SQL Server 2008 R2 is designed to preserve the Max Worker Threads setting, Microsoft recommends setting the Max Worker Threads value to 0. This will cause SQL Server 2008 R2 to automatically calculate the optimal value.

8. Be aware of discontinued features

Microsoft has removed the Surface Area Configuration Tool from SQL Server 2008 R2. Most of the tool’s functionality still exists, but it has been rolled into other areas of the application. For example, protocols, connection, and startup options are now found in the SQL Server Configuration Manager. If you use the Surface Area Configuration Tool from time to time, it’s a good idea to deploy SQL Server 2008 R2 in a lab environment so that you can get a feel for what it takes to manage SQL without this tool.

9. Perform a test upgrade

Before you attempt to upgrade a production database server, try the upgrade in a lab environment. Make a full backup of a domain controller, a DNS server, your SQL server, and any other required infrastructure servers and then restore those backups to isolated lab servers. Once SQL is up and running, try out your upgrade plan in the lab. That way, you can handle any issues that come up before you have to perform a real upgrade.

10. Don’t forget to clean up when you’re finished

When the upgrade is complete, run DBCC UPDATEUSAGE on all of your databases to ensure database integrity. You will also need to reregister your servers and repopulate full text catalogs. If you have disabled replication or disabled stored procedures for the upgrade, you will need to put things back to normal.



Press Release - HostForLife.eu Launches Premier European ASP.NET MVC 3 Hosting

clock May 4, 2011 07:01 by author Scott

HostForLIFE.eu was established to cater to an under served market in the hosting industry; web hosting for customers who want excellent service. HostForLIFE.eu – a cheap, constant uptime, excellent customer service, quality, and also reliable hosting provider in advanced Windows and ASP.NET technology. We proudly announces the availability of the ASP.NET MVC 3 hosting in our entire servers environment.

You can start hosting your ASP.NET MVC 3 site on our environment from as just low €3.00/month only. For more details about this product, please visit our product page at http://hostforlife.eu/ASPNET-MVC-European-Hosting.aspx.

“ASP.NET MVC 3 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application – the UI logic using the view, user-input handling using the controller, and the domain logic using the model. ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD), “said General Manager of HostForLife.eu , Kevin Joseph. “And now, just by paying €3.00/month, you can get professional ASP.NET MVC 3 with us. Really, there are many benefits when you host your site with us. We can fully guarantee you that we will provide the best quality hosting service with you.”

For more information about our site, please visit http://www.hostforlife.eu.

Top Reasons to host your ASP.NET MVC Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation

HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.



Silverlight 4 European Hosting :: Using Silverlight 4 Web Parts in SharePoint 2010

clock May 15, 2010 05:52 by author Scott

Are you looking for an affordable hosting service? Are you looking for good service at affordable prices? Try HostForLife.eu, only with € 3.00/month, you can get a reasonable price with best service. This topic contains only brief information about why you must use Silverlight 4. So, if you want to be more familiar with Silverlight 4, you should try HostForLife.eu.

SharePoint 2010 has built-in support for Silverlight Web Parts, making it easy to get Silverlight applications up and running. But most developers will want to go beyond the basic functionality to create highly integrated experiences using Visual Studio. In this article, We'll look at how to build Silverlight Web Parts that can run in the Sandbox, manipulate SharePoint data using the Client Object Model, and run out of the browser on the desktop.

Silverlight Overview

A number of features make Silverlight 4 a great business application platform. At its most basic level Silverlight is a browser plug-in that runs across a number of platforms (e.g., Windows and Mac) on a number of browsers (e.g., Internet Explorer, Safari, and Firefox). This functionality greatly reduces the amount of code you write, allowing you to focus on your application's business logic and not on the subtle compatibility issues that come with supporting multiple browsers. Silverlight lets you create rich immersive experiences for your users.

Silverlight is .Net. You can use all your knowledge of ASP.Net, Windows Presentation Foundation (WPF), and Windows Forms to program Silverlight. In fact, Silverlight is a subset of WPF. Both WPF and Silverlight use XAML to declaratively define the user experience. Most business applications revolve around some back-end data store such as SQL Server or a line-of-business system such as SAP. Silverlight has extensive data binding capabilities to allow you to quickly bind back-end data the user interfaces. More and more, rich media such as pictures, voice, and video are becoming standard requirements in a business application. Users expect to stream video from the server for training and other business functions such as CEO broadcasts.

Silverlight supports Smooth Streaming technology, which lets you host and deliver HD video from your IIS servers, including SharePoint. Another feature, introduced with Silverlight 3, is the Out-of-Browser (OOB) feature. OOB lets you install and run your Silverlight application out of the browser on the local machine. By surfacing the OOB application on the start menu or desktop, you give a user a more desktop-application-like feel. You can also detect your online status and respond accordingly—for example, caching data locally. The OOB features in Silverlight 4 have expanded this capability to allow your OOB applications to run with full trust and instantiate COM objects.

Another Silverlight feature allows Silverlight controls to communicate with other running Silverlight controls. This means that you can create complex composible applications that work together as single applications. For example, imagine adding two Silverlight applications to a page that could allow the applications to communicate with each and provide a master/detail experience for users. This is similar conceptually to what you do today with Web part-to-part communication. Silverlight also provides a rapid application developer model with great tools such as Visual Studio 2010 and Expression Blend 3 + Sketchflow. The designer and developer workflow that Silverlight provides allows designers to create beautiful and expressive designs, then hand those applications over the wall to a developer who can add deep data integration with line-of-business systems.

Silverlight Out of the Box

SharePoint 2010 contains a number of Silverlight features out of the box, a clear indication that SharePoint is serious about Silverlight and that SharePoint developers should be as well. A Silverlight Web Part lets you add a Silverlight application to your SharePoint site simply by adding a Web Part and setting the path to the Silverlight application's .XAP file.

You can upload Silverlight applications to SharePoint document libraries or other SharePoint folders, which makes it easy for end users to add Silverlight applications to their sites. For example, most users have administrative rights on their My Site. Let’s walk through the steps you could take to add a Silverlight application to your My Site. First you'll need a sample Silverlight application. You can find one by browsing the list of Silverlight samples on the Silverlight.net/Community site. You can choose a sample application that looks interesting to you and download it to your desktop. But in this example, we'll use a weather control that displays the current weather. After you've downloaded that application, upload it to a document library on your My Site. Add the Silverlight application you just uploaded to the right-hand column of your home page. From the ribbon menu put the page into edit mode. Once the page is in edit mode you'll see the Web Part zones. Click on the zone on the right (it should be called Middle Right Zone) to open the insert Web Part dialog.

From the Categories list on the left select Media and Content, then in the Web Parts list select Silverlight Web Part. Click the Add button to insert the Silverlight Web Part into the Middle Right Zone. You'll be prompted to provide the URL to the Silverlight application. Enter the path to the Silverlight control you uploaded to your document library. The easiest way to get the path is to right-click on the Silverlight .XAP file and choose Copy Shortcut from the context menu. After adding the URL to the Silverlight application click ok. Click on Stop Editing from the ribbon menu to exit edit mode. You'll see your Silverlight application running on your page; in this case you can see that it accurately reflects the weather in Redmond.

SharePoint also includes a number of Silverlight controls in the box. The Silverlight Media Web Part lets you easily add video to your SharePoint site by adding the Media Web Part. Let’s look at how easy it is to add video to your SharePoint sites. SharePoint 2010 contains a new library type called Asset Libraries. Asset Libraries are designed to hold media such as pictures and videos. Create a new Asset Library from the create dialog. Upload a Windows Media Video (WMV) file to your Assets Library. Browse to the home page of your site, or wherever you would like to add video. Put the page in edit mode by clicking the Edit button on the Page tab of the ribbon menu.

Once the page is in edit mode, click on the spot in the page where you would like to insert the media player. Clicking inside the page while in edit mode will enable a context-sensitive ribbon tab called Editing Tools. The Editing Tools tab contains two tabs: Format Text and Insert. Click on the Insert tab, then select Web Part from the Web Parts ribbon group. From the Insert Web Part dialog select the Media and Content item from the Categories list and then select Media Web Part. Click the Add button to add the Media Web Part to the page.

Once the Media Web Part control has been added to the page you must select the Web Part to enable another context-sensitive ribbon item called Media. Click on Change Media dropdown to select the video to play. Choose SharePoint from the Change Media dropdown. This will open a browse dialog that will let you pick the video in your Asset Library that you uploaded earlier. The Media ribbon menu lets you set other properties of the media player such as dimensions and style. You can also set the video to loop or start automatically when the page opens.

SharePoint also uses Silverlight internally for some of its functionality. For example, Web Applications such as Word and PowerPoint will use Silverlight to render content.

Access SharePoint Data from Silverlight

SharePoint contains a number of ways that you can access the data contained in Lists and Libraries. One way to access SharePoint from client applications such as Silverlight is via SOAP-based Web Services. These Web Services, still available in SharePoint 2010, cover the widest area of features. Although there are some incompatibilities in Silverlight due to the way Silverlight implements this feature, they are necessary in certain scenarios (e.g., calling search services).

The Client Object is a new feature of SharePoint 2010 that provides a Silverlight-based object model for calling SharePoint. The Client Object is a very lightweight and efficient way to batch call SharePoint to retrieve and update data. The Client Object Model gives you explicit control of not only when and how often you call the server but also over how much data is returned. The Client Object Model is generated from the Server Object Model, SharePoint.dll. So if you're familiar with the Server OM, you'll be familiar with the Client OM.

Another new way to access list and library data is by using RESTful services. SharePoint 2010 exposes all of its data as a RESTful endpoint. You can use the ADO.Net data services against SharePoint’s list data to generate strongly typed classes using the entity framework. This makes reading and writing list and library data very familiar to .Net developers.

Silverlight applications can run in the new Sandboxed solutions of SharePoint 2010 and SharePoint Online. Silverlight applications execute on the client and make a perfect Sandboxed solution because of this. For example, Sandboxed solutions are blocked from making network calls such as Web Service calls. But Silverlight can make these calls, even as part of a Sandboxed solution. This means that by using a combination of Sandboxed solutions for easy deployment and Silverlight client-side features you can achieve many of the same capabilities as Farm-level solutions without any of the security risks to the SharePoint farm. And only Sandboxed solutions can be deployed to the standard SharePoint Online service.

Silverlight Development on SharePoint

With SharePoint 2010, the developer story has come a long way. SharePoint now is integrated into Visual Studio 2010 as a first-class platform. Visual Studio 2010 supports a number of SharePoint project types such as Web Parts, Workflows, Event Receivers, and Modules. You can also import existing .wsp package files that have been exported from saving a SharePoint site as a template or exported from SharePoint designer. You can even upgrade a SharePoint 2007 project created with Visual Studio Extensions for WSS (VseWSS).

SharePoint projects now are Silverlight aware and can deploy and debug Silverlight applications as part of the SharePoint .wsp package file. Let’s walk through the creation and deployment of a simple Silverlight application to SharePoint. Start by opening Visual Studio and creating a Silverlight application. In this example, name the project SimpleSilverlight and click OK. Uncheck the option to host the Silverlight application in a new Web site. You don't need this because it creates a test Web site for your Silverlight project. You will use SharePoint as your test Web site. The Silverlight project opens in Visual Studio and you can use the Silverlight designer to create the application. In this case, you'll use Expression Blend as the designer. In Visual Studio right-click on the MainPage.xaml file and choose Open in Expression Blend from the context menu. Use Expression Blend to create the application.

When you're finished, save and close Expression Blend. Switch back to Visual Studio, which will prompt you to reload the application because it was changed outside of Visual Studio. Next, you'll need to deploy the Silverlight application to SharePoint. You could stop at this point and just distribute your Silverlight .XAP file, as you saw in the earlier example with the weather application. But I wouldn’t recommend this approach because it is a best practice to always deploy applications to SharePoint using a SharePoint package file (.wsp). Add a new empty SharePoint project to your Silverlight solution. Call the empty SharePoint project SimpleSilverlightDeploy. The new SharePoint project wizard will prompt you to choose the location to deploy to and the type of project to create. The default is to create a Sandboxed solution. This is the best choice for Silverlight projects. Next, you need to add a SharePoint Module project item to the SharePoint project.

Modules are the way that you deploy files to SharePoint. Call the Module SimpleApp. By default, a sample file called Sample.txt is created. You can delete this file because it is not needed. In other .Net applications you can add a project reference to another project to include the output of one project in another. But this does not work for deploying a Silverlight application because you don't want a reference to the .dll file; you need a reference to the .XAP file instead. Click on the SimpleApp module node in the solution explorer on the right side of Visual Studio. You'll see a property called Project Output References. Click the ellipse to open the Project Output References collection dialog. Click the add button to add a new reference.

In the properties of the new reference set the property name to the name of the Silverlight Project—in this case, SimpleSilverlight. Set the Deployment Type property to ElementFile and close the dialog. The last step is to edit the Elements.xml file to specify where you want to deploy the file. Edit the file by adding a new File node under the Module node. The path property specifies the relative path to the file in the .wsp package. The URL property specifies the path on the SharePoint Server where you want the file deployed. In this example, we use the WebDav path to deploy the file to the Master Pages document library.

<?xml version=”1.0” encoding=”utf-8”?>
<Elements xmlns=http://schemas.microsoft.com/sharepoint/>
     <Module Name=”SimpleApp”>
           <File Path=”SimpleApp\SimpleSilverlight.xap”
                 Url=”_catalogs/masterpage/Silverlight/SimpleSilverlight.xap” />
     </Module>
</Elements>

You can now press F5 to deploy the solution to SharePoint. Visual Studio builds and deploys the solution to the SharePoint solution gallery and activates the project. It will also open the SharePoint site. You can verify that deployment was successful in a couple of ways. First, from the site settings page open the Solutions Gallery. The Solutions Gallery shows you all the applications that are installed in the Sandbox for that Site Collection. Next you can verify that the Silverlight application was deployed to the Master Pages gallery by browsing to the Master Pages gallery.

The Master Pages gallery is located at http://server/_catalogs/masterpage. To test your new Silverlight application, put the page in edit mode and insert a Silverlight Web Part, just as you did earlier in this article. Click the Add button to add the Web Part and set the URL to the Silverlight application, which from our example will be http://intranet.contoso.com/_catalogs/masterpage/Silverlight/SimpleSilverlight.xap. You may need to resize your Web Part to fit the Silverlight application. Once that is done, click the save icon to exit edit mode.

Debugging Silverlight with SharePoint

Visual Studio makes it easy to debug Silverlight applications in SharePoint. In the SharePoint project that you created in the previous section, right-click on the SharePoint project node and select properties. In the Visual Studio properties window, select the SharePoint tab. The SharePoint tab lets you modify and control the package and deployment process that is used.

For example, maybe you don't want Visual Studio to activate the SharePoint solutions when you deploy. This gives you very granular control over the entire process. But in this case, you're interested in the last property at the bottom of the page. You may need to scroll down to see it. At the bottom of the tab page there is a check box called Enable Silverlight debugging (instead of Script debugging). Check this box to debug your Silverlight application. After you set this property you can set breakpoints in your code just as you would any other .Net project. Visual Studio will do everything to attach the debugger correctly.

Top Reasons to host your Silverlight 4 Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



IIS 7.5 European Hosting :: Microsoft IIS 7.5 Improves Management, Deployment Options

clock May 15, 2010 05:40 by author Scott

With the release of Windows Server 2008 R2 comes an update to the company's Web platform, Internet Information Services. Like R2, IIS 7.5 isn't a massive upgrade, but it does provide some welcome administration improvements. In addition, the new version seems to acknowledge that Microsoft may have made IIS a little too Apache-like in previous iterations.

Few products in the Microsoft portfolio have seen as positive a turnaround as the Internet Information Services Web server.

Nine years ago, IIS was a security nightmare that was regularly exploited by dangerous worms and viruses. But, beginning with IIS 6, Microsoft made significant improvements in the security profile of the Web server—improvements that have erased IIS’ bad security reputation. With IIS 7, Microsoft took many cues from open-source rival Apache, making IIS more modular in its deployment options and even relying on good old configuration files for much of the server’s setup and administration.

Now, with the release of Windows Server 2008 R2, we are seeing an update to Microsoft’s Web platform in the form of IIS 7.5. Like much of R2 itself, IIS 7.5 isn’t a massive upgrade from previous versions; in fact, many of the new features were already available as add-ons to IIS 7.

But, all in all, IIS 7.5 is a welcome update, improving the management and deployment options for the Microsoft Web server.

Interestingly, it also seems like an acknowledgment that, for some Microsoft customers, IIS might have gone too far down the Apache road of (mainly) GUI-free configuration.

This new focus was clear once we fired up the IIS Management Console on Windows Server 2008 R2 and started to configure request filtering for the server. Request filtering makes it possible to build a more secure server configuration that is resistant to common attack techniques such as cross site scripting.

Request filtering was built into IIS in previous versions of the server, but setting it up required editing configuration files. This wasn’t exactly difficult, but IIS 7.5 makes it easier with the option to set up filtering using a standard GUI interface. We found this process to be relatively simple, and we liked that changes made here took effect immediately, without the need to restart the service.

Also new in IIS 7.5 is the graphical Configuration Editor, which is sort of like a regedit for IIS configuration. Using this tool, we could edit and view IIS configuration settings without the need to open up the web.config file.

Another welcome change in IIS 7.5 is the elevation of FTP as a full-fledged part of the server. In previous versions, setup and management of an FTP server in IIS were done pretty much separately from Web server management. In IIS 7.5, FTP administration is fully integrated into the IIS Management Console.

We found this to be a very good implementation of FTP, making it possible to quickly set up secure FTP servers and tie them to my Websites. Especially nice was the ability to easily use virtual host names for the FTP sites. All in all, the FTP implementation in IIS 7.5 is one of the best we’ve seen, even when compared with dedicated FTP server products.

While much of IIS 7.5 is dedicated to improved GUI management, that isn’t the only focus. Admins comfortable in the command line will like the option to manage the IIS server through Microsoft’s PowerShell interface. Using the PowerShell snap-in for IIS 7.5, we were able to use commands to control and view nearly any aspect of the server. This also made it easier to use management scripts, build scheduled tasks and handle remote management.

IIS 7.5 also includes some under-the-hood enhancements, such as hardened application pool security through lowered privileges. In addition, IIS benefits from a large library of extensions and add-on modules that make it possible for businesses to add capabilities to their server implementations.

Top Reasons to host your ISS 7.5 Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



Silverlight 4 European Hosting :: What's New in Silverlight 4

clock May 12, 2010 07:55 by author Scott

Silverlight 4 delivers a full suite of powerful capabilities to business application developers, bringing the best-of-breed .NET platform to browser-based experiences. Silverlight provides an ideal platform for developing and deploying modern business applications for both customer facing and staff-facing applications. Fore more information, you can visit HostForLife.eu. We offer the low price with the best quality. You can start from € 3.00/month. Just click the link..

Business Application Development

Silverlight 4 consolidates its position as the natural choice for building business applications on the Web:

New Features for Application Developers

- Comprehensive printing support enabling hardcopy reports and documents as well as a virtual print view, independent of screen content.

- A full set of forms controls with over 60 customizable, styleable components. New controls include RichTextbox with hyperlinks, images and editing and Masked textbox for complex field validation. Enhanced controls include DataGrid with sortable/resizeable columns and copy/paste rows.

- WCF RIA Services introduces enterprise class networking and data access for building n-tier applications including transactions, paging of data, WCF and HTTP enhancements.

- Localization enhancements with Bi-Directional text, Right-to-Left support and complex scripts such as Arabic, Hebrew and 31 new languages including Vietnamese and Indic support.

- The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change.

- Enhanced databinding support increases flexibility and productivity through data grouping/editing and string formatting within bindings.

- Managed Extensibility Framework supports building large composite applications.

- Exclusive tooling support for Silverlight, new in Visual Studio 2010. Including a full editable design surface, drag & drop data-binding, automatically bound controls, datasource selection, integration with Expression Blend styling resources, Silverlight project support and full IntelliSense.


Developers tools

- Fully editable design surface for drawing out controls and layouts.

- Rich property grid and new editors for values

- Drag and drop support for databinding and automatically creating bound controls such as listbox, datagrid. New datasources window and picker.

- Easy to pick styles and resources to make a good looking application based on designer resources built in Expression Blend.

- Built in project support for Silverlight applications

- Editor with full intellisense for XAML and C# and VB languages.

Empowering richer, more interactive experiences

Silverlight is already in use as a comprehensive platform for building rich experiences both for application and pure media scenarios including HD quality, interactive video through Smooth Streaming. Silverlight 4 introduces additional capabilities to enable creation of ever more rich, appealing high-performance interactive experiences and innovative media experiences:

- Fluid interface enhancements advance application usability through animation effects.

- Webcam and microphone to allow sharing of video and audio for instance for chat or customer service applications.

- Audio and video local recording capabilities capture RAW video without requiring server interaction, enabling a wide range of end-user interaction and communication scenarios for example video conferencing.

- Bring data in to your application with features such as copy and paste or drag and drop.

- Long lists can now be scrolled effortlessly with the mouse wheel.

- Support conventional desktop interaction models through new features such as right-click context menu.

- Support for Google’s Chrome browser.

- Performance optimizations mean Silverlight 4 applications start quicker and run 200% faster than the equivalent Silverlight 3 application.

- Multi-touch support enables a range of gestures and touch interactions to be integrated into user experiences.

- Multicast networking, enabling Enterprises to lower the cost of streaming broadcast events such as company meetings and training, interoperating seamlessly with existing Windows Media Server streaming infrastructure.

- Content protection for H.264 media through Silverlight DRM powered by PlayReady.

- Output protection for audio/video streams allowing content owners or distributors to ensure protected content is only viewed through a secure video connection.

Move Beyond the Browser

Silverlight 3 pioneered the delivery of a new class of Rich Internet Applications to work on the desktop without additional code or runtimes. Silverlight 4 extends this capability:

For Sandboxed applications

- Place HTML within your application enabling much tighter integration with content from web servers such as email, help and reports.

- Provide support for ‘toast’ notification windows, allowing applications to communicate status or change information while the user is working on another application through a popup window on the taskbar.

- Offline DRM, extending the existing Silverlight DRM powered by PlayReady technology to work offline. Protected content can be delivered with a persistent license so that users can go offline immediately and start enjoying their content.

- Control over aspects of UI include window settings such as start position, size and chrome.

For Trusted Applications

- Read and write files to the user’s MyDocuments, MyMusic, MyPictures and MyVideos folder (or equivalent for non-windows platforms) for example storage of media files and taking local copies of reports.

- Run other desktop programs such as Office, for example requesting Outlook to send an email, send a report to Word or data to Excel.

- COM automation enables access to devices and other system capabilities by calling into application components; for instance to access a USB security card reader.

- A new user interface for requesting application privileges access outside the standard Silverlight sandbox.

- Group policy objects allow organizations to tailor which applications may have elevated trust.

- Full keyboard support in fullscreen mode richer kiosk and media applications.

- Enhancements to networking allow cross-domain access without a security policy file.

- Custom Window ‘chrome’ to provide a highly branded experience

Top Reasons to host your Silverlight 4 Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



ASP Net MVC European Hosting :: ASP.NET MVC Request Validation

clock May 12, 2010 07:47 by author Scott

This topic contains information about key features and improvements in the .NET MVC . This topic does not provide comprehensive information about all new features and is subject to change. In case you are looking for ASP.NET MVC Hosting, you can always consider HostForLife.eu and you can start from our lowest Standard Plan € 3.00/month to host your ASP.NET MVC site.

When using ASP.NET MVC to post data that might contain HTML or other potentially dangerous data, the default behavior as of the Release Candidate is to throw an exception, preventing the posting of the data.  This is a well-known feature of ASP.NET that was introduced several versions ago, and the typical way to avoid it (when necessary for the applications function) is to add validateRequest=false either to the @Page attribute or to the <pages /> section in web.config.  Notably, this doesnt actually work with ASP.NET MVC RC (and v1.0 I presume).

The reason for this is because of the way ASP.NET MVC processes requests.  In traditional web forms, the page itself is responsible for handling the request, but in MVC the controller has this responsibility.  The ASPX page in MVC is simply the view, and in fact a particular request might not even render a view, completely bypassing the Request Validation features of the Page.

Instead, request validation has been moved to the controller, which is where any logic for writing possibly dangerous data to the database would reside.  If it is necessary to bypass Request Validation in an ASP.NET MVC application, then the way to achieve it is with an attribute on the controller or action involved.

We were trying to add a post with an <img /> tag in it to test out one of the features of the blog.  Unfortunately, we initially got a request validation exception when we tried to post the content, and after adding validateRequest=false to the <pages /> section in web.config, the error persisted.  A little bit of research revealed the need to update the controller associated with the post (not the one used to render the Add view) with the ValidateInput(false) attribute, like so:

[ValidateInput(false)]
public ActionResult Create([Bind(Prefix=””)] Models.BlogEntry entry)
{

}

Top Reasons to host your ASP.NET MVC Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



ASP Net MVC European Hosting :: 6 Tips for ASP.NET MVC Model Binding

clock May 10, 2010 09:35 by author Scott

This topic contains information about key features and improvements in the .NET MVC . This topic does not provide comprehensive information about all new features and is subject to change. In case you are looking for ASP.NET MVC Hosting, you can always consider HostForLife.eu and you can start from our lowest Standard Plan € 3.00/month to host your ASP.NET MVC site.

Model binding in the ASP.NET MVC framework is simple. Your action methods need data, and the incoming HTTP request carries the data you need. The catch is that the data is embedded into POST-ed form values, and possibly the URL itself. Enter the DefaultModelBinder, which can magically convert form values and route data into objects. Model binders allow your controller code to remain cleanly separated from the dirtiness of interrogating the request and its associated environment.

Tip 1 : Prefer Binding Over Request.Form

If you are writing your actions like this ..

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create()
{
    Recipe recipe = new Recipe();
    recipe.Name = Request.Form[“Name”];

    // ...

    return View();
}

.. then you are doing it all wrong. The model binder can save you from using the Request and HttpContext properties – those properties make the action harder to read and harder to test. One step up would be to use a FormCollection parameter instead:

public ActionResult Create(FormCollection values)
{
    Recipe recipe = new Recipe();
    recipe.Name = values[“Name”];

    // ...

    return View();
}

With the FormCollection you don’t have to dig into the Request object, and sometimes you need this low level of control. But, if all of your data is in Request.Form, route data, or the URL query string, then you can let model binding work its magic:

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(Recipe newRecipe)
{
    // ...

    return View();
}

In this example, the model binder will create your newRecipe object and populate it with data it finds in the request (by matching up data with the recipe’s property names). It’s pure auto-magic. There are many ways to customize the binding process with “white lists”, “black lists”, prefixes, and marker interfaces. For more control over when the binding takes place you can use the  UpdateModel and TryUpdateModel methods.

Tip 2 : Custom model binders

Model binding is also one of the extensibility points in the MVC framework. If you can’t use the default binding behavior you can provide your own model binders, and mix and match binders. To implement a custom model binder you need to implement the IModelBinder interface. There is only method involved - how hard can it be?

public interface IModelBinder
{
    object BindModel(Controller Context controllerContext,
                     ModelBindingContext bindingContext);
}

Once you get neck deep into model binding, however, you’ll discover that the simple IModelBinder interface doesn’t fully describe all the implicit contracts and side-effects inside the framework.  If you take a step back and look at the bigger picture you’ll see that model binding is but one move in a carefully orchestrated dance between the model binder, the ModelState, and the HtmlHelpers. You can pick up on some of these implicit behaviors by reading the unit tests for the default model binder.

If the default model binder has problems putting data into your object, it will place the error messages and the erroneous data value into ModelState. You can check ModelState.IsValid to see if binding problems are present, and use ModelState.AddModelError to inject your own error messages.

Both the controller action and the view can look in ModelState to see if there was a binding problem. The controller would need to check ModelState for errors before saving stuff into the database, while the view can check ModelState for errors to give the user validation feedback. One important note is that the HtmlHelpers you use in a view will require ModelState to hold both a value (via ModelState.SetModelValue) and the error (via AddModelError) or you’ll have runtime errors (null reference exceptions). The following code can demonstrate the problem:

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection Form0
{
    // this is the wrong approach ...
    if (Form[“Name”].Trim().Length == 0)
        ModelState.AddModelError(“Name”, “Name is required”);

    return view();
}

The above code creates a model error without ever setting a model value. It has other problems, too, but it will create exceptions if you render the following view.

<%= Html.TextBox(“Name”, Model.Name) %>

Even though you’ve specified Model.Name as the value for the textbox, the textbox helper will see the model error and attempt to display the “attempted value” that the user tried to put in the model. If you didn’t set the model value in model state you’ll see a null reference exception.

Tip 3 : Custom Mode Binding via Inheritance

If you’ve decided to implement a custom model binder, you might be able to cut down on the amount of work required by inheriting from DefaultModelBinder and adding some custom logic. In fact, this should be your default plan until you are certain you can’t subclass the default binder to achieve the functionality you need. For example, suppose you just want to have some control over the creation of your model object. The DefaultModelBinder will create object’s using Activator.CreateInstance and the model’s default constructor. If you don’t have a default constructor for your model, you can subclass the DefaultModelBinder and override the CreateModel method.

Tip 4 : Using Data Annotations for Validation

.NET 3.5 SP1 shipped a System.ComponentModel.DataAnnotations assembly that looks to play a central role as we move forward with the .NET framework. By using data annotations and the DataAnnotationsModelBinder, you can take care of most of your server-side validation by simply decorating your model with attributes.

public class Recipe
{
    [Required(ErorrMessage=”We need a name for this dish.”)]
    [Regular Expression(“^Bacon”)]
    public string Name { get; set; }

    // ...
}

The DataAnnotationsModelBinder is also a great sample to read and understand how to effectively subclass the default model binder.

Tip 5 : Recognize Binding and Validation As Two Phases

Binding is about taking data from the environment and shoving it into the model, while validation is checking the model to make sure it meets our expectations. These are different different operations, but model binding tends to blur the distinction. If you want to perform validation and binding together in a model binder, you can – it’s exactly what the DataAnnotationsModelBinder will do. However, one thing that is often overlooked is how the DefaultModelBinder itself separates the binding and validation phases. If all you need is simple property validation, then all you need to do is override the OnPropertyValidating method of the DefaultModelBinder.

Tip 6 : Binders Are About The Environment

Earlier we said that “model binders allow your controller code to remain cleanly separated from the dirtiness of interrogating the request and its associated environment”. Generally, when we think of binder we think of moving data from the routing data and posted form values into the model. However, there is no restriction of where you find data for your model. The context of a web request is rich with information about the client.

Conclusion

Model binding is beautiful magic, so take advantage of the built-in magic when you can. We think the topic of model binding could use it’s own dedicated web site. It would be a very boring web site with lots of boring code, but model binding has many subtleties. For instance, we never even got to the topic of culture in this post.

Top Reasons to host your ASP.NET MVC Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



Full Trust European Hosting :: Why Full Trust hosting is not recommended when using a shared ASP.NET or shared Windows hosting plan?

clock May 9, 2010 08:17 by author Scott

This time, we’ll explore a bit about Full Trust. To find complete information, we recommend you to try HostForLife.eu. Only with € 3.00/month, you can get a reasonable price with best service.

The default trust level for ASP.NET web applications is Full, which grants unrestricted permissions. This is a dangerous trust level when working in a shared environment because it allows one web application to interact with the file system of other web applications on the same server.

For example, if you are in a shared environment that physically arranges its shared web applications in a common folder (i.e., C:\Inetpub\wwwroot\WebApp1, C:\Inetpub\wwwroot\WebApp2, …, C:\Inetpub\wwwroot\WebApp3, and so on), one web application could use the following code to display the Web.config contents of all of the other web applications on the server:

For Each folder As DirectoryInfo In parentPathInfo.GetDirectories()
Dim fileOfInterest As String = Path.Combine(folder.FullName, "Web.config")
If File.Exists(fileOfInterest) Then
Dim webConfigReader As StreamReader = File.OpenText(fileOfInterest)
Response.Write(String.Format("<p><b>Data for File {0}:</b></p><p>{1}</p><hr />", fileOfInterest, _                                                 Server.HtmlEncode(webConfigReader.ReadToEnd())))
webConfigReader.Close()
End If
Next

Since connection strings are usually placed in Web.config, the user running the above code would now be able to connect to other customers databases, where there might be sensitive customer information. The point is, if an ASP.NET application is running in full trust, there’s nothing to stop them from reading, creating, modifying, or deleting files in your web application’s file system.

Looking for good Full Trust Windows / ASP.NET Hosting Plans - Try HostForLife.eu.


Fortunately, most web hosting companies follow the advice in Microsoft’s ASP.NET 2.0 Hosting Deployment Guide and place their shared web applications in medium trust. This is accomplished by modifying the machine-level
Web.config file in the %windir%\Microsoft.NET\Framework\{version}\CONFIG folder. Moreover, this setting can be locked by the web hosting company.

Here are the permissions granted by the medium trust level:

Medium
Permissions are limited to what the application can access within the directory structure of the application.
No file access is permitted outside of the application’s virtual directory hierarchy.
Can access SQL Server
Can send email by using SMTP servers
Limited rights to certain common environment variables
No reflection permissions whatsoever
No sockets permission
To access Web resources, you must explicitly add endpoint ‘URLs’ - either in the originUrl attribute of the element or inside the policy file.

The following exceptions have been granted in addition to the ones listed above:
ODBC
OLEDB
Reflection Permissions
Web Permission

The main differences between ASP.NET 1.1 and ASP.NET 2.0 for the trust levels are the following:
In version 2.0, SQL Server access is available at Medium trust level because the SQL Server .NET Data Provider no longer demands full trust. In version 2.0, SMTP Permission is available at Full, High and Medium trust levels. This allows applications to send email.

To protect shared environment, you can also set the CAS (code access security) Level to Custom (some hosting companies do provide these settings). The custom setting is basically medium level with some exceptions including ODBC, OLEDB, sockets, Reflection Permissions and Web Permissions. Hosting company can set these custom permissions and can add more privileges. This setting cannot be overridden though, which is good.

Top Reasons to host your FullTrust Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



Silverlight 4 European Hosting :: How to Use SQL Reporting Services in Silverlight

clock May 6, 2010 08:39 by author Scott

It is important that you understand what the Reporting Services in SQL are all about. Then, you will be able to create a program that can call the SQL Server Reporting Services in Silverlight. With this article, we want to challenge you to try HostForLife.eu. Only with € 3.00/month, you can get a reasonable price with best service. For us, your satisfaction is our pleasure.

You may wonder how you can use the SQL Server Reporting Service in Silverlight. You may probably also want to know what the best practices are for the said process. What are the answers to these questions? Here is the truth: you should know that you cannot use Silverlight when you want to access the SQL server directly. This is because this does not have the ability to do so. You should remember that all the calls will go back to the server through the use of Web Service socket or call.

If you need to utilize the Reporting Service, you will have to create a code for Web Service, which you will use to call it. Once finished, Silverlight will display the result. This is how it works here. Therefore, you can still call the Reporting Service using the Service code just like the other server application like the ASP.Net application.

The SQL Server Reporting Services is something that allows the user to design and organize the reports that you need. This is a tool that you can employ which is suitable for distributing online or through print. You can easily get the results promptly and without delay. Since it is not possible that you can use the SQL Server Reporting Services in Silverlight directly, you can use other programs here. There are actually a few products which allow you to use the Silverlight application for the Reporting Services.

In actuality, the chief obstacle of Silverlight being a development platform for businesses is that it lacks components that can be used in order for a businessman or a company to work with reports. In this case, it will be difficult for the organization to function effectively without the use of the right reporting system. Meanwhile, with the correct software that will allow you to accomplish the job of using the SQL Server Reporting Services in Silverlight, you can leverage the advantages of the two so that you can efficiently have your companys own business intelligence application.

Usually, businessmen make use of the Silverlight Viewer for Reporting Services. This is a product that was first launched before the other applications that allows you to combine the Reporting Services and Silverlight. This program allows you to view the reports in Reporting Services with the utilization of Silverlight applications. This represents a control for Silverlight which is easily incorporated in any of the applications in Silverlight. In this case, it is possible for you to exploit the different sets of features which are available in standard desktop applications. These include dynamic scaling, smooth panning along with animation, sorting interactively, searching and many more.

You can use the Silverlight Viewer on applications that are situated on your html pages as well as with the applications that are out of your browser. There are many reasons as to why you may want to use this program. The first is that it allows you to print the reports right from Reporting Services using Silverlight. Second, this also has several features that you can use without much difficulty.

Top Reasons to host your Silverlight 4 Website with HostForLife.eu

There are many reasons why so many people choose HostForLife over any other web hosting provider each year. Whether you’re beginner or an experience webmaster, HostForLife offers the perfect solution for everyone.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added-benefits you can find when hosting with us:

1. World-class 24x7 Customer Support
Will your hosting company promptly answer questions and resolve issues - at 3 am on a Sunday? Even some providers claiming “24x7” support will not - but HostForLife will. Our outstanding uptime is backed by true 24x7 customer support. An expertly trained technician will respond to your query within one hour, round the clock. You will also get qualified answers. Other hosting companies typically have very low - level support staff during the night or weekends. HostForLife always has knowledgeable, top - level  support standing by, day or night, to give you the answers you need.

2. Commitment to Outstanding Reliability
Reliability, Stability, and Performance of our servers remain out TOP priority. Even our basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. Our state-of-the-art data centers combine servers and SAN storage with full redundancy and operational tools with proprietary service management techniques. Full backup and recovery capabilities are implemented, including redundant power supplies, cooling and connectionsto major data networks.

3. “Right-size” plans for maximum value
HostForLife offers a complete menu of services. IT professionals select only what they need - and leave behind what they don’t. The result is an optimal blend of cost and performance. We offer IT professionals more advanced features and the latest technology - ahead of other hosting companies.

4. Profitable, Stable, Debt-free Business
Financial stability is the bedrock of a hosting provider’s ability to deliver outstanding uptime, cost-effective service plans and world-class 24x7 support.  HostForLife’s customers are assured of our financial integrity and stability - a stark contrast to the ups and downs they may have experienced with other providers.

5. The Best Account Management Tools
HostForLife revolutionized hosting with Plesk Control Panel, a Web-based interfaces that provides customers with 24x7 access to their server and site configuration tools. Some other hosting providers manually execute configuration requests, which can take days. Plesk completes requests in second. It is included free with each hosting account. Renowned for its comprehensive functionally - beyond other hosting control panels - and ease of use, Plesk Control Panel is available only to HostForLife’s customers.

6. 30-Day Money Back Guarantee
HostForLife 30 day money back guarantee ensures you have the ability to cancel your account anytime within your first 30 days under our full 30 day money back guarantee (less one-time account setup free). So what are you waiting for? Sign up today, risk free…

7. Simplicity with FREE 1-Click Installation
HostForLife was designed with ease of use in mind. From one click installations of your favourite website applications to our much talked about drag and drop website builder, you can rest assure your stay with us is going to be a smooth one. HostForLife offers the most extensive set of scripts on the web allowing you to build complicated websites with little or no programming knowledge at all. From blogs to forums to powerful e-commerce solutions, Super Green has something that is right for you.

 



About HostForLIFE

HostForLIFE is European Windows Hosting Provider which focuses on Windows Platform only. We deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.

We have offered the latest Windows 2019 Hosting, ASP.NET 5 Hosting, ASP.NET MVC 6 Hosting and SQL 2019 Hosting.


Month List

Tag cloud

Sign in