Configuration :: Running MVC Site On IIS6 - Configuration?
Aug 11, 2010
I am having serious issue running a MVC web site from IIS 6 especially with Windows authentication mode. I know its very simple but missing some ting between. Succeeded configuring MVC on IIS 6. Now Trying to enable Windows Authentication mode on MVC Web Site, Steps included in my configuration
- enabled windows authentication mode in web.config
- Enabled Integrated Windows Authentication on IIS web site under Directory Security.
- Given permissions to a Domain group (eg: asiaDomainGrp) [Read, Write] Do i need to add ASP.NET Machine accountIUSR_<machines name> under this?
During the intial loading, I am trying to query Active Directory to get authenticated user's full name to display on default page, this is not success full due to some issue, later I changed to "HttpContext.User.Identity.Name". Now I could able to access Default page from the web server, but real heck is here. For some reason IIS is using NT AUTHORITYANONYMOUS LOGON.
[Code]....
I have separated two servers as Web server/Database server.
View 4 Replies
Similar Messages:
May 1, 2010
I've created a site using Visual Web Developer 2008 Express Edition (ASP.NET 3.5) but the server hosting it runs ASP.NET 2.0. I'm getting some odd errors running the live site. Is there anything I need to be aware of? Do I need to make any changes to the web.config file (that was generated in VWD) or anything else?
View 2 Replies
Jun 17, 2010
I have uploaded site on web server but I am having the following error.
"Could not load file or assembly 'MySql.Data, Version=6.1.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.1.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
View 4 Replies
Mar 21, 2011
am looking to add a contact page to my asp site that I am running vie IIS6.0I have created the page but just need help with the code i would also like to send the user to a thanks page once the Web Form has been sent.It also has a drop down menu and the email is sent to that address! If someone could help with the coding ect that would be a massive help. The codeing I have so far:
[Code]...
View 4 Replies
Jul 23, 2010
I have a fully dynamic application that uses UrlRewriting.Net that works perfectly within the visual studio environment. As you can see from the rules within the web.config file below, UrlRewriting.Net rewrites the destination as "~/index.aspx?URLPath=$1&URLString=$2", basically index.aspx searches the database for the page properties and builds the page based on the parameters passed. There are no physical files for the website, only index.aspx with all pages and its webparts build dynamically on the fly.
The application is compiled as ASP.NET 3.5 and runs on a Windows Server 2003 x64 standard edition.
To my knowledge the configuration you see in the web.config below should work in iis6, however does not
. Does the installment of UrlRewriting.Net require configuration in iis6 as well?
<!-- Web config file start -->
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="robo.webProfile">
<section name="webProfileSettings" type="WebProfileBuilder.WebProfileConfigurationSection, WebProfileBuilder, Version=1.3.0.0, Culture=neutral, PublicKeyToken=01d50f1f82943b0c" allowLocation="true" allowDefinition="Everywhere" />
</sectionGroup>
<section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<robo.webProfile>
<webProfileSettings className="ProfileUtil" nameSpace="CustomNameSpace" directory="CodeFiles" fileName="ProfileUtil" />
</robo.webProfile>
<urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
<rewrites>
<add name="SiteWideRewrite" virtualUrl="^(.*)/(.*).html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/index.aspx?URLPath=$1&URLString=$2" ignoreCase="true" />
<add name="SiteWideRewrite_2" virtualUrl="^(.*)/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/index.aspx?URLPath=$1&URLString=$2" ignoreCase="true" />
</rewrites>
</urlrewritingnet>
<appSettings>
<add key="MediumImageFolder" value="C:Users" />
<add key="SiteUrl" value="http://www.mysite.com" />
</appSettings>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="default" connectionString="Data Source=mydbSQLEXPRESS;Initial Catalog=CoreCms;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="LocalSqlServer" connectionString="Data Source=mydbSQLEXPRESS;Initial Catalog=CoreCms;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<profile defaultProvider="CoreCms.ProfileProvider" inherits="CoreCms.Profiles.SiteProfile">
<providers>
<add name="CoreCms.ProfileProvider" type="System.Web.Profile.SqlProfileProvider" applicationName="/" connectionStringName="LocalSqlServer" />
</providers>
</profile>
<roleManager enabled="true" />
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</providers>
</membership>
<webParts>
<personalization defaultProvider="AspNetSqlPersonalizationProvider">
<authorization>
<allow users="*" verbs="enterSharedScope" />
<allow users="?" verbs="enterSharedScope" />
</authorization>
</personalization>
</webParts>
<authentication mode="Forms" />
<authorization>
<allow users="*" verbs="enterSharedScope" />
<allow users="?" verbs="enterSharedScope" />
</authorization>
<customErrors mode="Off" />
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<webServices>
<protocols>
<add name="HttpSoap" />
<add name="HttpPost" />
<add name="HttpGet" />
<add name="Documentation" />
</protocols>
</webServices>
<httpModules>
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpHandlers>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
</configuration>
<!-- Web config file end -->
View 4 Replies
Apr 7, 2010
got this error trying to view my WebSite.A name was started with an invalid character. Error processing resource 'http://localhost/lala/'. Line 1, Position 2
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
-^
The virtual directory I'm creating with all default setting. Later tryed to give full access, but it did nothing.Used an emty Web application and Web Site projects and got the same error. I'm using MSVS 2010 RC with ASP.NET 4.0.
View 1 Replies
Jun 18, 2010
I have an .ASPX page that runs some C# code-behind for about 60 seconds after the page is requested. After 60 seconds, the page appears as expected in Internet Explorer.During this 60 second time period, IIS will not serve new requests for OTHER .ASPX pages. However, .HTM files continue to be served fine. The CPU is only at 1%.Is it true that IIS only can process one .ASPX request at a time? This can't be true. All IIS settings are default.
View 1 Replies
Feb 22, 2011
I've written a singleton class that exposes the web.config properties in a nice get property kind of way.
I want a Load method to parse the data in the config and set the public properties, and I want to throw exceptions (so they are logged in the EventLog) when a configuration key is missing or can't be parsed.
I tried placing the Load() code in Application_Start of the global.asax but then remembered this will only be run once, or until the application restarts.
Where is the best place to put code that you need to run 'everytime' your site is started/run by the user? I basically want the website to stop functioning if certain config properties cannot be loaded.
View 1 Replies
Apr 27, 2010
i am using Intelligencia.UrlRewriter on my website and it works fine on my development machine, i tryed to deploy on IIS6 and i get this error:
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.Please try the following: Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. Click the Back button to try another link. HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. this is the url that throws the error. [URL] this is the working url that is being rewriten to the above one. [URL]
View 2 Replies
Jul 13, 2010
I've done a very basic asp.net test page that populates dinamically (with items from 0 to 99) an asp:listbox on the onload event (only once, if not ispostback).
The asp:listbox is static, and there's an asp:button that I use only to produce a postback (it has no onclick server code)
When I execute it under II6 it works perfecty, but under IIS7 I get a strange behaviour: every now and then, when I push the asp:button, the page freezes and it's unable to postback.
I don't get a specific asp.net error as usual, just a blank page as if the website didn't exist!
The message is "Internet Explorer cannot display the webpage"
View 1 Replies
Feb 17, 2011
Our website has all of the publicly accessible pages at the root and private pages (login required) in a folder below the root (call it "private").Private pages are accessed as
www.oursite.com/private/somepage.aspx.I want to run the pages in the private folder in a separate application pool without changing the URL for private users.I tried making the private folder a virtual directory but then the pages in the private folder did not render(I think because it did not find a web.config in the private folder).Is the answer to simply put a copy of the web.config that resides at the root in the private folder or is that problematic?
View 4 Replies
Mar 8, 2011
I am developing a .NET 3.5 web application. We are using some of the Microsoft Reporting tools, which are a pain but a digress, and when I deploy, I get errors when trying to load the site.
This is the error:
[Code]....
However, my web config reads:
[Code]....
I specify 9.0.0.0 in everything. The only concern I have is that the build server uses .NET 4.0 but I have specified to build with 3.5 and on my deployed server I have the 9.0.0.0 dll files for the report viewer. why the server is looking for 10 when everything says 9?
View 5 Replies
May 23, 2010
I have a really weird problem that I've been investigating for at least one week now. I deliver a website hosting both ASP classic and .NET 3.5 content in IIS6 on a Windows 2003 server environment with MySQL db backend. The solution has been installed on several servers (some hosted in WMWare) with no problems. On one specific server, also hosted in WMWare, the user experience great performance issues on the website. The problems are most seen when using database resources and is not limited to either .net or asp classic, but I am still not sure that the problem is only related to database calls.
Following components are involved:
IIS6 .NET FW 3.5 MyODBC 3.51 / 5.1 MySQL 4.x
Code executed on the server using all resources above runs smoothly when the IIS is not involved. The website shows times up to 2 minutes to execute code that takes 2 seconds outside the IIS. The exact same code is executed. Using profiling tools, I've seen that the great loss comes within calls to unmanaged code, for example when System.Data.ODBC namespace to calls into myodbc.dll.
The tricky part is: If at least one console user is logged in to the server, the performace problems are not seen anymore. When the user logs out, the problem appears again.I have tried to reinstall all components above, tried different versions of MyODBC, tried different website authentication methods, tried to run website under administrator privilegies, installed various MS KB's with no success.
View 4 Replies
Jun 15, 2010
I am working at a site not orginally devleoped by me. The problem is that all the pages are working fine and have no problem at my local site. but the site is not showing any content at live site from database. Niether it shows an error for it. How can I find the problem?
View 7 Replies
Oct 3, 2010
I am neither a server administrator nor very knowledgable about how to configure IIS, so I have the following problem:
My client hosts their public website from their own internal server running Server 2003 with IIS 6. The current website is a .NET 1.1 application configured as a website in IIS. Within this site a separate virtual directory configured as an application runs a separate .NET 1.1 app that serves as their online webstore.
I've been tasked with upgrading the website (not the webstore) to .NET 4 and getting it installed and working on their server. My initial plan was to simply change the existing websites home directory to the new home directory from the IIS admin console and be done, but then I read that this would break the application directory that hosts their online store because .NET 1.1 applications cannot be nested within .NET 4 applications. Can anyone confirm this?
View 3 Replies
Nov 29, 2010
I have a problem with my IIS setting and I am not sure how to fix it. I created a new website which is based on .net 4.0. If I set the ASP.Net version to 2.0 for the website and try to browse to the site, I get the Run time error in the web.config which is understandable. If I change the asp.net version to 4.0 and try to browse to the website, I get the page not found error (see below). Any ideas what is wrong? I am hosting both 2.0 and 4.0 apps on this machine but this is the first time I am trying to run .net 4 application.The page cannot be foundThe page you are looking for might have been removed, had its name changed, or is temporarily unavailable.Please try the following:Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.Click the Back button to try another link. HTTP Error 404 - File or directory not found.Internet Information Services (IIS)
View 4 Replies
Jul 20, 2010
I have a website that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5. When i browse my svc file, i get the error:
unrecognized attribute 'targetFramework'
and it point to the websites root web.config. I have tried this MSDN article and still get the same error. My site is using a different app pool than my WCF service, and is configured to use 4.0 in the ASP.NET tab of properties. I have also checked and made sure that my WCF service is using 3.5(2.0) in its ASP.NET properties tab.
View 1 Replies
Sep 27, 2010
I have an ASP.NET 1.1 app running fine on my local system and Win 2003 server. I transferred this site to a Win 2008 R2 server. The site is running under an app pool configured to run under ASP.NET v2.0. Some of the pages of the site throw exceptions and there are other problems in running the site as well however the same works good on Win 2003 Server. When I try to run the site under app pool for ASP.NET 1.1, it says "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed."
View 2 Replies
Aug 27, 2010
i am trying to upload my applicaiton on IIS5.1 version.my application uses SQL server 2005 and Membership provider. everytime i create an virtual directory and run it ,it always says that login failed for user IUSR_TPN0150 .cannot open database emp.
how can i give access to annonymous users so that my login page is shown.
View 6 Replies
Aug 27, 2010
i have created an application in asp.net with C# this application is running well when i run it from visual studio but when i deployed it on IIS for testing it is not working it gives me error that isThe control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.i have check complete project i did forget any thing and application is running wll but on iis it gave me above stated error any body can help me and one thing is that i install IIS after installing VS2008
View 1 Replies
Mar 10, 2010
I am getting this error on a website. does that mean the server is not competible with asp.net 3.5
Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section system.serviceModel.
Source Error: [Code]....
Line 236: </assemblyBinding>Line 237: </runtime>Line 238: <system.serviceModel>Line 239: <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />Line 240: </system.serviceModel>
Source File: D:Inetpubvhostsmuratmalli.comhttpdocsweb.config Line:
238
View 2 Replies
Jul 7, 2010
I have a web application developed in asp.net 1.1. Now I want to move it to WS2008 R2 64 bit IIS 7.5.
As far as I know asp.net 1.1 is supported only on 32 bit machines.
My question is can we run the 1.1 application in WS2008 R2 64 bit IIS 7.5
View 6 Replies
Aug 9, 2010
i developed a web site and i tried to run on iis 6.0 but i got this error..
XML Parsing Error: not well-formed
Location: http://localhost/iaec333/Default2.aspx
Line Number 1, Column 2:<%@ Page Language="VB" MasterPageFile="~/uk.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" title="Untitled Page" %>
-^
but i can view web pages in browser using " view in Browser".
View 1 Replies
Nov 1, 2010
I added a reference to a DLL in my ASP.Net app. That started causing a BadFileFormatException, so I switched my app to target x86. I'm now getting this error:
System.IO.FileNotFoundException: Could not load file or assembly 'TheDLLThatIReferenced.dll' or one of its dependencies. The specified module could not be found.
The DLL in question is present in both the bin directory, and in binx86Debug in my app's directory on the server. When I try to run my app out of Visual Studio, it runs just fine, but if I try to hit it via the internet, I get that error. What might be causing this error, and how can I correct it?
View 1 Replies
Aug 18, 2010
I'm working to develop a website application for my client. Unfortunately, my client does not want to spend the money to host it. Is it possible to host the whole program with the database on his laptop without him installing Visual Basic?
View 3 Replies