How do I set ISAPI/CGI option in Windows 7 Home Premium? - exception

This article explains how to correct an exception that's often seen when switching an ASP.NET application to .NET 4.0. However, I don't have this option in IIS when using Windows 7 Home Premium. Does this mean the option isn't there at all, or is it just not visible? If it doesn't exist in the GUI, is this being set in the Windows Registry somewhere? I want to be able to correct this exception without upgrading Windows. Is this even possible?
Issue:
Problem in running .net framework 4.0 website on iis 7.0
Fix (see Windows 7):
http://www.iis.net/ConfigReference/system.webServer/security/isapiCgiRestriction
... see this screen shot (in Fix page)
http://i1.iis.net/resources/images/configreference/isapiCgiRestriction_howto_63.png?cdn_id=20120424-001

Had to click on the server name in the tree hierarchy, not the site name. Then the option appeared.

Related

Windows (phone) emulator 8.1/10 stuck at loading the OS

I've been trying to get the emulator to work for days. Previously I tried the Windows Phone 8.1 Emulator as well as the Windows 8.1 Simulator and both were stuck at loading the OS.
Earlier today I installed the new Windows 10 Tools and thought I should give it another try with the new Windows 10 Emulator... And no, still the same result.
What's strange is that, the Hyper-V Manager seems to be doing OK. I can see the app displays correctly on the little Preview window (see the box on the left side of the picture below).
Also, breakpoints are hit, the project seems to be running OK.
As many answers have already suggested, I tried letting it running for an hour, but still nothing came up.
Things that I've also tried include uninstalling all the Virtual Machines as well as repairing the WP 8.1 Emulator, nothing has worked so far.
Please help, this has driven me completely insane. :(
Update
Not sure if this would help, but if I change the Windows Phone Emulator Internal Switch to use Private network instead of Internal, I will get a couple of warnings saying Unable to determine the Host IP address and then the Emulator will show up with the Emergency Call screen. Not much I can do from there as the three buttons on the bottom are not functioning at all.
I understand that changing the connection type is not the right way to do it, but this at least tells me that the Emulator can work, it's just a matter of how.
I believe you have two Windows Phone Internal Switch connections and one seems to be unplugged while the other is running. Disable the one that is unplugged and leave the latter. This worked for me after 2days of tinkering. God speed.
Try the following.
Open the Hyper-V Manager
In the Actions pane, click Hyper-V Settings
In the Server pane, select Physical GPUs
Uncheck, Use this GPU with RemoteFX
Click OK to save/close.
Attempt to start the Windows Phone emulator VM from within Hyper-V Manager or Visual Studio.
I solved this problem by simply adding XDE.EXE as an exception to my Windows Firewall.
Just today
Many times it is not stuck. It just does take too long to start. I have an 8 core processor and it took like 5 minutes to launch, I tought it was stuck but it did launch.
Not sure if this would help, but if I change the Windows Phone
Emulator Internal Switch to use Private network instead of Internal, I
will get a couple of warnings saying Unable to determine the Host IP
address and then the Emulator will show up with the Emergency Call
screen. Not much I can do from there as the three buttons on the
bottom are not functioning at all.
when you set it to private network, Windows can't interact with your WP Emulator. Open Network Adapter, and try disable and try start emulator again, then enable again this adapter if it is not work *
I contacted the Visual Studio Team a couple of weeks ago and looks like they have fixed this issue in the latest update. And here is how I finally got it all working.
Update your Windows 10 TP to the latest version (currently 10074).
Install the latest Visual Studio 2015 (currently RC).
Install Windows 10 developer tools preview from here (I got
some weird errors with Error code: -2147023294. Ignore them, go
straight to the next step).
Install the standalone Windows SDK for Windows 10 Insider
Preview from here.
Install the Pre-release Microsoft Emulator for Windows 10 Mobile
from here.
That's all! After all these are done, both my Simulator and Emulator are loading up fine.
In my case, deleting the internal switch from Hyper-V virtual switch manager helps, whenever you run your app using emulator as the target, it'll add a new internal switch by itself and the emulator will run normally (no longer stuck on loading screen)
The problem is, I have to do it every single time I restart my PC
The workaround steps to install the Windows SDK and Emulator are no longer needed.
We have released a fix as of 7PM PDT 30 April 2015 for the setup error
Windows 10 SDK 10.0.10069 : The installer failed.
User cancelled installation. Error code: -2147023294"
New setups should no longer encounter this issue.
For existing installations, and for more information, see this forum post:
https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/
This worked for me:
Go to Windows Defender.
Add exclusion following path: "C:\Users\UserName\AppData\Local\Microsoft\XDE\YourEmulatorVersion"
YourEmulatorVersion - for example 10.0.14393.9
2 days, tried all that is posted here but nothing worked! Finally, since it is a lot easier nowadays to (re)install windows without loosing your files (3 hours including updates), I just resorted to that. Same thing happened, but then I saw the alert that I had not yet activated my VS to run in developer mode :) Did that, and voila, the emulator now works.
If this might be helpful: my problem started when I installed Android Studio and disabled Hyper-V from Android. Enabling it back for VS just couldn't get me to run it again. But I hear there is a way to run both Android & VS emulators using VS emulator for Android. I will try to see how that works later...
I know the question is old, but none of the above answers worked for me so I write down my two cents:
Go to Hyper-V console and remove all emulators
Go to Devices Management, under network adapters tree node, delete all virtual switches
Run an emulator from Visual Studio and see the magic happen

Xamarin studio 5.7 won't run after installation

I installed the Xamarin studio for windows which is a bundle of MonoDevelop and GTK#. I double click and nothing happens.
First thing, this is the log from the IDE.
Second thing, Bug 10558 Is the same problem but unfortunately post dates back to 2013 which about version 4.0. The fix they mentioned which is updated MonoDevelop.Core.dll file did not work.
3rd thing, GTK# bin directory is added to the environment variable, a couple of posts on the internet says that something wrong with "Win32 DLL search path", unfortunately no steps to help.
4th thing, I tried Xamarin universal installer but I press continue and nothing happens.
Update: I have Windows 7 Professional 64-bit with .NET Framework 4.0 installed.
Update 2: It used to work with me before. I don't know what has changed after I formatted my PC few months ago. I found this link on Bug 10558 which might be helpful but I did not understand it. Also found this patch which I didn't know how to apply it.
Any help is appreciated.
The exception you meet, is a typical one when running binaries compiled against .NET 4.5 on a .NET 4.0 only system.
Microsoft did move some key types between assemblies, which led to such exceptions, and there is no way to fix that except upgrading your system to .NET 4.5.
For Xamarin/Mono guys, they should modify the installer to inform end users about this change. They should also update web pages, such as this MonoDevelop page, which still says 4.0 is enough (no, 4.5 is required),
http://www.monodevelop.com/download/

Primary reference could not be resolved?? (VB.NET)

I am trying to connect vb.net 2010 to an SQL database using the MySQL DLL file, however whenever I compile it I am getting the following error:
Warning 1 The primary reference "MySql.Data" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". SQL
I have tried it on my desktop as well (also running vb 2010 on windows 8.1) however it won't compile, however on a windows 7 PC it compiles with no issue, despite the fact that the settings appear to be the same.
Any ideas?
Unload the modeling project by right clicking on it in Solution
Explorer window and choosing Unload Project.
Then right click and click edit projectname.modelproj.
Then add following code to it.
<PropertyGroup>
<ResolveAssemblyReferenceIgnoreTargetFrameworkAttributeVersionMismatch>true</ResolveAssemblyReferenceIgnoreTargetFrameworkAttributeVersionMismatch>
</PropertyGroup>
Change in your project properties the target framework version to 4.5
or add a reference with lower version to match your own version (3.5, 4.0)

Sencha Touch Documentation Live Preview

I've just installed Aptana Studio3 with senchatouch 2.
I would like to use the documentation which is installed with the Sencha sdk, everything seems displayed fine but I have no way to get Live Preview in the example. When I go on line on the sencha site it's ok.
I'm under Windows 7 64 bits with last version of Chrome.
Would somebody got similar problem?
You cannot directly run the application. You need to host it on your own local web server, I use Apache Tomcat. Copy the entire downloaded Sencha Touch SDK. Start server and hit the url.
http://{your ip}:{port}/AppServerName/sencha-touch-2.0.1.1/examples/kiva/index.html
This should work.

(IIS) 7 Configuration - Visual Web Developer

I develop small web base ASP applications that basically store and display data from a backend MsAccess database.
The application websites are developed and tested on my local machine (the finished work eventually gets published to a company web server).
To run the development web server on my XP machine I did not load any additional software. I believe that I was running IIS 5 ? and this setup was running 100%.
I just loaded a Visual Web Developer – Express Edition to help my development and this after two hours of installation time it appears that it gave me an upgrade to my IIS (to version 7) without notifying me if I wanted to load that.
Now all the development .asp pages on my machine no longer run.
Note: the initial pages appear but anytime I hit a “submit” button I get the error:
destination page can not be found or is no longer available
Is this a IIS 7 configuration issue?
Where do I go to change the configuration ? what needs to be changed to get a .asp page to “post”?
Can I Uninstall the IIS seven and get back to the older version if IIS ?
on IIS7 ASP is disabled by default. you need to activate that in the IIS7 config. I belive it is an ISAPI Module.
Which version of Windows XP are you running? If you have anything below Proffessional, you probably got upgraded to II6 and not II7 - there is no II7 for lesser versions.
Moving on to what to do if you have II7. (I'm running Vista, but I believe these configuration tools look roughly the same).
Open the IIS Manager from Administration Tools (under Start/Programs)
Expand your web server (the node with your local computer name), then expand Sites and select the site you want to activate ASP for.
Under "IIS" there is a setting called "ASP". On the right hand side of the configuration tool there is a bar with labeled "Actions" - I believe you need to find the Start option under Manage Web Site.
IIS is part of the OS. So unless you upgrade your OS, it will remain the old version.
If you are using Windows XP 32-bit, then IIS 5.1 is there.
If you are using Windows XP 64-bit, then IIS 6. is there.
One point is that Visual Web Developer is for ASP.NET development mainly. So if you are developing classic ASP, it does not help much.
If now all your classic ASP pages fails, can you test with a simple hello world page? If you can see that page without a problem, then actually IIS serves ASP without a problem.