Web Application Redirects When Accessing CSS File?

Oct 15, 2010

I've created web site in c:website folder using visual studio 2010. Then, I've created web site in IIS 7.5 that maps to that folder. However when I access Default.aspx page and request to css is issued like

http://localhost/webapp/Styles/Site.css

it's redirected to something like this:

http://localhost/website/Account/Login.aspx?ReturnUrl=%2fwebsite%2fStyles%2fSite.css

View 1 Replies


Similar Messages:

Configuration :: 301 Redirects - Change In File Extensions ?

Oct 29, 2010

I've just upgraded a site from ASP to ASP.net and I'm looking for instruction on how best to handle the redirects. The domain isn't changing but I need to handle the change in file extensions (.asp to .aspx) as well as changing the underscores in the file names to hyphens.

From what I've found so far, creating a rule in the web.config is probably going to be the most convenient approach as this site is in a shared hosting environment, but I'm just not sure of the syntax to use.

View 2 Replies

AJAX :: Accessing A WCF Service Application From A Web Application?

Feb 10, 2010

I have a VS2K8 solution with a web app and a WCF Service App. In my web app I've added the service reference and can get to the service in the service app from code behind:

WebTest.ServiceReference1.Service1Client prox = new
WebTest.ServiceReference1.Service1Client("WSHttpBinding_IService1");
fromStandAlone.InnerHtml = prox.GetData(9);
prox.Close();

how to add an AJAX Enabled WCF service to the service app and how to access it from the web app?

View 4 Replies

Accessing Image File Of Client's Machine (without Using File Upload Control)

Apr 14, 2010

I want to access one image file residing in C: of the client's machine. I know with the help of file upload control (or say input type=file), this would be easy. Due to nature of my application (Its a KIOSK application), user is not expected to select file. I am just wondering how should I implement reading file without using file upload control. I want to store this file in Images folder of server. I am beginner to WCF. Should I look towards WCF?

View 7 Replies

Configuration :: Is It Possible To Accessing Web Application Remotely

Sep 27, 2010

I have to Pc, A is Server and B is client ,On server machine windows server2003 And iis is installed.i have developed asp.net application on server machine and its is executing perfectly on server like [URL]

but this page is not accessing on client Pc (B)

how can i access this page or Application on pc B(client).

View 2 Replies

WCF / ASMX :: Accessing Another Application With Web Service

Aug 3, 2010

I m retrieving a pdf file from another application using Web service. After retrieving that file, make some validations and after that I want to delete that file. I want to delete that file in another application database. how can I delete that file ? I m unable to code that one. Can anyone give some startup.

View 6 Replies

Vb.net - Accessing A Windows Application From An ASPX Page?

Aug 2, 2010

I have an aspx page and I want to access an application on the client after seeking user permission. Both the windows application and the website are to be made in VB.NET.

EDIT: Here is the problem. From my .aspx webpage in vb.net, a visitor clicks on a link on my site, and if my winform is not already loaded on their desktop, it is then loaded with the users permission. This application should auto-load on the user's site at boot up time and always be in the background running. Make it an extremely thin client, taking the least cpu and bandwidth from the user, and running as a silent background process until needed.

Whenever the user visits one of my many websites, IN ANY BROWSER, somehow - the app running in the background communicates with the .aspx on one of my sites, and exchanges a silent username password identifying client winform app to the online .aspx app on my website.

Then the .aspx on my site PASSES a url such as "www.somewebsite.com" to the app running in the background, the background app then does a http request from the client's computer, not from my .aspx server, so the client's cookies and ip are visible to "www.somewebsite.com" server. The client collects the html for that page, stores it as a string, and also saves the ascii of that webpage as another string.

Both strings then are PASSED BACK to my .aspx website that the client is visiting, and the .aspx app then stores these results in a database.

View 2 Replies

Way To Programmatically Prevent Certain Mac Address From Accessing Web Application?

Dec 15, 2010

i am using windows server 2003 and 2008 am about to install a web application on a server that is connected to other computers using simple wired network i.e. no active directory, no domain controller etc..

my question is:

is there a way to prevent mac addresses outside my specified list from accessing my application ? should it be through IIS or Web.config or should i put certain code in the page load events.another concern: if i use an SSL to secure my application, is it enough along with a reputable anti virus to prevent a virus to access my server through any network computer using my web application

View 3 Replies

Security :: Accessing Controls Of A Webform From Another In The Same Application?

Feb 5, 2011

i am building a web application and i want to access a textbox which is on the index page from the login page. basically what i did is this. i programmatically created my registration form for new users and also login for registered users, now i want to display on the index page the name of the logged on user on the index as the page loads.

View 3 Replies

Security :: Restrict Accessing Web Application In Public PC?

Mar 10, 2010

I have developed An Inventory Management System in ASP.Net . The application is hosted now ... From manager to data entry operator every1 z having seperate login , roles and limitation to access website ... From Our office every1 is accessing the application and working on it. My question is even they can access the apllication from public PC (Browseing Center) ?? coz they knew the password. Am i rite. Now, I need to restrict my application access in public PC (Browseing Center)? Can i limit accessing of my website application only in office not in public PC (Browseing Center)? can i allow certain IP to access my website application?

View 11 Replies

Accessing Username In Silverlight Application From Aspx?

Apr 2, 2011

I need to access signed in username and pass, which are saved in session variable,

from silverlight page

i remember something of accesing session variables from silverlight but cannot get the code

cannot remember the name of the video, which shows how to interaction between aspx page and silverlight plugin

View 1 Replies

C# - Accessing HttpApplication.Application Variables From A Class?

Jun 9, 2010

I set up various global parameters in Global.asax, as such:

Application["PagePolicies"] = "~/Lab/Policies.aspx";
Application["PageShare"] = "/Share.aspx";
Application["FileSearchQueries"] = Server.MapPath("~/Resources/SearchQueries.xml");

I have no problem accessing these variables form .ascx.cs or .aspx.cs file -- ie. files that are part of the Web content. However, I can't seem to access 'Application' from basic class objects (ie. standalone .cs files). I read somewhere to use a slight variations in .cs files, as follows, but it always comes throws an exception when in use:

String file = (String)System.Web.HttpContext.Current.Application["FileSearchQueries"];

View 1 Replies

Databases :: Use MYSQL For Accessing Data In Mvc Application

Jan 28, 2010

I want to use MYSQL database for accesssing the data in a mvc application. The connection string that i am using in web.config is:

<add name="ConnectionString" connectionString="server=localhost;user id=root;Password=abcd;database=database" providerName="MySql.Data.MySqlClient"/>

Then I have prepared a model,controller,view for accessing and displaying the data. I am using LINQ o get the data from database but getting the exception:" A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" I have also installed the MYSQL connector. provide me the solution to access the data using MYSQL and LINQ in MVC application

View 2 Replies

Web Forms :: Get File Path Into Application Where File Is Located In Another Application?

Mar 30, 2010

i have two application suppose wwwroot/one and wwwroot/two.

there is one .aspx page on "one" application into which i want to get file(.xml) from application "two" and do some work on that file like save,edit,delete etc..

and than save that file into "two" application.

like

wwwroot/one/MyFile.aspx --> this is file into which i want to access aaa.xml file from application two/File where File is a folder. all file operation is here.

wwwroot/two/File/aaa.xml --> this is xml file which is reside in another application

View 2 Replies

Jquery - Web Application Accessing SharePoint Object Model?

Sep 21, 2010

I have an asp.net 2.0 web application that will run on the same web servers as SharePoint Server 2007. The application should run in its own App Pool (IIS 6.0). The Web Application needs to call the SharePoint Object model API.

Is there a resource that explains the required configuration / security settings and other considerations? It is possible that I need to make some settings in SharePoint Admin Console itself; aswell as config files. Script files might need to be located in a specific location in order to be accessible. Assemblies may need to be signed.

I can only get partial success running my Web application. But only if it is deployed to a Virtual Directory that resides under the SharePoint Website (in IIS & File system). Even with this setup, I JQuery / Javascript throw errors when accessed (object null); and also images not loading.

I have made some changes to the Web applicaton web.config file which have allowed me to run the application albeit the above mentioned issues with scripts and images (Virtual directory properties also set to allow scripts and executables to run). Ajax functionality appears to work OK.

View 1 Replies

Security :: Accessing Webservice From Application With Windows Authentication?

Feb 10, 2011

I'm having trouble with accessing my webservice.

I've got a webapplication and inside this webapplication I have a webservice. An external program is going to use this webservice in the future, but for now that is not the problem. this webservice is also called from inside the webapplication. this is where the problem starts.

I keep getting this error:

The remote server returned an error: (401) Unauthorized.

I tried with imporsonate= true, but it didn't work

[Code]....

the webservice is called like this:

[Code]....

I hope some one can point me into the right direction.

I'm using iis 7.5asp.net 3.5

View 1 Replies

Configuration :: Accessing An IIS Application Directory From Visual Studio?

Oct 10, 2010

I have created an application directory in IIS and specified its physical location in my harddrive. im trying to create a new Http-based website in Visual Studio 2008 but im unable to assign it to that application directory because in the "choose a location" dialog I cant view that application directory under my default web site directory. can someone tell me why? is it because visual studio doesnt have permission to access it. if that is the case how can I edit the permissions of that application directory in IIS so I can allow visual studio to have access to it?

View 1 Replies

Security :: Accessing .NET WCF Authentication Service In Winforms Application?

Jul 30, 2010

I'm trying to use ASP.NET WCF Authentication Service from a Winforms Application.

I am referring to this article as a tutorial.

for silverlight clients, the WCF Auth service works well.

but for Winforms Apps,

[Code]....the AuthenticationServiceClient.IsLoggedIn() always returns false even after login.

what is the cause of this and is there another approach I should take when I leverage ASP.NET authentication from Winforms?

View 1 Replies

Security :: Accessing Reporting Application From External Network?

Dec 7, 2010

We have an issue with an internal application, where accessing it from LAN (private n/w) works fine, while access from external n/w throws up erratic behavior.

The Current System :

an aspx page (asp version 1.0) hosted on the IIS server (6.1). The front end is a vb form that connects to a sql 2000 database.

Users' credentials authorized using NTLM security.

Access from an external n/w - a reverse proxy configured with an ISA server 2006 to authenticate credentials.

Domain Controller - Windows Server 2008 R2 x64

The issue when accessed from external n/w :

everytime an entry from a drop-down is selected from an Ajax enabled control, instead of the fields populating, the page gets refreshed and the content of the box are cleared.

Also, clicking on other items that normally hyperlink to other pages, results in nothing happening.

Upon investigation, we realized that :

Everytime it fails, a string - "&AuthResend" followed by an alpha numeric string is attached, which attempts to authenticate the user's credentials everytime a request is made to the server.

ISA error logs yielded the following error msg :

"12210 Internet Server API ( ISAPI ) has finished handling the request. Contact your system administrator. "

This behavior is inconsistent except when accessed from Google Chrome, where it fails each time.

We have applied all the recommended hot fixes from Microsoft's KB pages.

View 1 Replies

SQL Server :: Accessing Web Application's Database With MSSMS At The Same Time?

Sep 28, 2010

I wish to acces my database using MSSMS at the same time that I am running my web application. When I tried to access my database with MSSMS I get the following error:Failed to retrieve data for this request (Microsoft.SqlServer. Management.SDk.Sfc)Additional Information:Unable to open the physical file "C:inetpubwwwrootmyappApp_Dataaspnetdb.mdf".Operationg system error 32: "32(The process cannot access the file because it is being used by another process)". (Microsoft SQL Server, Error:5120).What can I do to being able to view my database with MSSMS at the same time?

View 5 Replies

Databases :: Accessing Oracle 10g Express Edition From A MVC Application?

Mar 28, 2011

I wanted the step by step connection details of connecting Oracle 10g express edition to a ASP.net MVC application.

Please let me know .. if at all I have to install any dlls for the same and what are the pre-requisites for the same.

View 1 Replies

Application Accessing Event Log On Windows Server 2008 R2?

Feb 21, 2011

Can anyone explain why the following happens:My ASP.NET application requires access to Application event log.When I access web application initially, it returns "Security" exception (which is expected, as I haven't granted permissions to write to Application event log yet). Then I give read/write permissions to IIS_IUSRS group on the following registry key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetserviceseventlog. As a result of this action my web application starts working.Now I remove those permissions I've granted to IIS_IUSRS group. But my web application keeps working (although I'd expect "Security" exception raised again)So, why web application keeps working, although permissions to write to Application loghave been removed?

View 2 Replies

Security :: Authentication Fails While Accessing The Application From Remote Server?

Mar 21, 2011

While running an app from the server where it is deployed the website works fine, however when trying to access it from a different machine(placed in same network), using the same credentials, it shows that I am not an authenticated user.

[code]....

View 13 Replies

Accessing A Class File In VB Or C#?

Nov 24, 2010

I want to access the functions defined in ADO.vb file in my Default.aspx.vb file. note that the ADO.vb file is in the root directory. I can access it if it is in the App_Code directory. It it is in the root directory how can i access that?

View 9 Replies

Accessing Class File In App_Code Not Orking?

Jul 1, 2010

While working on my FTP server, I am trying to access a class within my App_Code, but it is not working.When writing, the class is accessible/usable in the code like shown in picture. I get no build errors.But when I run it in the browser, I get an error stating that it cannot find my class.I've looked around some other posts on the forum, like using namespace, but it didn't work.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved