Tag: .NET
Running ASP.NET MVC 3 appliction on non MVC reday IIS.
Running ASP.NET MVC 3 appliction on non MVC reday IIS. When you running your MVC app and you got Parser Error Message: Could not load file or assembly ‘System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. Most probably, your IIS server do not have MVC installed. Since MVC is built on top of .NET, so you may install MVC RTM on your server or deploy the necessary assemblies with your application. Reference: Running ASP.NET MVC 3 RC2 on GoDaddy Shared Hosting Basically, in your project references section, set copy local to true
.net MVC with JASIG-CAS
Using official .net Cas client and modify web.config Register casClientConfig Section <configSections> <section name=”casClientConfig” type=”DotNetCasClient.Configuration.CasClientConfiguration, DotNetCasClient”/> <!– Other custom sections here –> </configSections> Place a configuration element directly under the root element. <casClientConfig casServerLoginUrl=”https://server.example.com/cas/login” casServerUrlPrefix=”https://server.example.com/cas/” serverName=”https://client.example.com:8443″ notAuthorizedUrl=”~/NotAuthorized.aspx” cookiesRequiredUrl=”~/CookiesRequired.aspx” redirectAfterValidation=”true” renew=”false” singleSignOut=”true” ticketValidatorName=”Cas20″ serviceTicketManager=”CacheServiceTicketManager” /> Register CasAuthenticationModule with the ASP.NET pipeline by adding it to theandsections as demonstrated in the following configuration blocks. <system.web> <!– Other system.web elements here –> <httpModules> <add name=”DotNetCasClient” type=”DotNetCasClient.CasAuthenticationModule,DotNetCasClient”/> <!– Other modules here –> </httpModules>
log4net in mvc3
log4net may be used for .net appliction to server for logging.
Adding strong name to existing DLL
The dll should have strong name to let you add them to GAC. The procedure follow could help you signing the dll without using source.