MVC :: CSS And Javascript With T4MVC Not Working On Production Server
Nov 29, 2010
I have a asp.net MVC web application that uses t4 mvc , Jquery for validation / Ajax and CSS file for styling. On the dev machine (my pc) the application works fine as expected. However on the production server the css styling and jquery do not work. I use code like:
<script type='text/javascript' src='<%=ResolveUrl(Links.Scripts.jquery_ui_1_8_5_custom_min_js)%>'></script> <%= string.Format("<link href='{0}' type='text/css' rel='stylesheet' />", Url.Content( Links.Content.Site_css,))%>
to include the JavaScript and css files in the views on the master page, the paths are generated correctly (I can see this from the source created )but the site will not render correctly. In fire bug the net tab tells me that the CSS and JavaScript files are found and the IIS server returns a 302 code. I am using a new production server 2008 server IIS7 (fresh build) with .net 4 installed. Is there anything I could be missing on the server?
View 10 Replies
Similar Messages:
Sep 14, 2010
i am calling the webservice from acrobat javascript. it works very well in development server. but when i put the same code in production server, it doesnt call the webservice.
View 3 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
Feb 11, 2012
I have a functionality working ( functionality for making controls visible / true false ) on my development system having windows 2008.
But the same is not working onĀ production server having windows 2003 on IE.
View 1 Replies
Nov 29, 2010
I developed a web page using asp.net 2.0 and ajax toolkit on my laptop on Windows 7 and IIS 6. I have my ajax/atlas toolkit DLL in my bin. The updatePanel works fine and does not postback my page. But when i hosted my website on a dedicated server the page postback totally like i have no updatepanel/ajax in my page...
I am using : Windows server 2008, IIS 6Ajax 2.0 installed on the server. I don t understand what is the difference with windows server or IIS or something else?
View 5 Replies
Oct 4, 2010
The following .post command in a .js file works fine in Dev and Test but not on our production box (Windows Server 2003). I believe the URL is not being found on the production box since the function(result) is not being run. Or it could be that the index method is not returning the jsonresult.
[Code]....
Site.Master
[Code]....
View 5 Replies
Jan 21, 2011
I have a function i used to send Mails, it works fine locally, but on production not working. here is the code
[Code]....
and here is the configuration
[Code]....
i got this exception on production only System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.167.82.80:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)...........
View 3 Replies
Oct 19, 2010
I have created the asp.net application and Hosted on Different Server(i.e Test,Development). its is an Intranet Application But When I tried to Host on Production the WebApplication dont work when I check the "Integerated Authentication" and when I check the "anonymous Access" i get null value for the HttpContext.Current.User.Identity.Name.ToString() returns null. and User.Identity.IsAuthenticated also return false. what changes do I have to make in IIS and Webconfig of my application so that it can run on ProductionSERVER
View 2 Replies
Jul 10, 2010
Will or is T4MVC compatible with Razor?
[code]....
Does it make sense to use both at same time?
View 6 Replies
Mar 15, 2010
I use T4MVC inside my asp mvc projects, mostly because it's brilliant. Is there an equivalent for asp webforms?
View 2 Replies
Oct 11, 2010
I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings).
What could be the error?
The login page is working but when I proceed a Javascript error occurs...
(Line: 48 Error: Object doesn't support this property or method)
Here's the code
[code]....
View 3 Replies
Feb 1, 2011
Installed T4MVC (via nuget) into my MVC3 Project.Upon compile I get this error (for each of my 5 current controller classes)
Error 7 The type or namespace name 'Account' does not exist in the namespace 'Application.MVC' (are you missing an assembly reference?) G:DevRepositoriesTemplatesrcappPresentation TierApplication.MVCAccountController.generated.cs 36
61 Application.MVC
First time using T4MVC, so.....
View 9 Replies
Mar 9, 2010
Isn't possible to get the latest version of T4MVC without MVCContrib?
If yes where can I find it?
View 1 Replies
Apr 12, 2010
I have a hosted site and just added some additional error notification to my global.asax file and works like a charm. I decided to add the same logic to our test server and it doesnt work. The server.transfer never happens and the email never gets updated. Now i know the email works on the test and production server since we have other pages that use the same SMTP server name and setup as i have in the global file. Below is my code as it is in the file now. I setup a test page to cause an error and the page displays the detailed error which we dont want. But i would like to be notified if this happens. What am i missing? I can only assume that its a IIS confige issue, since the exact same code works on a hosted site, but not at work on our test or production servers. Here is the code i have in the global.asax
[Code]....
View 18 Replies
Jan 21, 2011
I have created my site using ASP.NET Personal Starter Kits 3.5. I use Visual Studio 2008 only . .with its built-in SQL Server (2005 Express) ... my database in App_Data is ASPNETDB.MDF ...
I have created some of my tables also ....in ASPNETDB ..
In my local PC the site was running fine ...
But when I publish my site on production server it doesn't work and shows the following error
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
My hosting provider connection string ..
<add name="ConnectionString" connectionString="Data Source=69.16.253.19;Initial Catalog=usa_data;Persist Security Info=True;User Id=user;Password=pass" providerName="System.Data.SqlClient"/>
My hosting provider gave me the connection string to connect to the SQL Server 2005 but it doesn't work...
I don't understand why my site was running fine using the production SQL Server 2005 in my local PC when I include ASPNETDB.MDF file in App_Data in my local pc only ..if I remove file ASPNETDB.MDF from App_Data of my local pc ... the site stops working ...
Can anybody tell em how to fix this ... !! I am very tensed since last 3-4 days
View 1 Replies
Sep 30, 2010
I create a dynamic dropdownlist to select several values, in developer server it's everything ok but in production server, when the postback happens lost the selected value.
View 4 Replies
Jul 8, 2010
how to transfer my data from devlopment server to production server ,i have already records exist in my database if i go for script then how can i transfor record in script i can transfor only table ,procedure and views.I am using SqlServer 2005.
View 2 Replies
Jun 18, 2010
I have a user control SearchCriteriaCtrlr.ascx(see below).In this user control, I have a javascript code for filtering listbox values.I am firing this javascript for
<asp:TextBox ID="txtSearch" runat="server" onkeyup="FilterItems(this.value)"></asp:TextBox>
Problem:The problem is, my filter javascript is not working
SearchCriteriaCtrlr.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchCriteriaCtrlr.ascx.cs"
Inherits="TimecardAdmin.SearchCriteriaCtrlr" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//variables for holding different values
var ddlText, ddlValue, ddl, lblMesg;
function CacheItems()
{
//Array for holding Text
ddlText = new Array();
//Array for holding Value
ddlValue = new Array();
//Listbox value
ddl = document.getElementById("<%=lstSource.ClientID %>");
//Looping through all values of listbox
for (var i = 0; i < ddl.options.length; i++)
{
ddlText[ddlText.length] = ddl.options[i].text;
ddlValue[ddlValue.length] = ddl.options[i].value;
}
}
window.onload = CacheItems;
//function for filtering items
function FilterItems(value)
{
ddl.options.length = 0;.....................
View 1 Replies
Jan 11, 2011
I am working on the migration of the server. Our new server is Windows server 2008 with IIS7.0 I have a great difficulty in browsing the pages hosted in virtual directories. I have followed the proper steps of creating a virtual directories and converting them into applications. But when i try to browsing the pages of the virtual directory, i get the 404 error. Note: The .Net Framework 4.0 is installed on the server and the web applications which i am trying to configure in the virtual directories are developed in Visual Studio 3.0. Even the http://localhost also don't work.
View 9 Replies
Feb 7, 2010
I've never had this problem before, I'm at a total loss.
I have a SQL Server 2008 database with ASP.NET Forms Authentication, profiles and roles created and is functional on the development workstation. I can login using the created users without problem.
I back up the database on the development computer and restore it on the production server. I xcopy the DLLs and ASP.NET files to the server. I make the necessary changes in the web.config, changing the SQL connection strings to point to the production server database and upload it.
I've made sure to generate a machine key and it is the same on both the development web.config and the production web.config.
And yet, when I try to login on the production server, the same user that I'm able to login successfully with on the development computer, fails on the production server.
There is other content in the database, the schema generated by FluentNHibernate. This content is able to be queried successfully on both development and production servers.
View 2 Replies
May 6, 2010
I have create a report in sql server 2005 & want to deploy on production server, in local system it deployed & works well. also if that report deploy at local system successfuly than how i see report in intranet.
View 2 Replies
Mar 22, 2010
I am wondering the best way to change my connection string based upon which server I am accessing.
Essentially, all of the development is done on our local machines - once we think it is working, we upload it to our development server. In these 2 instances, I want my application to go off of our "dev" connection string for the SQL database in the web.config.
However, once it is published to our production server (for an internal application), I would like the connection string to point to our live db.
I am using the N-Tier model by Imar Spaanjaars - and have it setup like he suggests - In my DAL I have a class called AppConfiguration -
In this class I have a public readonly property ConnectionString() which returns the connection string in the web.config.
This is in an individual class library. What I would like to do is something similar to:
If server is localhost OR devstring return devString else return productionstring
View 1 Replies
Jan 22, 2011
I m getting the following error when i upload my site to Production Server using Database in App_Data ASPNETDB.MDF
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current
ustom error settings for this
application prevent the details of the
application error from being viewed
[code]...
View 2 Replies
Dec 10, 2010
I built an ASP.NET 4.0 Web Site. It works perfectly on my development computer. However, when I deploy the web site to theProduction Server, which is a Win2003 Small Business with Sql Server 2000, the site can't connect to the database.
These are the different tests I've made:
I tried using Integrated Windows authentication and this connection string: Data Source=myServerAddress;Initial Catalog=myDataBase;Integratedsecurity=true; and the error I got was that NT Authority/Network Service couldn't open the database. So I added that account to my database users list and gave it the appropiate permissions. Nothing.I tried using Sql Server authentication, so I created a new database user with a password and changed my connection string toData Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;. Nothing. I still got the same NT Authority user message.I deleted the used I created in step 2 and used the same connection string, to see if this time I got an error saying something about my user, and indeed it happened. I got an exception saying that user myUsername couldn't log on. I then created the user again, ang got the NT Authority user message one more time.I created a console application that used the same connection string from steps 2 and 3, and it connected to the database witouth any problem, which made me think that my problem's got something to do with my Web.config.I tried enabling impersonation on my Web.config, and thos time I got the same error message, only referring to the user I logged in to Windows, instead of NT Authority/Network service. What else could I check? My Web.config is this in case it helps (I havn't really put anything into it other than what VS puts):
[Code]....
View 10 Replies
Jul 19, 2010
I am working on ASP.NET Ajax site. Application is working fine when I run in my local machine, but same code if I place in Server then it is giving "SpanID is undefined" Javascript error. I found error is due to UI.dll file.
View 2 Replies