VBC.exe compilation error in IIS 7 - iis

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.

Related

Asp.net core web api slow in IIS

projects: .net core 2.0
server: windows server 2012 r2, IIS 8.5
.net core web API is slow on each request, Similar issue :
https://github.com/aspnet/AspNetCoreModule/issues/87
But it is fast when running visual studio debug mode.
Update:
it looks like a bug on IIS 8.5 with .net core, but there is no production version of IIS 10.
So I deploy my .net core to Ubuntu 16.04, and it run well.

What will be the minimum iis version required to run asp.net 5 applications?

I'm considering using ASP.Net 5 for a new project, but I need to know what the minimum IIS version will be to host and run this application.
According to ASP.Net 5 Home on Github you need at least Windows 7 or Server 2008 R2 and .NET 4.5.1 for hosting in IIS.
Windows 7 and Server 2008 comes with IIS 7.5.
Also, refer to .NET Framework System Requirements

Can I deploy ASP.NET MVC 5 Application to Windows Server 2003 IIS 6

I created an MVC5 (Framework 4.5) website and need to deploy it into Windows Server 2003. IIS 6 is running on the server. Is there anyway to run project on this server? Or what should I do to make it run? What is the newest technology can be run in Windows Server 2003 and IIS 6?
I think so, yes.
I've done it with 4.0 framework, and i think 4.5 won't be a problem either. Also, no big of a deal. Here is what I've followed:
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx/
Hope it helps.
.NET 4.5 will only run on Windows Server 2008 or later. You would need to downgrade to 4.0.
Unfortunately you would need to downgrade MVC as well as v5 requires .NET 4.5

deploy mvc .net framework 4.5

I have got MVC website. based on .NET Framework 4.5.
I am trying to deploy the website on IIS 6.0
Here are the steps I have taken
Application Pool:
I have created application pool: Company.Attendance.
NOTE: Nowhere it asked me which .NET Version I am using?
Website
a. Create new website.
b. Description: company.attendance
c. IpAddress: Server Ip Address
d. Port: 80
e. Host Header for the website: [I left blank]
f. Path: ../../Views/Home/ [All views are defined here]
g. Permissions: Read, Run, Execute, Write
h. In the website properties, under tab Home Directory I have selected the application pool created above
i. In Home Directory TAB, under Configuration.
j. I inserted aspnet_iapi.dll
When I try to browse the application. I get the following error: Page cannot be found.
Can one tell me detailed steps to deploy mvc application [.Net Framework 4.5] on IIS 6.0 [Windows Server 2003].
Regards
I am trying to deploy the website on IIS 6.0
You can't. .NET Framework 4.5 requires Windows Server 2008 at least as can be seen in the System Requirements page:
System requirements
Supported Operating System
Windows 7 Service Pack 1
Windows Server 2008 R2 SP1
Windows Server 2008 Service Pack 2
Windows Vista Service Pack 2
Windows Vista SP2 (x86 and x64)
Windows 7 SP1 (x86 and x64)
Windows Server 2008 R2 SP1 (x64)
Windows Server 2008 SP2 (x86 and x64)
Hardware Requirements:
1 GHz or faster processor
512 MB of RAM
850 MB of available hard disk space (x86)
2 GB hard drive (x64)
The latest .NET framework version you could install on Windows Server 2003 is .NET 4.0.
You need at least IIS 7.0.
Here are the requirements for .NET 4.5 framework:
http://msdn.microsoft.com/en-us/library/8z6watww%28v=vs.110%29.aspx
You're going to have to use .NET 4.0, which porting your project over shouldn't be too painstaking.
Take your project and change compatibility to 4.0 for framework.
Fix some of the errors, and EF errors you may get, and repush to the IIS 6.0 server.
You need to ensure all the runtimes are installed, and the app is running on the
.NET 4.0 pool.
IIS 6 is part of Windows Server 2003 (and technically XP 64-bit).
.Net 4.5 cannot be installed on Windows Server 2003, thus IIS is not supported.

Where to get Visual Studio LightSwitch 2012 Server Runtime from in Web Platform Installer?

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.

Resources