Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:59:30+00:00 2026-06-05T17:59:30+00:00

I’ve recently encountered a problem designing a web page. I needed to have rounded

  • 0

I’ve recently encountered a problem designing a web page. I needed to have rounded corners and gradient background. For IE6-8, Firefox and Chrome I’ve solved it using CSS3Pie. As Pie doesn’t work on IE 9 I came up with SVG gradients. As I tested on my local machine there was no problem. Everything ok. But when I pasted on my VS2010 Proyect nothing happened, as the .svg wasn’t found. Never reached? or VS2010 problem?. Here is my code:

default.aspx

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>Sample</title>
    <style type="text/css" media="screen">
    .svgWorkPlease
    {
        border-radius: 100px;
        box-shadow: 0px 2px 4px #999;
        margin:20px;
        height:500px;
        width:500px;
        background-repeat: repeat-x;
        background-position-x: 0px;
        background-position-y: 100%;
        filter:none;
        background-image: url(gradients.svg);
        background-size: 100% 200%;
    }
    </style>
</head>
<body>
    <div class="svgWorkPlease">Hmmmmm....</div>
</body>
</html>

gradients.svg

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg">
  <defs>
    <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
    </linearGradient>
    <linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:rgb(0,255,255);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
    </linearGradient>
  </defs>
  <rect x="0" y="0" width="100" height="100" style="fill:url(#grad1)" />
  <rect x="0" y="100" width="100" height="100" style="fill:url(#grad2)" />
</svg>

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:59:31+00:00Added an answer on June 5, 2026 at 5:59 pm

    I think I might be a little late to this game, but if you’re still having this issue, then I may have a solution for you:

    Cassini (the ASP.Net Development Server) can’t serve SVG. The solution that worked for me (and consequently for my entire development team) was to get IIS running and configure the project to run using IIS as the server environment. (Another solution is to just use inline SVG data within the page content, but I don’t recommend that; I find it messy.)

    That was the solution that was presented to me by various threads here on SO and one or two webpages here and there, the links to all of which I forgot to archive. Unfortunately, I also ran into authentication problems, and had to research a separate solution to that as well. Here’s my compiled list of instructions that I sent out to my dev team (compacted a bit, with less detail, so as not to become a book):

    Note: most of the following steps require either an administrative account on your local machine, or an Active Directory administrator account if you’re on an AD domain (or ask the domain admin to give you local admin privileges — that’s what I did).

    Enable IIS and Windows Authentication

    Note: if this doesn’t work for you, then you may need to install IIS from scratch.

    1. Go to Start > Control Panel > Programs and Features > Turn Windows Features on and Off
    2. In the feature list, check the box next to Internet Information Services, then expand the tree and navigate to Internet Information Services > World Wide Web Services > Security and check the box next to Windows Authentication. Click OK.

    Configure IIS

    1. Open the Start menu and enter “IIS” in the search box. Press Enter/Return to open it.
    2. Add a new site, making sure to use the correct application pool (my app was MVC, relying on .NET 4.0) and point the directory to the local directory where you store your copy of the project (I keep mine in C:\Projects\). Make sure you’re pointing to the root folder of the web application, not the root folder of the project (the correct folder will directly contain your Models/Views/Controllers folders if you’re using MVC). Give the site a port number (just make something up, something memorable, but don’t use “80” if you plan on testing multiple projects on this machine at the same time). Click OK.
    3. In the configuration pane for the main server at the top of the tree, select MIME types and make sure that there is an entry in the list that looks like “.svg” | “image/svg+xml” — add it yourself if it’s not there.
    4. In the configuration pane for your new website, select Authentication. Disable all forms of authentication except for “Windows Authentication” — enable that one.

    Note: if the ASP.NET v4.0 application pool is not in the list in step 2, follow these contingency steps:

    Application Pool Contingency

    Note: these steps are only for use in case ASP.NET v4.0 is not an option when selecting an Application Pool in IIS Manager.

    1. Open a command terminal.
    2. Type cd C:\Windows\Microsoft.NET\Framework64 (the Framework64 folder name may be different, so you may need to just look around the C:\Windows\Microsoft.NET directory to find it). Press Enter/Return.
    3. Type dir to list the contents of this folder. Look for a folder name like v4.0.30319 and cd into it.
    4. Type aspnet_regiis -ir. Press Enter/Return.
    5. Once it does its thing, close the terminal window and close/reopen IIS Manager, then go enable “Windows Authentication” again.

    Now, to preview your website, configure the VS2010 project to point to http://localhost:<port> where <port> is the port number you entered in step 2 of Configure IIS. You also need to configure the project for Windows Authentication as well.


    Please note that these instructions have only been personally tested on Windows 7 Enterprise edition with IIS 7.5. Even if your environment is identical to mine, your application may not be, and therefore you will likely need to modify a few of my steps.

    I hope I’ve been helpful and not redundant here. I thought I might just compile all the steps together in one place, rather than just hand you a bunch of links and say “good luck.” If you (or anyone) would prefer further detail on the steps above, I can be more explicit; I’m just assuming a certain level of familiarity with Windows, IIS, and Visual Studio.

    If I find the links I mentioned above, I will edit this post and include them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.