Quantcast
Channel: Configuration and Deployment
Viewing all 3561 articles
Browse latest View live

How to solve "Assembly binding logging is turned OFF"?

$
0
0

I was trying to launch my web application to server, but the following error pops up.

Error:

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

This is my first time, so I'm so frustrated on that.

Hope there's someone help.

Very much appreciated.


website doesnt work on server.

$
0
0

Hello

I created a test website on visual studio community 2015 using asp.net and vb.net on windows 10...published it as filesystem,and stored it on a folder named Test copied folder in a usb drive.

then I went to server(windows server 2012), opened IIS8.5 and add new website and created a folder in c:/inetpub/wwwroot/test and then gave the physical path to this, but it doesnot work, I chose application pool-DefaultApp

the main prob is I cannot change anything on the server, I am supposed to put the folder in the wwwroot and it should display in local host website, what do I do?

Problem to post xml an image files

$
0
0

Hola a todos, agradecería su ayuda, tengo un software que se encarga de subir archivos xml con texto e imágenes para cada publicación. El hosting cambio de server y dejo de tener la conexión para la carga de información, por lo cual antes generaba para las imágenes una carpeta para cada grupo de imágenes y las publicaba bien; ahora en cambio sube las imágenes a cualquier lugar menos a donde tiene que ir, ya se modifico el web.config y se reconstruyo el archivo dll. pero no logro que suba las imágenes al lugar que tienen que ir. Los xml los sube bien a la carpeta www/Upload, pero las fotos van a la carpeta images/flatPhotos y dentro se crean las carpetas para cada grupo de imágenes, pero cuando entro al ftp me encuentro con que no genero las carpetas y las imágenes las deja suelta dentro del directorio raíz, me podrían decir que me falta hacer para que vuelva a tener la comunicación y cree la carpeta para las imágenes. Desde ya muchas gracias. Si necesitan que les muestre algún archivo para ver me dicen y lo subo.

Google Translate ( i forgot write in english)

Hi all, appreciate your help, I have a software that handles up xml files with text and images for each publication. The hosting server change and stop having the connection for charging information, which previously generated images to a folder for each group of images and published well;instead now up images anywhere but where it needs to go, and the web.config is modified and rebuilt dll file. but I can not upload images to the place they have to go.The XML up well to www / Upload folder, but the photos are the images / flatPhotos folder into folders for each group of images are created, but when I enter the ftp I find that I do not generate folders and imageslet them loose in the root directory, I could say I need to do to get communication back and create the folder for images. From already thank you very much.If you need to show them a file for upload and tell me.

Cannot Apply System.Web.Extensions to PartialTrustVisibleAssemblies List

$
0
0

In the web.config of webforms .net 4.5 application I set the following:

<trust legacyCasModel="true" level="Full" />

because this is a Microsoft work around to overcome an bug in the asp.net Report Viewer which causes large reports to take much longer to generate than in previous .net versions (3.5 and older). See this post for more details: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/770c24d3-8e48-4310-9459-04601d374958/reportviewer-local-report-10-times-slower-than-same-report-from-report-builder-20?forum=sqlreportingservices.

Unfortunately, enabling the legacy CasModel has caused the error below. As the error suggests I have attempted many times to apply an exception in my site's web.config such as:

<system.web><partialTrustVisibleAssemblies><add assemblyName="System.Web.Extensions" version="4.0.0" publicKey="0024000004800000940000000602000000240000525341310004000001000100B5FC90E7027F67871E773A8FDE8938C81DD402BA65B9201D60593E96C492651E889CC13F1415EBB53FAC1131AE0BD333C5EE6021672D9718EA31A8AEBD0DA0072F25D87DBA6FC90FFD598ED4DA35E44C398C454307E8E33B8426143DAEC9F596836F97C8F74750E5975C64E2189F45DEF46B2A2B1247ADC3652BF5C308055DA9" /></partialTrustVisibleAssemblies></system.web>

But the error still occurs. I also attempted to apply this setting to the .net 4 web.config and specify this assembly to have full trust but it still won't work. I've read a ton of documentation pertaining to this issue and I cannot locate any other way this issue maybe resolved (except to remove this assembly in my project or make other major changes to my web application). Any suggestions of how I can fix or address this issue would be greatly appreciated, Thanks.

Server Error in '/' Application. Attempt by security transparent method
 'Microsoft.ScriptManager.MSAjaxv45.PreApplicationStartCode.Start()' to access security critical method 
'System.Web.UI.ScriptManager.get_ScriptResourceMapping()' failed. Assembly 'System.Web.Extensions, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is a conditionally APTCA assembly which
 is not enabled in the current AppDomain. To enable this assembly to be used by partial trust or security
 transparent code, please add assembly name 'System.Web.Extensions, 
PublicKey=0024000004800000940000000602000000240000525341310004000001000100B5FC90E7027F67871E773A8FDE8938C81DD
402BA65B9201D60593E96C492651E889CC13F1415EBB53FAC1131AE0BD333C5EE6021672D9718EA31A8AEBD0DA0072F25D87DBA6FC90F
FD598ED4DA35E44C398C454307E8E33B8426143DAEC9F596836F97C8F74750E5975C64E2189F45DEF46B2A2B1247ADC3652BF5C308055
DA9' to the the PartialTrustVisibleAssemblies list when creating the AppDomain. Description: An unhandled 
exception occurred during the execution of the current web request. Please review the stack trace for more
 information about the error and where it originated in the code. Exception Details: 
System.MethodAccessException: Attempt by security transparent method 
'Microsoft.ScriptManager.MSAjaxv45.PreApplicationStartCode.Start()' to access security critical method 
'System.Web.UI.ScriptManager.get_ScriptResourceMapping()' failed. Assembly 'System.Web.Extensions,
 Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is a conditionally APTCA assembly which
is not enabled in the current AppDomain. To enable this assembly to be used by partial trust or security 
transparent code, please add assembly name 'System.Web.Extensions, 
PublicKey=0024000004800000940000000602000000240000525341310004000001000100B5FC90E7027F67871E773A8FDE8938C81DD
402BA65B9201D60593E96C492651E889CC13F1415EBB53FAC1131AE0BD333C5EE6021672D9718EA31A8AEBD0DA0072F25D87DBA6FC90F
FD598ED4DA35E44C398C454307E8E33B8426143DAEC9F596836F97C8F74750E5975C64E2189F45DEF46B2A2B1247ADC3652BF5C308055
DA9' to the the PartialTrustVisibleAssemblies list when creating the AppDomain.

Show the Customized Error page in Production phase, not Test phase

$
0
0

I have used the code from the the page "http://benfoster.io/blog/aspnet-mvc-custom-error-pages" in order to create a customized error message.

However forgot about that the the customized error page should be displayed only in production phase, not in test development phase. If I retreive a error message in test development I would like to read the error message, not reading the customized error page.

Do you know guys how I should do it?

I'm using ASP.net mvc 4.

Thanks!

Deploying just one page

$
0
0

I have a simple web page that I think I uploaded to my server using Expression Web. It consists of the aspx file and a CodeFile="Default.aspx.cs". The page works. It was not created using Visual Studio. The page element is:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

The code-behind file does not have a namespace.

Then I created a Web Project in Visual Studio with a simple page very much like the other one. When I copy it to my local IIS it does not work. Is it possible to get it to work, at least for educational purposes?

The error I get is:

Parser Error Message: Could not load type 'SimpleSite.WebForm2'.

The page element is:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="SimpleSite.WebForm2" %>

I assume that I could use Visual Studio to create an ASP.Net page that can be simply copied, but is there a way to do that and keep the page compatible with the project it is created in?

I agree that for a complete web site we should use the features provided by Visual Studio to deploy it. What I am asking about would be for when we have something very simple to do, such as for educational purposes.

Best Practice for web deployment once package is built

$
0
0

We are using TFS to build our deployment package. Now, I want to know after build should we move the whole package to stage/prod server or we just have to deploy the files which are added or modified.

For example if some aspx files have been modified or some new function is added to a page code behind, should I just deploy those aspx file along with modified dll or it is better to push the whole web site.

Thanks!

Registration page not found on the server but works fine on local machine

$
0
0
Hi
I created a website using asp.net Empty. So no master page ,Error page or global.aspx

I created two registration forms for two different languages and two tables and two store procedures and using connection string.

Everything works fine in my local machine. But on the windows plesk server godaddy I can't get to these two pages and get 404 error. Other pages that don't have data connection work fine.

Could you please help me?

Changing targeted version of asp.net

$
0
0

The controls of asp.net have enabled me to sometimes do more than I understand :=(

I use Paypal to receive payments, and they have recently made changes that require targeting asp.net 4.5  

My web.config file is set up with:

<compilation debug="false" strict="false" explicit="true" targetFramework="4.0">

My site uses many generic asp.net controls such as listviews, sqldatasources, gridviews. dropdownlists etc., and it also uses a third party Paypal control made by Spicelogic. Spicelogic has notified me that they have a new version of their control that meets Paypal's requirement. I understand that I must upgrade to the new version of Spicelogi's Paypal control and I must target framework 4.5

My Question: If I change the statement to say targetFramework="4.5" , what else, if anything do I need to consider? Can I assume all the generic asp.net controls will be ok and that all I need to do is upgrade the paypal control and change the targetframework statement?

Updating ASP.NET Web Application in Production Server WITHOUT Visual Studio

$
0
0

Hi,

I've deployed an ASP.NET web application to our client's production server.  We're going into testing period.  There are bugs being reported that I need to make changes to the web app.  How do I make changes to the application in the client's production server without Visual Studio?  They strictly prohibit installing any other software in their production server (as it should be).  But that leaves me in a bind.

Right now, I'm simply copying the changed web pages and files from my Development machine and pasting it into the production server.  Sometimes, though, the changes work in my machine but not in their production server.  So, it's very hard to resolve the issues.

Any help is greatly appreciated.

Site Hacked -- safely remove file?

$
0
0

My ownertrades.com asp.net website got hacked, causing any link to my site that is found via a Google search, to be redirected to some other site.

If I access my website via a direct url address, the site works fine, there seems to be nothing wrong with it. It's only links found via search engines that cause the problem. Somehow the crawlers used by the search engines picked up the hackers websites and indexed them as if they belonged to my site.

Using some Google recommendations I discovered an unauthorized user and deleted him. I also changed the password used to access my site account. I also discovered and deleted a number of .asp files, php files, and html files, that had been added by the hacker to the live website

Now when someone clicks on any link to my site found via a Google search, they get a 404 File not found error which I assume has to do with my having removed files the hacker put in place, thereby disrupting whatever the re-directing process was.

My question: There is a web.config file in the cgi-bin folder of the live site that I did not put there. I need to know what it does, if it is might be needed by the server, and if I should (or could) safely delete it.

here is the code from that file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script" />
</system.webServer>
</configuration>

.Net 4.5 folder on Dev Box not in Prod

$
0
0

I work independently from the sys progs, so do not have control over the production box.

The .Net 4.5 app we installed into Prod initially failed and we worked that one out.

However, during the debug process, on my Dev box I noticed a whole bunch of v.4.5 and v4.5.1 folders under 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework'
They are referenced in Visual Studio 2013 by the assemblies in the References folder in solution explorer.

These folders don't exist in Production , So, why are they referenced in Dev and why is Prod working!

Thanks

VS 2013 Web Deployment Omits files from the deployment package

$
0
0

When I Publish my web application, the deployment .zip file omits at least one style sheet.

On my development machine, in debug, I get the following web display:

(well  - I cannot put a picture  into this form.)  ----  anyhow, the control that references colorpicker.css displays correctly.

On my test machine following deployment - that same control shows a small red x indicating a problem,   Looking in the virtual directory, colorpicker.css is absent.  It is also absent from the .zip file.   If I change the copy attribute of colorpicker.css to copy always, it shows up in the virtual directory in .bin.styles, but is not accessed by the web application.


HOw can I repair this problem?

500 - The request timed out

$
0
0

Hi,

I have a long running api request (about 30-40 mins). But after a short while I get HTTP 500 (The request timed out).

In the web.config I have:

<httpRuntime targetFramework="4.5" maxRequestLength="204800" executionTimeout="99999" requestValidationMode="2.0" />

But the timeout seems still to be at the default value at 90 seconds? Is there any more setting I can do?

It's no problem when running the request on localhost but gets the timeout when published. The web app is hosted in Azure.

Microsoft.ReportViewer.Common, Version=11.0.0.0

$
0
0

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

This works on my dev box, it works on my development IIS server.  We set up a NEW Windows server for deployment and Report Viewer seemingly CANNOT be made to work.

My Server Environment:

  • Windows Server 2012 R2 Standard
  • IIS 6.2
  • Amazon Cloud Hosting
  • Microsoft SQL Server Management Studio 12.0.4100.1
    Microsoft Analysis Services Client Tools 12.0.4100.1
    Microsoft Data Access Components (MDAC) 6.3.9600.17415
    Microsoft MSXML 3.0 6.0
    Microsoft Internet Explorer 9.11.9600.18231
    Microsoft .NET Framework 4.0.30319.42000
    Operating System 6.3.9600

  • Visual Studio is NOT installed on the server.  It's a server.
  • All the non-report pages (including authentication and other database stuff) seem to be working fine.

We are using Visual Studio 2013 doing an MVC website.

The report viewer works like crazy here in the office but gives this error instead of reports on the production server.

C:\Windows\assembly has:

  • Microsoft.ReportViewer.Common 8.0.0.0, 10.0.0.0, 12.0.0.0
  • Microsoft.ReportViewer.WebDesign 12.0.0.0

I have tried numerous online posts, all of which have not helped.  Yes, I tried rebooting after.

The .rdlc files were not originally publishing, so I changed their setting from "Embedded" to "Content", which resulted in the files making it to the build.

At this point I am at wits-end.  


How to create a install exe file to deploy app to web server? (windows 2012)?

$
0
0

My pc running win7, vs2012 with crystal report and framework4.5

How to create a install exe file to deploy app to web server? (windows 2012)?

ASP.NET 4.5 Shared Web Hosting Trust Level

$
0
0

My hosting provider said that their shared hosting package does not support "Full Trust". It supports only "Medium Trust". Is it possible to run my application ( .NET 4.5 ) under "Medium Trust" level?

I got error !! What can I do?

Note: Hosting provider said that If I purchase cloud server package, then I will get "Full Trust" .

Web config:

<location path="www.asp.cinemadekhi.com" allowOverride="false"><system.web><customErrors mode="Off"/><trust level="Medium" /><authentication mode="None"/><compilation debug="true" targetFramework="4.5"/><httpRuntime targetFramework="4.5"/></system.web></location>

Error:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<!-- 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 <customErrors> 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>

error while changing the apppool

$
0
0

I have an application in .net framework 4.0 whose apppool is pointing to 2.0. I tried to change the apppool to 4.0. As soon as I did that, I got an error saying.

  There is a duplicate "System.web.extensions/scripting/webservices/JSonSerialization' section defined

The code is compiled in Visual studio 2010 and published on the server.

Any help will be appreciated.

How to solve Unrecognized configuration section system.web/urlMapping. in web config file?

$
0
0

Unrecognized configuration section system.web/urlMapping.
 This   error shown on web config file.i want rewrite the url(Remove .aspx Extension. :)

When yting to publish my asp.net website I cannot connect to server.

$
0
0

When I try and publish my website I get the following error.

---------------------------
Microsoft Visual Studio
---------------------------
Could not connect to the remote computer ("rogesplex"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. Unable to connect to the remote server
---------------------------
OK   
---------------------------

I have tried a variety of workarounds to no avail. Where to from here? I can connect to Rogesplex (another PC on my home network) via Remote Desktop Connection.  ps link above does not work.

Viewing all 3561 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>