Configuration :: Web Page Won't Go The Start Page After Logon
Mar 17, 2010
I have a project which uses VS 2005 and .NET framework 2.0. I saved my project and did not change any codes. Before this Monday, my project worked as normal, after I enter user name and password on log on page, it would go to start page. (The log on page is called from another project that is located on my local machine.) Cause firewall issues happend on the Monday, I reinstalled .NET framework 2.0 to get debugging worked.
Now, my project can run like usual, but after I log on, the web page will direct to start page and redirect to log on page dymatically. I am sure the codes behind start page will never redirect browser to log on page and I didn't not change any codes. The redirect code in Global.aspx is : Response.Redirect [URL]
View 11 Replies
Similar Messages:
Aug 30, 2010
I've got an MVC 2 app that works fine when launching from VS 2010. However, when I deploy (using File System on the server in the same box) and attempt to run I get the error shown below. The wierd thing is that the Physical path shows: C:inetpubwwwrootWorksheetsSiteWorksheetsAccountLogOn which leaves out the "View" folder in the path.
[Code]....
View 12 Replies
Feb 20, 2013
I have problem with default.aspx setting in global.asax file.When i am running dot net application from solution explorer i can set the default page as start page or when i am running the application the on IIS server i can set that default page as start page through the setting.This thing i want to do in programmatic way using the global.asax file
View 1 Replies
Feb 23, 2010
I just setup an out of the box "W2K8 R2 Web" server and installed IIS 7 out of the box. Then I installed the .NET4 framework and ran "aspnet_regiis -i" command.
I created a site using .NET 4.0 Integrated app pool.
I created an MVC application using the default MVC project template, without modifying I compiled the project and deploy the files using (Publish) to the virtual directory.
I can pull the site up, but the styles are missing from the page and for some reason it routing to the /Account/LogOn?ReturnUrl=/
View 3 Replies
Aug 1, 2010
In my ASP.NET MVC project i have following tag in in web.config file
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880"/>
</authentication>
This causes even the authenticated users but unauthorized resource requested users to redirect to logon page. but i need only to redirect this page if user try to access unauthorized page and not already authenticated(logged on) and redirect to custom page.
Is there easy way to do this without writing custom action filter?
View 2 Replies
May 11, 2010
Ok so I've created a login page that accesses my Active Directory and challenges against it. What I would like, is if a user is logged onto the computer within the intranet with Active Directory Credentials for them to bypass the login to the web page.
However if they are outside of the building on a random computer, they should be presented with a login box just like they are now.
View 1 Replies
Nov 22, 2010
I need to initialize an object from the start up of an page and use the objects through out the particular page how can i do it. //Block to be initialized
XTContext.UserContext UContext = new XTContext.UserContext();
XTContext.Context ctxt = new XTContext.Context();
XTErrorCollection.ErrorCollection eContext = new XTErrorCollection.ErrorCollection();
ctxt = (XTContext.Context)Cache["sessionfContext"];
ctxt.eContext = eContext;
ctxt.uContext = UContext;
now i want to use the ctxt inside the page and control events. I tried to initialize it in page load but i cant access ctxt.
View 2 Replies
May 7, 2015
i have a Error :
<forms name="appNameAuth" path="/" loginUrl="~/login.html" defaultUrl="index.html" </forms>
Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
The web.config in folder admin of my
<?xml version="1.0"?><configuration><system.web> <authorization><deny users="?"/><allow users="admin,administrator"/><allow roles="admins,administrators"/><deny users="*"/></authorization></system.web></configuration>
In file Global.
routes.MapPageRoute("login", "login.html", "~/login.aspx");routes.MapPageRoute("default", "index.html", "~/index.aspx");
If I use extensions .aspx, it runs normally
<forms name="appNameAuth" path="/" loginUrl="~/login.aspx" defaultUrl="index.aspx" </forms>
View 1 Replies
Sep 7, 2011
I am using Integrated Windows authentication and Role based authorization.The web.config file has two Active Directory groups.Sample code of web.config file for Role based authorization (Actually I got this sample code from a moderator of this site Gary works well).
Code:
<location path="Bloodgroup.aspx">
<system.web>
<authorization>
<allow roles="MedcenterGroup1"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
So user's who doesn't belog to "Group1" AD group, should get Unauthorized error. It works exactly like that. But, before getting unauthorized error, it shows a pop up screen (as shown in the attached picture) prompting to put userid and password. If a user in AD group "Group1" accesses "Blood group. aspx" page, popup message doesn't come which is correct. Following is the code in web.config file to handle errors:
Code:
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. -->
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="401" redirect="Errors.aspx" />
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
Question 1: why does the popup box prompting user id and password comes up?
Question 2: I have put in web.config file in customErrors tag to direct to Errors.apsx page when I get 401.2, it should be redirected to Errors.aspx page. But it is not getting re-directed.
View 17 Replies
Aug 4, 2010
I'm developing an intranet site in asp.net 3.5 using linq to sql. When I run the site on my development system, it works great. I moved the site and SQL Server database to my CLient's Server for testing.
When I execute the following vb.net code
Dim linq1 = From PageGroup In dbs1.ZZ_PageGroups Where (PageGroup.PageName = pasPageName)
For Each PG In linq1
I get the above error message. I suspect the problem may be authenticating the user in SQL Server. When using Linq to SQL, how/where is the connection string set and how does it know the user?
View 1 Replies
Feb 3, 2011
I have set up a web Application using IIS 7 .Following details:-
Database server is sql server 2008 r2 and located on another machine
I am using forms authentication and while trying to logon using my start page where i am validating the user from database. This error is coming while login
i am working on .net framework 4.0
What can be the reason for the same .
View 1 Replies
Aug 18, 2010
When I run my project and I'm looking at a View, the project runs that start-up page specified in my HomeController class, which is great. But if I'm looking at a class or a model, and I run the app, then it tries to make that class the start-up page and gives me the error "A project with and Output Type of Class cannot be started directly". So I have to close the error box, open up a random view, and then run the app. Is there a way around this? It shouldn't matter that I'm working on a class file when I run my app.
View 3 Replies
Dec 1, 2010
in my asp.net application i am trying to write a file on a network system . i get the above errori have identityimpersonate="true"
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
View 1 Replies
Mar 12, 2011
I get the message asking me to set strat page before debug. I have set the start page but still get the error.
View 6 Replies
Sep 3, 2010
When you create a new website/web application with webforms, I've noticed that the start page is always Default.aspx, but can't find where this is specified (e.g. in the config files, etc), or if it is part of the web forms specification.
Is it possible to change the startup page so that it isn't Default.aspx? If so, how do you do it?
View 5 Replies
Nov 5, 2010
I try to run a Plain Vanilla ASP.NET MVC web site on my system under Azure, but the page does not start
I have been able to publish the same web page on Windows Vista Ultimate using IIS7.
View 1 Replies
Sep 6, 2010
I have a Asp.Net application eg its name is ABC and I have a server eg whose name is XYZ, where the application is hosted from. The default page for the application is Home.aspx.Now the requirement is I want Home.aspx to open automatically when the server name is typed in the URL. Currently for accessing the Home page I writehttp://XYX/ABC/Home.aspx but I want Home.aspx to open if I writettp://XYZCan anyone suggest how I can achieve this. I have one solution that is making a HTML page as default in IIS and then redirecting it to the respective link.
View 5 Replies
Jun 17, 2010
I have an application that initially display 4 grid views at page load. This process takes 50-60 seconds and I would like to change the process to display the web page, show message like "Data being loaded, please wait..." and then spin off a thread that fills the various grid view. When this is done I would programatically like to do a post back to show the result. Not sure if this is possible? I tried something like this:
[Code]....
View 1 Replies
Jun 5, 2010
i have uploaded my site on hosting server with name www.selectionfurnishing.combut when i try to open any page i got an error that the site does not exits when i try www.selectionfurnishing.com/default.aspx then it gives error that the page does not exits (404)
View 2 Replies
Mar 1, 2010
I created a page for display my own windows services installed in the system. That page displays the service display name and status in the grid view and also showed one button to start ot stop the service according to the statusAll working nicely. But when i click start button i got the error as follows{"Cannot open Service1 service on computer '.'."}and the inner exception is "{"Access is denied"} .
View 1 Replies
May 12, 2010
I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was working fine before.
View 2 Replies
Jan 31, 2010
Something happened on my work computer where the Start Page for a website is not saved. I now need to save the start page every time I open a web site project (which is quite annoying).
I have confirmed that this is happening by also seeing that the Property Pages do not retain the setting either. This happens for every web site project as well.
Where and how does .NET 2008 store the start page setting for a web project? I have looked in the solution file, but could not find it there.
View 6 Replies
Dec 3, 2010
I set my web.config with a custom error for 404 and 403 response but when I try to navigate my page (not exist page). It displays the default IIS6 404 page instead of my custom page...
[Code]....
View 5 Replies
Feb 5, 2011
My web site seems to be running quick. I have not deployed my web site yet, so I am the only one using it right now. The problem I have is if I am testing out the site and then I stop using it for a short period of time, when I come back the web site takes about 8-10 seconds to startup again. I did not rebuild the site I just simply stopped using it for a short period of time. It seems like after a short period of time I have to 'wake it up' again. Is this normal? How can I prevent this?
View 2 Replies
Nov 21, 2010
How do I remove the 'New' WebForm Page (Start Page), and go directly to the 'Insert' & 'Cancel' Web Form Page without selecting the 'New' hyper link at [URL] Here is the front page code:
[Code]....
View 6 Replies