.cshtml file with the following code:
XmlDocument xd = new XmlDocument();
xd.Load("http://remote_server/login/MyService.asmx/GetSearchData?Search="test"
returns "System.Net.WebException: The remote server returned an error: (401) Unauthorized" from some IIS servers but works fine on others:
IIS in Windows 10: Works
IIS server on SmarterASP.net: Works
Started from Visual Studio Community 2013 (version 12) .NET 4.6: Works
Started from Visual Studio Community 2015 (version 14) .NET 4.6: Returns error above
IIS 7 on windows server 2008 R2 .NET 4.0: Returns error above
Is this a IIS configuration issue?
Strange error, but since the webservice was on the same server as this page (windows server, last line above), we changed the address for the xd.load to:
xd.Load("http://localhost/login/MyService.asmx/GetSearchData?Search="test"
Worked fine then.
Related
We have got below error when we are accessing our ASP.NEt WebForms applications which is hosted in IIS 7 but the MVC Application is working though:
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe
we already tried restarting our server and changing app pool current user but still no good result.
Ok what we did is below from Microsoft:
Known issue for security updates 3098779 and 3097997 for the .NET Framework 4.5.1 and 4.5.2 after you install the .NET Framework 4.6 on Windows 8.1, Windows RT 8.1, and Windows Server 2012 R2
What we did is the solution 2 which is to remove KB3098779 and KB3097997 in the windows update in our windows 2012 server and everything's back to normal.
I have an application using framework 2.0 normalmento is running on a windows server 2003 server after migrating to windows server 2012 r2 I am not able to open. generating this error:
Error Message: Unrecognized attribute 'controlRenderingCompatibilityVersion'. Note que attribute names are case-sensitive.
In the application settings within iis is already configured for Framework 2.0 pool.
Someone has gone through something like this?
print:
http://uploaddeimagens.com.br/imagens/iis_error-jpg
I've installed RIA Server, set the relevant DLL's to "copy local = true" but whenever my application tries to access my service/db I get:
Load operation failed for query 'GetWeatherDatas'. The remote server returned an error: NotFound.
I deployed by copying the xap file and the test page from Visual Studio.
Fiddler reports a 404 error
GET /TheWeatherProjectv2-Web-WeatherDataService.svc/binary/GetWeatherDatas?$orderby=it.date_recorded%2bdesc&$take=10080
Are there application settings I need to add to IIS or change something in my web config?
The machine is Windows 7 pro, running IIS 7.5, I'm hosting the application on my own machine.
Many thanks
Resolved this problem by using 'publish' via Visual Studio 2012, I also had to add an IISAPPPOOL\DefaultAppPool account in my SQL Server database
I have upgraded my 2011 Lightswitch app to 2012 RTM and it works fine locally. However, when I try to Publish it to my web server it fails (http://blogs.msdn.com/b/bethmassi/archive/2011/03/23/deployment-guide-how-to-configure-a-web-server-to-host-lightswitch-applications.aspx).
I checked the Web Platform Installer on the live server and it does NOT have "Visual Studio LightSwitch 2012 Server Runtime without Local SQL" (http://msdn.microsoft.com/en-us/library/Gg481779(v=vs.110).aspx) - it only has the 2011 version.
Where do I get the 2012 version from? There is very little info about it on the web.
Ok, I am going to summarise my experience here as it might help others who are upgrading. My app uses the Telerik RadgridView control and Forms authentication. It runs OOB:
1) Firstly, I upgraded to the RTM LS2012 version and rebuild my app - all works fine on Dev.
2) I then tried to deploy to my Win2008 Server with no changes (note: it was running the LS2011 version with no problems). This failed with an "Unknown" message during the publish process. To get around this I unchecked the flag on the Publish wizard "IIS Server has the Lightswitch Deployment Prerequisites".
3) Next problem: The Silverlight App would show "loading" and then show a blank screen. At one point I received a message saying "Debugging resource strings are unavailable". The problem here was that the IIS site that the publishing wizard created had Windows and Forms Authentication (under the IIS Authentication icon). Disabling Windows Auth solved this problem. I was finally able to log on to my app.
4) Hardest problem: The app would log in and work fine for about 20 seconds. Then it would throw a Silverlight unhandled exception: "Unhandled exception at 0x5ceed700 in sllauncher.exe: 0xC0000 094: Integer division by zero". After a lot of Googling someone asked if I was using a VM - the server IS a VM and they suggested I run as a single processor (ie. it was a threading error). I did not try this, instead I tried running from a different PC as a client OOB (I was testing on the server). This then worked.
After all this my app is now up and running as Lightswitch 2012.... hope this helps someone!
Notes: I did NOT install .NET 4.5 (my projects target .NET 4) OR the Lightswitch 2012 requisites on the server. It works with the Silverlight 4 Telerik dlls.
I think all you need is change of .NET framework from 4.0 to 4.5 in your application directory.
It is called "LightSwitch for Visual Studio 2012 - Server Configuration with(out) local SQL Express" and available at the Web Platform Installer.
We're in the process of moving from 2003 IIS6 Web servers to 2008 R2 with IIS 7.5.
We also have a Windows 2008 server running IIS7 and everything works fine on this server.
On the new servers when we go to our crystal reports viewer page we get prompted for windows authentication, then if you type in valid credentials or not you get the following error in firefox:
XML Parsing Error: no element found
Location: http://192.168.10.112/Reports/ReportViewer.aspx?id=49
Line Number 1, Column 1:
^
In IE you just get a blank screen.
The same code runs fine in debug mode on the server in Visual Studio 2010, and works fine on our other servers
Thanks
I know that the answer is too late, but to be a reference for other users.
I faced this problem too in IIS 7.5, and after 5 days investigation, I found that the problem is because the Crystal Reports Viewer running as 32-bit, to solve this issue:
in IIS, go to Application Pools
Select pool that you are using it for your application, normally its "ASP.Net v4.0".
Click on "Advanced Setting..." in the right panel.
set the value "Enable 32-bit Application" to "True"
Also, note that you have to install the oracle client 32-bit version too.