Upgrading to ASP.Net 2? Why your website might stop working when you do.Get Web Design Tips and Tricks on mps-web-design.com. Upgrading to ASP.Net 2? Why your website might stop working when you do. topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
Asp.Net version 2 was just recently released by Microsoft and contains a feature rich set of classes that can do just about anything imaginable. However if your thinking about hosting your asp.net 2 site on a shared hosting environment there are a few considerations you should know about before you take the plunge. If you have already upgraded you may be wondering why your site that was working fine in version 1.1 but now has problems working in Asp.Net version 2. Code Access Security If you receive one of those generic yellow error messages that say something like the following: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. The Reason? - Code Access Security! As it turns out many shared hosting companies are setting the Security Trust level in the asp.net version 2.0 machine.config files to the default 'Medium' setting then locking it down so it can't be overridden by the application. This is great from hosting perspective but not so good if you are a developer that uses asp.net functions like xml.load from another website, webrequest, webclient, system.net, etc... or many other classes that a default medium trust setting doesn't allow. What can you do? There are a number of considerations on how to rectify this situation and the first is to contact your hosting company and ask them to create a modified version of the medium trust machine.config file to allow for the features you want to implement. Microsoft has provided an article that describes this process and if you're hosting company is not aware of it than shame on them. The article can be found here: How To: Use Medium Trust in ASP.NET 2.0 Give this a good read as it explains not only how to modify medium trust but also how to code for the medium trust settings. If that is not an option you might want to consider recoding your entire website to conform to medium trust, not a very good option, or moving to a hosting company that will work with you for your particular needs. Allowing open socket connections is a security risk for a hosting company, but if you can establish that your code is not malicious a reputable hosting company should provide you with proper security clearance to utilize the rich classes that asp.net version 2.0 has to offer. After all they are claiming to sell you asp.net version 2.0. And if you can't use version 2's classes than you are not getting what you paid for. Over time there will need to be a balance between the hosting companies security needs and the ability of a web developer to utilize the classes that make asp.net version 2.0 so brilliant and I hope that time comes sooner rather than later. Instant Article Submitter. - Amazing Breakthrough Software Stuffs Any Website You Want Full Of Free Targeted Traffic. 15,000 Mb Hosting For $4.95/mo. - 4.95 web hosting, Free domain registration! Free setup and online website builder included. Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
More Articles:1. Get FASTER Download Times By Making BIGGER Web Pages! As a webmaster you already know how important it is thatyour web pages download fast. In a nutshell, if your pagesare slow, then you're losing visitors. And if you're losing visitors, you're losing money.To speed up your download times, most web design experts will suggest that you optimize your GIFs and JPGsso that they download faster. They'll suggest that you makeyour images smaller or remove them altogether. Or they'llsimply suggest that you put less stuff on your pages.All of these methods … 2. eCommerce Web Design Solutions eCommerce web design is a lot more than just putting your company brochure on the net or adding an internet shopping cart to your existing product catalog. There are some fundamental differences between doing business online and doing business the traditional way. Before you design your business web site, you must know what specific goals you desire to achieve with your business web site, determine how best to meet your goals based on your budget, and then determine what software and services yo… 3. Bad Web Design: Strange Cursors I've been to some sites lately which have some pretty fantastic cursors. Youprobably know what I'm talking about - cursors that have little ballsdangling from them, look like a heart or consist of a string of letterswaving as if in the wind.The first time I saw these cursors I thought, 'that's pretty cool, I wonderhow they did that?' The answer was obvious since the cursor required thedownload of a special Internet Explorer plug-in.I see these cursors all over the place. I visit a lot of sites, … 4. Should I Re-design My Site? By Joe Balestrino There are a lot of reasons your site may need a re-design. Some may be more obvious than others. You may have asked yourself the question: Can my site benefit from a re-design? Hopefully, by the end of this article, you will have an answer. The most common reason to redesign a site is that it's outdated. If your site hasn’t been updated in the last 3 to 5 years you may want to have it evaluated. Some new programming has come out over the last few years. Today’s newer sites have cleaner designs… |
||||