Silverlight business application: windows authentication using IIS express not working - silverlight-5.0

When using IIS Express and Windows Authentiction with Silverlight 5 (using silverlight business application template in VS 2012), the status bar is stuck at "authenticating..."
Switching back to the Visual Studio Developer Server, Windows Authentication works.
Please assist.

Solved the issue by applying below.
Need to update extra configurations (at IIS express level), in addition to Visual studio settings.
Go to MyDocuments\IISExpress\config\applicationhost
Search for windowsAuthentication
Updates:
3.1 Under sectionGroup name="authentication" and section name="windowsAuthentication", update overrideModeDefault to "Allow". Default is "Deny"
3.2 Under authentication >> windowsAuthentication, update enabled="true". Default is false.
Save and close
All projects, using Windows authentication and running under IIS express, will start running smoothly.

Related

Why Visual Studio 2017 resets .NET Core web.config file while running

I have been experiencing this weird issue since i have reinstalled my Visual Studio 2017 Enterprise. I have a .NET core application with this following web.confg file.
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="true" />
As you notice, it uses the pass-through authentication. But whenever I run the application through the IDE, it simply overwrites the above line and resets the forwardWindowsAuthToken to false. Which in turns, failed to work in the browser and gives 401 - Unauthorised error. I have reinstalled the VS, reset the settings and even cleared my code repository many times but still no luck.
Any help would be greatly appreciated.
The reason is, you have configured launching project using IIS Express. The web.config file values are required to run it properly. To change the values to use regular IIS, go to project properties and in the Debug tab select Launch: IIS, instead of IIS Express. This will still overwrite your values, but at least IIS integration will work.
You can safely ignore web.config values when you use .NET Core self-hosting, using .exe file, as the web.config is ignored when you self-launch the app that way.

Hosting web service on IIS 7.5 which consumes 64 bit third party DLL throws error Could not load file or assembly or one of its dependencies

we are working on windows 2008 R2.
we have a web service(frame work 4.0) which consumes 64 bit third party DLL. when we run web service from VS 2013 or from IIS 7.5 we got a error saying “Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.”
with the help of stackoverflow we have set the below option in VS 2013
Tools | Options | Projects and Solutions | Web Projects | Use the 64
bit version of IIS Express
and published the same from VS 2013 on IIS 7.5 and it is working :)
now we have published same web service on different machine where Visual studio 2013 is not there and we are getting the same problem again.
“Could not load file or assembly or one of its dependencies. An
attempt was made to load a program with an incorrect format.”
how to make this web service working?
After doing lot of googling i have come across this link debugging-assembly-loading-failures
so with ref to above link if i have fuslogvw.exe, it's easy to find where the problem is.
So to get fuslogvw.exe i have installed SDK for .net framework
Now i got fuslogvw.exe and i configured it as mentioned in debugging-assembly-loading-failures and i browse my web service from IIS Manager and i am expecting errors so i am checking Fusion log and i found no errors there. Confused!!!
now i came back to browser and i found my web service is working :)
So installing SDK fixed the problem.

How to detect whether the client machine has installed silverlight?

i am using silverlight 5 and hosted the SL5 application.
As we all have seen, when we come in the homepage of this website, we will see a message telling us to install silverlight if we haven't installed silverlight. How to detect if the client machine has not installed silverlight ?
if not installed i need to show a custom message and take the user into micorsoft site in order to download the silverlight instead of the install silverlight message.
i have verified the below URL and did the same thing..
http://www.xdevsoftware.com/blog/post/Si...ction.aspx
but i hosted my application and i did the same in the above url but it does not worked..
i got the default result only but not my customized information's if the client doesn't have silverlight.
i am using silverlight 5.
Regards
gopal.s
Please take a look at http://msdn.microsoft.com/en-us/library/cc838126(v=vs.95).aspx
The Silverlight.js file does all the magic. In fact you if you create a new silver light project in Visual Studio 2010 detection of Silverlight and automatic install is all handled for you.
Silverlight Install and Upgrade Experience has all the information on customizing the install experience

I got following error When i open SiteCore website in Visual Studio 4.0

I got the following two errors when I open Sitecore 6.3 website in Visual Studio 4.0:
Error 1 The virtual path
'/sitecore/shell/Applications/Analytics/ReportRunner/DateSelector.ascx'
maps to another application, which is not allowed.
Error 2 Unknown
server tag 'ds:DateSelector'.
I simply install Sitecore 6.3 (website save into c:/inetpub/wwwroot/sitecoresite/website). When I open this site in Visual Studio 4.0, it shows error.
Can any body tell to me how can I open this or what mistake did I make?
As far as I understand your question, you get the error when you browse the newly installed Sitecore website, which is set up to run under ASP.NET 4.0 application pool. If that's the case, then I should inform you that it is supported to run Sitecore under ASP.NET 4.0 application pools starting from version 6.4.0.
So, you have two options here:
setup your application pool to use ASP.NET 2.0 (make sure .NET 2.0 is installed)
upgrade a Sitecore instance to the 6.4.0+ (which might not be acceptable)
Hope this helps.
I'm not sure if you are having issues because of the way you are opening the project, there are a few issues if you open it as a File-System website project you will want to create a Web Application Project and go from there.
You can look at this blog post :
Simplify Sitecore Visual Studio Project Creation (or the previous version) for information on how to setup a Visual Studio Project correctly for Sitecore.
I actually think this might just be as simple as a missing tilde. So rather having
/sitecore/shell/Applications/Analytics/ReportRunner/DateSelector.ascx
you should have
~/sitecore/shell/Applications/Analytics/ReportRunner/DateSelector.ascx

ASMX + external dll

I am working on Silverlight client to Microsoft Team Foundation Server. I am using an ASMX web service to make the actual calls using the TFS api.
Everything works fine when I run it with the visual studio development server, but I cannot figure out how to deploy the app to IIS.
I can get the ASMX web service to work unless it is a call that uses the TFS api. I have tried putting all of the TFS api DLLs in like every directory that I can think of, and even installing the visual studio sdk. Nothing works!
UPDATE 11/15/09 7:50PM EST:
Turns out that the TFS api was trying to create a cache at c:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\, and the IIS_WPG user didn't have access to do so. Easy fix.
The only supported way of installing the TFS API is to install Team Explorer. You could try to GAC just the assemblies you need, but you're on your own [and technically violating the EULA]...
Other things to check:
IIS is running in 32 bit mode
Impersonation is working correctly
Proxy settings
What error do you get? Have you tried attaching a debugger to IIS?