<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic server 500 error in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476847#M12288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably a really pathetic question, but I'd appreciate some help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a Silverlight APIv1.0 app against 9.3.1.&amp;nbsp; I've recently upgraded to 10.0, and so I thought I'd move everything over to APIv2.0.&amp;nbsp; My app works fine when debugging but when I publish the app to IIS I get all sorts of errors.&amp;nbsp; Initially, i was got a "Unrecognized attribute 'targetFramework'" - I quickly worked out that the Application Pooll the app was running against was .Net 2.0.&amp;nbsp; So I created a new "4.0 Intergrated" pool, and then pointed my web application at that.&amp;nbsp; I have checked "basic settings" on IIS7 (win 7 64-bit), and can confirm it's looking at the correct pool.&amp;nbsp; when I look at the pool, it tells me that 1 application is referencing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem now is that I've got a server 500 error.&amp;nbsp; Thinking my code was bad, I created a new Blank Silverlight app on it, dropped a map control on - pointed it at a dynamic layer, and it runs in debug - but exactly the same on iis.&amp;nbsp; I even created an ESRI Standard Silverlight Template app, and built/published it raw and I get the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The laptop was only built this week, is runnign ArcGIS Server 10 with no problems.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I should point out, is that it is fine if it runs as a html page, but I need it to run as an aspx, as I have a web.config with some initial settings that it needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers would be most gratefully received.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 17:40:08 GMT</pubDate>
    <dc:creator>ScottTansley</dc:creator>
    <dc:date>2010-11-05T17:40:08Z</dc:date>
    <item>
      <title>server 500 error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476847#M12288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably a really pathetic question, but I'd appreciate some help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a Silverlight APIv1.0 app against 9.3.1.&amp;nbsp; I've recently upgraded to 10.0, and so I thought I'd move everything over to APIv2.0.&amp;nbsp; My app works fine when debugging but when I publish the app to IIS I get all sorts of errors.&amp;nbsp; Initially, i was got a "Unrecognized attribute 'targetFramework'" - I quickly worked out that the Application Pooll the app was running against was .Net 2.0.&amp;nbsp; So I created a new "4.0 Intergrated" pool, and then pointed my web application at that.&amp;nbsp; I have checked "basic settings" on IIS7 (win 7 64-bit), and can confirm it's looking at the correct pool.&amp;nbsp; when I look at the pool, it tells me that 1 application is referencing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem now is that I've got a server 500 error.&amp;nbsp; Thinking my code was bad, I created a new Blank Silverlight app on it, dropped a map control on - pointed it at a dynamic layer, and it runs in debug - but exactly the same on iis.&amp;nbsp; I even created an ESRI Standard Silverlight Template app, and built/published it raw and I get the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The laptop was only built this week, is runnign ArcGIS Server 10 with no problems.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I should point out, is that it is fine if it runs as a html page, but I need it to run as an aspx, as I have a web.config with some initial settings that it needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers would be most gratefully received.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 17:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476847#M12288</guid>
      <dc:creator>ScottTansley</dc:creator>
      <dc:date>2010-11-05T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: server 500 error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476848#M12289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Scott, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just deployed yesterday a .Net Framework 4 application on IIS 6. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did all the steps you did (I had to install .Net Framework 4 too), and after all this I got 404 error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I resolved this by allowing the ASP.Net 4 Web Extension (it was prohibited after the installation) on the web server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know your error is different, but check if ASP.Net 4 is allowed on your IIS7. And here is a little hint where to find the web extensions on IIS7 (I am still finding my ways around IIS 7):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.msdn.com/b/rakkimk/archive/2007/08/17/iis7-where-is-the-web-services-extensions-option-which-was-there-in-iis6.aspx"&gt;http://blogs.msdn.com/b/rakkimk/archive/2007/08/17/iis7-where-is-the-web-services-extensions-option-which-was-there-in-iis6.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this resolves your problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post your solution if you figure it out, because I will have to deploy on IIS 7 too. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 18:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476848#M12289</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2010-11-05T18:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: server 500 error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476849#M12290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;also make sure your application pool is running in 32bits mode if you are using (serverside) ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 18:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476849#M12290</guid>
      <dc:creator>StevenMorlock</dc:creator>
      <dc:date>2010-11-05T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: server 500 error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476850#M12291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Heh Darina,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&amp;nbsp; Much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you suggested, I read the instructions that you sent through, and registered the web extensions.&amp;nbsp; Still no joy, then noticed what you said about installing .Net 4!&amp;nbsp; As I mentioned in my first post, my laptop has been rebuilt this week. The guy from tech services had installed Visual Studio 2010 before installing IIS.&amp;nbsp; It would appear that .Net 4 therefore does not get properly registered with IIS, even though you can set up the Application Pools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that there is a aspnet_regiis tool, which allows you to install .Net 4 onto IIS.&amp;nbsp; Read here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx"&gt;http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Undertook this for both 32 and 64 bit frameworks, retested my app - and heh presto. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, many thanks for pointing me in the right direction!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you have a great weekend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 22:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/server-500-error/m-p/476850#M12291</guid>
      <dc:creator>ScottTansley</dc:creator>
      <dc:date>2010-11-05T22:38:22Z</dc:date>
    </item>
  </channel>
</rss>

