IIS Configuration :: URL Routing Not Working With Web API In Server And MVC

May 7, 2015

I my webform asp.net project, I use web api controller to access the server data.I use framework 4.5. On localhost everything works, but when I publish to server I get 404 for [URL] ..... This is the code in file global.asax 

protected void Application_Start(object sender, EventArgs e) {
GlobalConfiguration.Configure(config => {
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
); }); }

 On the server the framework 4.5 is installed. In IIS, in application pool, I've set the correct framework version. What are the server requirements? What should I install? 

View 1 Replies


Similar Messages:

IIS Configuration :: URL Routing Not Working On Shared Hosting Server

May 7, 2015

i have implemented URL Routing in asp.net website using article (URL...) and it working file offline on my local system but when im trying to run online (from my hosting site) then it is showing error..

HTTP Error 404.0 - Not Found..

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

View 1 Replies

Configuration :: Routing Not Working In Remote Webserver (Win 2008)?

Dec 15, 2010

I have created an application which is relying on routing extensively. it works fine in my development machine, and when deployed in the local IIS server. but when i publish it to remote server routing does not work? any idea why it happens. i also have the following in my web.config

[Code]....

View 1 Replies

URL Routing Is Not Working On Windows Server 2003 R2?

Nov 1, 2010

I have implemented URL Routing in Asp.net 4.0 application, when i try to run it on windows server 2003 R2 server with IIS 6.0. the application works fine but without routing, whereas routing works fine on every other server.

View 1 Replies

Web Forms :: Routing Is Not Working On Windows Server 2003?

Oct 20, 2010

I have Implemented routing in my web application. Iahve registerd the routes in global.asax file in application start event like the following: where my application containing a login page on the root

System.Web.Routing.RouteTable.Routes.Add("Login", new System.Web.Routing.Route("Login", new RouteHandler("~/Login.aspx")));
//RouteHandler class code
public class RouteHandler : IRouteHandler
{
public RouteHandler()
{
}
public RouteHandler(string virtualPath)
{
_virtualPath = virtualPath;
}
public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
var display = BuildManager.CreateInstanceFromVirtualPath(
_virtualPath, typeof(Page)) as IDisplay;
return display;
}
string _virtualPath;
}
//IDisplay code
public interface IDisplay : IHttpHandler
{
}

And i have inherit the IDisplay on my login page.

No have host this application on the windows server 2003 on 80 port and map this to the sub domain like

[URL]

now i am browsing the url

[URL]

this giving me the page not found error on browser.

I am abel to browse the page if i use

[URL]

So wt is the main issues with this routing.

I have done all settion in web config for routing.

View 1 Replies

Configuration :: 4.0 Web Form Routing With IIS7 (windows Server 2008)?

Nov 17, 2010

I have web app written in .net 4.0 using url routing. It works fine in the development environment in VS 2010.But It's not working after publishing to iis7. on remote server i'm getting error HTTP Error 404.0 - Not FoundThe resource you are looking for has been removed, had its name changed, or is temporarily unavailable. I tried in virtual directory and it's not working.[URL]

View 1 Replies

Web Forms :: Web.Routing Doesn't Work On Server On IIS Routing

Jul 20, 2010

I tried everything I could find, but still does not work on IIS routing.

View 2 Replies

Configuration :: Session Is Not Working On IIS Server?

Dec 1, 2010

Session is properly working on asp.net development(Local PC).but not working on IIS web server

View 13 Replies

Configuration :: Url Rewriting Is Not Working In Godaddy Server

Jan 22, 2010

I hosted my project on Godaddy server and they say that the settings required for Url rewriting was already there.But I am getting a blank page when trying to use virtual url to redirect to a aspx page.

<urlrewritingnet
rewriteOnlyVirtualUrls="true"
contextItemsPrefix="QueryString"
defaultPage="default.aspx"
defaultProvider="RegEx"
xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >
<rewrites>
<add name="About-the-company" virtualUrl="^~/About-the-company"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="Default.aspx"
ignoreCase="true" />
<add name="contact-my-company" virtualUrl="^~/contact-my-company"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="contactus.aspx"
ignoreCase="true" />
</rewrites>
</urlrewritingnet>

This is my code in Test.aspx page

<div>
<li><a href="test.aspx">Home</a></li>
<li><a href="About-the-company">AboutUs</a></li>
<li><a href="contact-my-company">ContactUs</a>
</li>
</div>

View 3 Replies

Configuration :: Asp Menu Working In Dev Environment But Not On The Server?

Sep 17, 2010

have added an asp menu to my site which i populate depending on the user/group from an entity framework object using a re-entrant function. This successfully adds menu items with associated child menu's to level n in the development environment.The problem comes when i publish to the server. when i view the published site the menu view changes and instead of a nice neat menu bar it shows a big list of the correct menuitems in a flat structure blanking out the rest of the page(asp menu is set to horizontal normally)server - windows server 2003 x64 - iis6 - asp 4.0.30319 + net4 framework packsdev - windows 7 - Visual studio 2010i am checking both sites with the same browsers so its not a browser issue.

View 6 Replies

IIS Configuration :: WCF Service Not Working On Deployment Server

Nov 30, 2013

WCF service call by AutoCompleteExtender but "404 file not found" return.

service path is correct.

code run correctaly on devlopent server.

View 1 Replies

IIS Configuration :: Mondor Captcha Not Working In Server?

Jan 28, 2013

I m using your Captcha Code [URL]. This code is working at local system but not working on Server Side. Captcha Image is not Displaying any Code.

View 1 Replies

Url Routing Is Not Working On IIS 6?

Sep 6, 2010

Url Routing is not working on IIS 6. (using System.Web.Routing Namespace)If i am running through VS 2008 then its working fine.if i made virtual directory on IIS 6 then its not working.its giving error 404 - file not found...

View 1 Replies

Configuration :: Export / Import Excel Not Working In Server?

Jul 1, 2010

In my .net 2.0 application, i have used export / import excel option. In local, its working perfectly but in server i am getting the below errors,

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.]
repClaim.Button3_Click(Object sender, EventArgs e) +337
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I searched solutions for google and even in this forum, the following link also i applied but no use, still same error

[URL]

My application is running in IIS 7.0 with DefaultAppPool. In my web.config, i have used this authentication,

<authentication mode="Windows"/>

View 3 Replies

Configuration :: Menu Navigation In 2010 Not Working On 3.5 Server?

Oct 29, 2010

I have created a basic horizontal menu in MVWD 2010 which works when I debug it on my own machine. But as soon as I upload to a ASP.net 3.5 sever online, the dynamic aspect doesnt work. Are there some major differences in frameowrk 3.5 to 4?

View 3 Replies

IIS Configuration :: RDLC Report Not Working When Hosted On Server

May 7, 2015

i have created RDLC Report and tested on my system its working well but its not working when i am uploading these files on server i-e on my domain. My Code:-

.ASPX

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="956px">
<LocalReport ReportPath="~/Admin_AR315_Report.rdlc">

[CODE]...

View 1 Replies

Configuration :: Need To Set Up Anything In IIS For URL Routing In App?

Aug 30, 2010

I'm using IIS 7 with Windows Server 2008 and the app doesn't even run when I open it up on localhost. May be because I transfered the app file from Windows Server 2000?

View 6 Replies

MVC :: URL Routing IgnoreRoute Not Working?

May 28, 2010

I am trying to serve a physical file from disk by using IgnoreRoute, but it's not working.

[Code]....

The file /Temp/picture exists, but I always get error 404.

View 9 Replies

Configuration :: CSSFriendly Menu Not Working On Publishing To Server 2003

Dec 13, 2010

After months of work I thought I had finished with my web application using VS2008 with CSSFriendly menu. On publishing, the menu did not work and I got all sorts of errors. Deleting CSSFriendlyAdapters.browser in App_Browsers folder improved the layout but the menu was not rendered with css even though the html source shows thet are linked. On desperation, I changed the target Framework from 3.5 to 2.0 and then back to 3.5 with no avail.

View 5 Replies

Configuration :: Intelligencia.UrlRewriter Not Working On Production Server IIS6

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

Configuration :: Compile Code Working In Localhost, But Can't Work On Server?

Jan 18, 2011

I previously crate website in framework 2.0 before one year and there is working good on server. But Currently I download same site on my local machine and configure again in Visual Studio 2008 with framework 2.0 compiler then do new changes on site and it running good on localhost.But the same code I upload on server again They can't work code properly.In new code I changes some XML file that retrieve data and save data, but I add new code in this XML file so it can't work with new code but previous code is working as good as previous.

View 3 Replies

Configuration :: Deploying On Iis 7 And Windows Server 2008 But Website Not Working

Sep 10, 2010

I have developed a website using visual studio. Now i want to deploy the same on server having windows server 2008 o.s. and IIS 7. When i copy the website and paste it into wwwroot folder of iis its not working. What settings need to be done so that website can be accessed from iis.

View 2 Replies

Configuration :: Windows Server 2008 II7 Framework 2.0 Not Working, AJAX?

Mar 18, 2011

I have a framework 2.0 AJAX app that was moved to Windows 7 2008 R2 server with II7. The application pool is set to 2.0 for the website, but its always looking for this assembly. Everything I've read says you do not install AJAX 1.0 Extensions on Server 2008? Since this IIS is not mine, I'm trying to be cautious. Should I install the extensions, or is there some server setting Im missing??

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 29: <compilation debug="true">
Line 30: <assemblies>
Line 31: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,[code]...

View 5 Replies

IIS Configuration :: Website Working Fine On Local But Does Not Work On Server

Jan 4, 2013

In my site on every load some session is made through url and single page(say xyz.aspx) is call every time and on the basis of url we create session. When i click on a href tag , page start reloading ,url we created is accurate but data doesn't change every time, means some time it show data on first click, but some time after 3 or 4 click.

I say problem is weird because when i run this on my local server there is no problem, when i run this on my project (visual studio) there is no problem , but when i up this project on my online server it show this kind of error but not every time .

I use data caching to fill dataset. There is no problem in this website since we created this (more than 1 year) and we don't made any change on this page but suddenly it starts showing this kind of error so what kind of error this is.

View 1 Replies

IIS Configuration :: Web Config Session Timeout Setting Not Working In Server

Jul 17, 2015

i am working on an application ,i have hosted on server. everything going fine  . i have added a code to set session timeout in webconfig . but its expire default time .

<sessionState mode="InProc" timeout="524601"/>

View 1 Replies







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