MVC :: Silverlight App Error On Production Machine?

Dec 15, 2010

i get the below error when i run the site on our production, the silverlight apps are in a .ascx view.

[ArgumentException: The virtual path '/Views/Home/DailyProductionGuages.ascx' maps to another application, which is not allowed.] System.Web.VirtualPath.FailIfNotWithinAppRoot() +11363277 System.Web.Compilation.BuildManager.ValidateVirtualPathInternal(VirtualPath virtualPath, Boolean allowCrossApp, Boolean codeFile) +271 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +155 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +116 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +175 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(String virtualPath, Type requiredBaseType) +44 System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.CreateInstanceFromVirtualPath(String virtualPath, Type requiredBaseType) +48 System.Web.Mvc.WebFormViewEngine.FileExists(ControllerContext controllerContext, String virtualPath) +110 System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromSpecificName(ControllerContext controllerContext, String name, String cacheKey, String[]& searchedLocations) +45 System.Web.Mvc.VirtualPathProviderViewEngine.GetPath(ControllerContext controllerContext, String[] locations, String[] areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String[]& searchedLocations) +353 System.Web.Mvc.VirtualPathProviderViewEngine.FindPartialView(ControllerContext controllerContext, String partialViewName, Boolean useCache) +213 System.Web.Mvc.<>c__DisplayClass2.<FindPartialView>b__1(IViewEngine e) +40 System.Web.Mvc.ViewEngineCollection.Find(Func`2 cacheLocator, Func`2 locator) +324 System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) +42 System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +342 System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +99 ASP.views_home_dailyproductionhourlylist_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +8988 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.Page.Render(HtmlTextWriter writer) +38 System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +94 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

View 2 Replies


Similar Messages:

Date And Time Format Different On Local Machine Compared To Production Machine?

Sep 22, 2010

On one of my pages I display a datetime (from a database) and it is formatted correctly as a UK date time (dd-mm-yyyy) on my local machine. However when I deploy it to a server it reverts to American format (mm-dd-yyyy). Does anyone have any idea of when this might be happening?This might be outside the scope of stackoverflow

View 3 Replies

How To Access Production Server IIS From The Remote Machine

Dec 27, 2010

We have staging server and production server for website. We will move the changes from the staging server to the Production server through the FTP.

Since we have the product release for every 3 months. So, we need to redirect to the latest version in the Production server IIS. Is it possible to access the Production server IIS and redirect the web site link from staging server ?

View 2 Replies

Configuration :: Login Works On Local Machine But Not In Production?

Sep 1, 2010

Here is my problem: I have created a login form on my local machine. I have tested it on the local machine and it works fine. But when I push it to production it doesn't work.

I set-up the web config file so that the system uses the production database even from my local machine. I used the Web > AspNet Configuration tool in Visual Web developer to add a user to the production database. I used Sql studio management studio to confirm that the user was in the production database and not just on a local database. I have removed all references to the local database. I even deleted the entire app_data folder on my machine so that there was no chance that I am using a local database.

To create the login, I dragged a login component onto my Login.aspx page from the toolbar in visual web developer.

Why can I log in just fine on my local machine, but when push everything to production and I try to log in as that user I get the error message "Your login attempt was not successful"

View 3 Replies

SQL Reporting :: Deploy Large Number Of Rdl Report Files Into Production Machine

Apr 16, 2010

I have around 100 rdl report files...what i have found in google is -> open RS Admin site upload each report...doing this manually takes a lot of time... We don't want to use Target report server url method and clicking deploy option to deploy the reports or report project onto the report server...because we are not provided with such production server url information...!! In client perspective...We just give the reports as a rar file...now client will have to extract the report files...and what should be the next step...!! Is there anyway to deploy or upload all the reports at a time...!!

View 1 Replies

Configuration :: How To Change Automatically Compilation Debug=false On Production Machine

Jun 8, 2010

I have a development machine and a server. problem is that whenever I publish a website I need to change manually debug=false.....its frustrating as I am publish almost everyday new version.

can I change this programatically by HOST name?

View 5 Replies

Databases :: Oracle Requirements For Developement/Production machine Besides .Net Framework And Visual Studio 2008 Express Edition?

Jun 7, 2010

we are planning to use ASP .NET and Oracle Database, however, I don't know what are the requirements for developement/Production machine besides .NET Framework and Visual Studio 2008 Express edition.I am confused between various providers.

Developement:

.NET Framework/VS 2008 Express.

Production Server.

Win2003 Server with IIS

please correct me if I am missing any other elements required to connect to a remote DB Server or Local one. If any provider is needed how do you deploy it at production server?

View 3 Replies

C# - Response.BinaryWrite Gives Error On Production?

Dec 6, 2010

I'm using localReport to print PDF (SQL REPORTVIEWER). It works fine on localhost. When I move the application to Production (64 bits windows 2008) it gives me an error. (see below)

I put the renderedbytes in a Session in USERCONTROL and I do window.open('Program1.aspx')...

In page load of Program1.aspx I try to retrieve the Session variable and process.... I think this statement cause the error "Response.BinaryWrite (...) etc".

It works on my local pc (Vista 32bits)...

[Code]....

Server Error in '/' Application. Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Code]....

View 2 Replies

Security :: 401 Error Only On Production Server?

Apr 14, 2010

I have an ASP.NET web application that has the following settings in the web.config file:

[Code]....

(The actual names are different, obviously.) I am not a member of the real "Valid Site Users" group which is why I am given explicit access.I am able to access the site without a problem while developing and debugging locally; however, I get a 401 (Unauthorized Access) error when I deploy the site to a server. The only way to gain access is to remove the <deny> element from the configuration, which is not an acceptable option.I'm certain the solution is something simple and I am just overlooking

View 8 Replies

AJAX :: Receive The Error Only On The Production Server?

Oct 1, 2010

I run a asp.net 4.0 website. (I did the porting from version 3.5 to 4.0)I receive the following error :ASP.NET AJAX client-side framework failed to loadn a page where I set scriptmanager EnableCdn="true" and there is a microsoft ajax extension Timer on the page.

[Code]....

I receive the error only on the production server.

View 4 Replies

Configuration :: Compilation Error Name Not Declared On Production?

Jan 26, 2011

In my production environment i am getting below error

Compilation Error

Name fci not declared

[Code]....

View 7 Replies

AJAX :: Slideshow Control Production Error?

Apr 5, 2010

am using Slideshow ajaxcontrol and its works perfect in the VS2008 in the local system, where as when I move to server (production) it is not working, I was getting different issues, I solved few by refering some forums, where as still it is not wroking or no error can any one help me here.Here is the URL of production: http://74.55.115.122/$sitepreview/focusedreader.com/demo/Default.aspxCode of Default.aspx is

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

[code]...

View 2 Replies

C# - Getting CS1502 Compiler Error On Dev Environment But Not Production?

Apr 29, 2010

When I try to run my ASP.NET app from my development environment I get the following error message: Compiler Error Message: CS1502: The best overloaded method match for 'mmars.Printing.printFunctions.SetPrintSummaryProperties(mmars.contextInfo, ref mmars.Printing.printObjSummary)' has some invalid arguments.

When I publish and run on our production server I don't get this error.It seems to compile fine when I build from the build menu (in fact if I change the second argument of the bolded function call below, i get a compiler error in visual studio), but now i've suddenly started getting this error message at runtime. So another question I have in addition to getting rid of the error is why is the .NET development server even trying to do JIT compilation on my project if it is already compiled into a DLL?

Printing.printObjSummary myPrintObj = new Printing.printObjSummary();
Printing.printFunctions.SetPrintSummaryProperties(ci, ref myPrintObj);
printObjects.Add(myPrintObj);

Also, though there are no warnings at compile-time, when I get redirected to the page with that first compilation error there are many warnings like the following:

Warning: CS0436: The type 'mmars.MMARSSummaryDataItem' in 'c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files
oot3dad423c40569048App_Code.b0rgpkzr.4.cs' conflicts with the imported type 'mmars.MMARSSummaryDataItem' in 'c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files
oot3dad423c40569048assemblydl37179c19a345f948c_ece7ca01mmars.DLL'. Using the type defined in 'c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files
oot3dad423c40569048App_Code.b0rgpkzr.4.cs'.

What's the deal with that? Is the webserver complaining about name conflicts in the source file and dll resulting from the source file?

View 2 Replies

Displaying Custom Error Pages In Mvc 2.0 On Production Site?

Dec 1, 2010

i have developed a production site in godaddy server.Now i want to display a custom error page if there is any error occurs in the site.i have made following changes in the web.config file ,

<customErrors mode="On" defaultRedirect="/Areas/User/Views/Shared/Error">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="/Areas/User/Views/Shared/Error" />
</customErrors>

But now if error occurs the server will display his default error page for 404 page.Now i want to display my customised error page.Please tell me the entire steps to implement this in asp.net mvc 2.0.i,e is there any coding i have to write in then controllers or in the global.asax.

View 1 Replies

Configuration :: Calling Dll With Gives HTTP 503 Error On Production Server?

Jan 11, 2011

We have had some problems with using a unmanaged DLL file written in Delphi. (Unable to load dll - not found...)The following code solved the problem on my local machine:

[Code]....

1) The elusive DLL is copied to the ASP.NET temporary files folder2) To check this we get a list of files from that folder.3) The needed function is called with DLL-import.1 & 2 works perfectly - both run directly from Visual Studio 2010 and when uploaded to a webhotel3 works perfectly local, but causes the remote host to think a little and then return a HTTP 503 Service Unaviable error for the next few minutes...

View 1 Replies

Configuration :: Encrypted Web.config File - Production Server Error

Dec 27, 2010

I encrypted my web.config file and I copied this file to the production server. But I get an error. But without encrypting - it's ok. I used:

C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet_regiis -pef "appSettings" "C:inetpubwwwrootSite1" -prov RsaProtectedConfigurationProvider

I don't have access to IIS. Is it possible to encrypt config file and everything works?

View 3 Replies

C# - Error - Could Not Download Silverlight Application?

Oct 28, 2010

Developing a silverlight page in already existing web application for previewing video files. When I create a asp.net application locally and add silverlight application on the solution it works perfectly. But while I am trying to include into already existing project it throws this error. I have not deployed into the IIS. this happens while debugging.

View 1 Replies

Silverlight Error While Calling A Service?

Oct 10, 2010

I am trying to call a service from a silverlight application, but I am getting the following error.

Uncaught Error: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details.

This works fine locally. I don't know if it make any sense, but locally if I add the url of the webservice on a browser, I am getting the details page of the service. In the other hand, on production server, it prompts me to download it.

public MainPage() {
InitializeComponent();
Loaded += new System.Windows.RoutedEventHandler(MainPage_Loaded);
}

[Code]....

View 1 Replies

Web Forms :: Error In Production Environment When Dynamically Generating Script Code

May 6, 2010

I am dynamically generating script code to return transaction data to Google Analytics using their ecommerce script. The code that generates the script is fully tested and functional on my development machine and when I view the page code the script, along with any values that were passed to it, can be seen above the </form> tag. Happy days, or so I thought. For some reason the code is not being generated when I test it in a live, hosted environment. I cant figure out why this is the case as the code is quite simple. I simply generate the script code and register it on the client side (see code below)

//Capture the transaction data for analytics ecommerce tracking
//Generate the necessary script code
string strAnalyticsEcommerceScript = Analytics_Ecommerce_Script_Creator();
//Register the script on the page
Page.ClientScript.RegisterStartupScript(this.GetType(), "AnalyticsScript", strAnalyticsEcommerceScript);

The page in question is called "Order-Successfull" and is where customers are sent to when they have succesfully payed for an order. On this page:

-The order is added to the orders database table
- The customer is emailed an order confirmation email
- The google analytics script is generated and registered

The Sequence is as follows:

[Code]....

Whats really interesting is that if I move the Analytics script creator code before the code that sends the emails, the script is generated and can be seen when I view the page code. If I do this, however, the emails do not get sent. If I lay the code out as per the code I have inserted in this post, the emails get sent but the script code is not placed on the page.. The code to that actually sends the emails is quite standard:

[Code]....

View 2 Replies

DataSource Controls :: Generates Unspecified Error On Opening File On Production Server

Jan 5, 2010

I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance. The upload and writing of the file to the file system works fine but I get an error when trying to open the file on our production server only. The application works fine on two other servers (development and testing servers).

string connectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";") + "Extended Properties="Excel 8.0""
OleDbConnection connection = null;
connection = new OleDbConnection(connectionString);
connection.Open();

The exception comes on production server at connection.Open() some times, when I reset the asp.net worker process it started to work but after some hours/days It occurs again. how can I fix this issue which comes in production some times but very irritating, or there is some other work around.

View 4 Replies

Visual Studio :: Error After Adding Silverlight To MVC2 Project With LINQ?

Jul 25, 2010

I have an MVC 2 web application which uses models auto-generated by LINQ. When I add a Silverlight project to my solution, generating a new strongly-typed View fails with the message:

Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?). I understand this is most likely because Silverlight does not access the System.Data namespace (at least, I can't add the reference to my Silverlight app). However, it's not really important - I'm just trying to generate an .aspx View at this stage, not a Silverlight View.

Is there any way to get this template generation to work, or do I have to create my Silverlight project outside the solution and build it separately? I was kind of hoping to take advtage of WCF RIA and some of the other goodies one gets from including the Silverlight app within the main solution... anybody got a fix?

View 1 Replies

Configuration :: Error Displaying Silverlight In Visual Studio Development Server?

Mar 16, 2011

I have an ASP.NET site running on the Visual Studio Development Server. I also have a silverlight project in my solution. I get the error:

Error: Unhandled Error in Silverlight Application
Code: 2104
Category: InitializeError
Message: Could not download the Silverlight application. Check web server settings

After some research, it seems I need to do the equivalent of setting the MIME type in HTTP Headers in IIS for VSDS. Is this right?

If so, how do I do this? If not how do I get my silverlight to run in my ASP.NET solution using Visual Studio Development Server?

View 3 Replies

The 'Microsoft.ACE.OLEDB.12.0' Provider Is Not Registered On The Local Machine - How To Fix This Error

Mar 21, 2011

, ive written this website and it works perfectly offline

But when i upload it to my webhost i get the folowing error:

Code:

Why do I get that? Am i missing something in my connection string or what can it be?

View 1 Replies

Error: No Connection Could Be Made Because The Target Machine Actively Refused It?

Jun 21, 2010

can anyone explain to me what is the error... im using c# .netNo connection could be made because the target machine actively refused it (ip address)code behind:

MailMessage mail = new MailMessage();
mail.To.Add("emailto");
mail.From = new MailAddress("emailfrom");

[code]...

View 1 Replies

Visual Studio :: Error While Enumerating Services On Local Machine?

Jun 30, 2010

This error never happens before in my machine since 7 months of using it. [:(]

"There was an error while enumerating services on local machine: Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that IIS Metabase and IIS 6 configuration compatibility feature is enabled."

I'm trying to add back a webservice (localhost) after deletion. And suddenly I'm getting the above error.[:(]

The error's suggested tip is to install IIS but I did not install IIS since then in my machine because VS2010 built-in server do just fine. Should I install IIS?

I also found this helpful tips but nothing works. [:(]

* Run Visual Studio with elevated administrator permissions
* Be a member of the "Administrators" group on the local machine
* Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu.

View 2 Replies







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