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

Deployment of .net 4.5 app different to 3.5

$
0
0

I have a web project written in .NET 3.5, on Visual Studio, which I have been supporting for a number of years.

I always deploy this myself using FTP. The project compiles to a single DLL file, which I put in the bin folder on web server. I then put the .aspx pages in the appropriate folders. I do NOT put the source code across. I am happy with this way of doing things. I find that there is little start up time on the app, and if I replace an aspx page on the fly, nothing is affected eg page lag.

I have a new web app built with .NET 4.5. 

In the bin folder, I now find other files along with my DLL.,

eg folder called Rosyln, files called  Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll, Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml

The app is running OK but..

One thing I find is that if I FTP up a replacement .aspx file, any request to a different page then takes a few seconds.

OK.. to my question... I would ideally like my 4.5 project to be deployed identically to my 3.5 project.  That is, a single DLL file to FTP, plus the .aspx pages as needed, and hopefully get round the 'initial request lag' which I don't get on 3.5

Is there some setting I need to make it behave the same, and do away with the other stuff in the bin folder? Thanks


Kugel

How to manage deployment of a web.config in an on-premise scenario

$
0
0

We are migrating a very large ASP application to ASP.NET MVC 5. Hopefully shortly after to core. Our situation is that our application is installed on premise at each clients location on a server, due to security. We have never shipped a web.config with our software before, most settings were added manually over time. Each of them do have web.config files configured to set things like appSettings, httpRuntime.maxRequestLength, et cetera. Our customer's do their own updates and upgrades, but don't have a clue what a web.config is, and would not expect to be responsible for modifying one. Over the years we have typically made these changes as needed. Upgrades are deployed via our custom Upgrade executable, which is a wizard style WPF app.

Now, we have binding redirects, EF settings, want to migrate the connection string to the web.config, and provide our MVC settings like webpages:Enabled value = false, but how do we support this scenario?

I have looked at using file= and configSource= for certain sections, but not all elements support that (e.g. runtime), and it is very limited. It doesn't seem there is the capability to have two web.config files in the same directory that support inheritance (such as web.default.config, web.customer.config).

What I have done so far is used AssemblyResolve on the app domain to do the binding redirects from code in the Global.asax App_Start, and this works. I have also been able to use HtmlHelper.ClientValidationEnabled and HtmlHelper.UnobtrusiveJavaScriptEnabled, but there are still other settings that are not supported from code, like webPages:Enabled.

Are we going to be forced to make our clients redo their web.config files? What do we do when we need to deploy updates to this file, such as additional binding redirects? Every client may be different as well, such as enabling Windows authentication or anonymous.

From what I have read in most scenarios, the consensus is deploy the web.config manually and make the changes, but in these cases they have control over the hosting environment and its usually a single production server. We're talking about 150+ unique installations in our case, across 150+ unique customers.

HTTP Error 500.19 - Internal Server Error

$
0
0

Hi,

I keep getting this error when open a website.

<div><fieldset>

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

</fieldset></div> <div><fieldset><legend>Detailed Error Information</legend> <div id="x_x_details-left">
ModuleIIS Web Core
NotificationBeginRequest
HandlerNot yet determined
Error Code0x80070032
Config ErrorThe configuration section 'connectionStrings' cannot be read because it is missing a section declaration
Config File\\?\C:\inetpub\wwwroot\CM_Live\web.config
</div> <div id="x_x_details-right">
Requested URLhttp://localhost:80/CM_Live
Physical PathC:\inetpub\wwwroot\CM_Live
Logon MethodNot yet determined
Logon UserNot yet determined
</div> </fieldset></div> <div><fieldset><legend>Config Source</legend>
   22: 	</configSections>   23: 	<connectionStrings>
   24: 		<add name="DWG_ConnectionString" connectionString="Data Source=server;Initial Catalog=Data_;Integrated Security=True" providerName="System.Data.SqlClient"/>
</fieldset></div>

Hosting in AWS amazon

$
0
0

Hi everyone, someone has used AWS amazon to host a website?

developed on C# language and MsSql as database.

I created some virtual machines, and anyone has Internet Information Server, I need find the way to install it.

or maybe to host the web site, I need follow another way.

thanks in advance

.htaccess file redirect problem

$
0
0

Hello!

If someone is entering a webpage or folder that doesn't exist on the webpage like for example those:

www.website.nu/en/

www.website.nu/sv/

www.website.nu/page.aspx

I now wonder what we need to add in the .htaccess file to redirect NON existing pages that gives the: "HTTP Error 404.0 - Not Found" towww.website.nu

My .htaccess file is located in the very root folder in the hosting. So "website" is a subdirectory.

Thank you!

Deploy Server and Error while accessing on RDLC Reports

$
0
0

Asalam Alaikum(Greetings)!

I deploy my project on website and in report file i put these things:

ReportViewer1.LocalReport.SetBasePermissionsForSandboxAppDomain(AppDomain.CurrentDomain.PermissionSet.Copy());

and in web.config file i put:

<configuration><location path="application1" allowOverride="false"><system.web><trust level="Full" /></system.web></location></configuration>

But i am still receiving error. How can i resolve this issue.

Thank you,

Regards,
Muhammad Naveed Haroon 

How to add the Provider Name using IIS 8.5 config

$
0
0

Hi experts,

How can i convert this

<add connectionString="Server=DWCHDSAPSQL02;Database=DNS;User ID=intranet;Password=dd" name="DNSConnectionString" providerName="System.Data.SqlClient" />

into IIS connection string.

Thanks and best regards.


Sometimes throws "the class defined in this code file matches the 'inherits' attribute"

$
0
0

Hi,

We have a web application deployed to IIS. However, sometimes, it throws error "Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)."

But after showing this error, when we access the application after a few mins. it works again and no error returns.

May I know when will it occurs and how to solve this problem?

In our IIS, we set the application pool in AlwaysRunning Start Mode and Idle timeout 20 mins. by default.

Thanks

Phc

file upload works in server but failed when uploaded from a client computer

$
0
0

Dear all,

        Please am in need of your help, i have an asp.net vb application that allow users to upload excel file to the server. After deploying the application on an IIS server, the upload works well when i upload a file from server but failed when i tried to upload a file from a client computer. This problem happens with no exception message.

Cannot create ActiveX component (SAP Gui) in server ASP.NET Application

$
0
0

Hi,

I am developing ASP.NET Application. I used one form which contains SAP component to fetch data from SAP to our SQL DB.

Fetching data from SAP to SQL DB it's working fine in my local system.

But, when execute in server, i am getting below error.

Exception Details:System.Exception: Cannot create ActiveX component.

Error : StringConn = CreateObject("Sapgui.ScriptingCtrl.1")

What is the error..?

Publish subfolder to root

$
0
0

Hi,

I'm using the publish in VS2017 and I want to publish a subfolder in to the root, is this possible?

Thanks

Error: it cannot be referenced by a project that targets .NETFramework, version=v4.7.2

$
0
0

Hi,

I have 5 projects in a solution.  the 4 projects targets framework .net core 2.1.  The UI Web App Framework targets .Net Framework 4.7.2.

I'm running into error the Web App references 2 of the projects where the framework is .net core 2.1:

Project '..\Person_WebAPI.Client\Person_WebApp.Client.csproj' targets 'netcoreapp2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2'. Person_WebApp   

I already changed the UI Web App Framework to v 4.6.1, v4.5, I still get the same error.

Please help!

Best,

tinac99

WebGrease assembly digital signature expires

$
0
0
We use WebGrease library in our ASP.NET MVC application, I ran into a problem during our internal validation process: the latest webgrease library we downloaded from Nuget has an expired certificate!

The steps to replicate are very simple:

1. Create an ASP.NET 4.5 Web Application

2. Use Nuget to pull down the latest WebGrease library

3. Check the digital certificate of the WebGrease assembly, hitting "Advanced" button, and you will notice that the Microsoft Code Signing PCA is valid between 1/25/2013 till 4/25/2014. In other words, the digital certificate has expired long times ago.

We cannot simply bypass the internal validation process in our company, thus I am wondering if there is a process to get an updated WebGrease.dll with validate certificate? I've actually tried to contact the library's author via Nuget's website, but didn't receive any response so far. Thanks for your kind help in advance!

IIS 301 Redirection

$
0
0

I stuck in redirection process using IIS. I want to redirect URL to another one. But the main point here is that the URL can be from Http or Https. For example:

URL A: http://www.example.com - redirect to https://www.example.org

URL B: https://www.example.com - redirect to https://www.example.org

How can I achieve this scenario?

What I have done is just redirecting old URL coming from https protocol to new domain. However, if the old url comes with http protocol then it wont redirect. I want to redirect old URL to new one, whether it comes with http or https.

Thanks for help.


Échec de l'ouverture de session de l'utilisateur 'AUTORITE NT\Système'

$
0
0

Salut j'ai publié une application web asp.net sur le serveur IIS en local, j'utilise sql serveur 2014 pour 

comme sgbd.Le problème est que l'application se présente avec un serveur sql alors avec un studio visuel cela marche impecablement. L'application affiche le message suivant après l'exécution:

Impossible d'ouvrir la base de données "PhytoDB" demandée par la connexion. La connexion à l'échoué.Échec d'ouverture de session de l'utilisateur 'AUTORITE NT \ Système'.

J'ai cherché sur internet malheureusement toutes les solutions proposées ne se ressemblent pas trop de mon problème.

Si vous pouvez m'aider je serais honnoré.  "PhytoDB" est le nom de ma base de donnée. Sur Visual studio la connexion avec sql server se fait sans mot de passe.

Je sais pas comment quand je la deploie ça ne fonction plus

DLLX file missing in bin folder

$
0
0

I am setting up a sitecore website. It is working fine at out client and they have sent me the zip of the whole website folder and I am trying to setup on my dev server.

I am getting this error

Could not load file or assembly 'custom.dllx' or one of its dependencies. The system cannot find the file specified.

They have a custom developed custom.dll file in the bin folder but I don't know what is dllx file, they never developed a dllx file.

Can anybody help how can I get rid of this error?

ASP. Net on Azure times out

$
0
0
Hi guys,
I've got an Asp. Net all that uses sockets to listen for TCP/IP data over a port which I set to port 13000. The app runs continuously when a button is pressed on the ASP page. The ASP app i created establishes a connection to a proprietary app which exports data over TCP-IP. I've basically created my own reader that takes in the data in ASP. When i run the program in local host in debug the application connects without issue and stays connected for hours or until i stop debugging. I've recently moved the app over to an Azure Windows server 2016 VM and it works over the Internet. However, it seems that the ASP app and the proprietary software exporting TCP-IP data only stays connected for a few minutes, maybe 5 or 10. I was thinking it must be something in my webconfig file, which is why I'm posting here.
I've tried a couple of things in the web config file but I'm unsure if it's properly implemented. Ive set the execution timeout to 36000 seconds and sessionState to 720 minutes but it doesn't have an effect it seems. When i press the start button i want the process to keep running until i close the browser or it times out. This is because data may be sent at any time over the period of hours. It seems to work fine on the localhost but just seems to time out over the web. Any help is appreciated!
Thanks guys

Godaddy question

$
0
0

Spent all day on this and thought maybe someone could help.

Mysql.data.dll in a medium trust environment. Doesn't work. Hours and hours later, I compile Mysql.data.dll to run in a medium trust environment. Actually runs locally. Upload to godaddy. Error message changes to:Strong name signature could not be verified.  

Hours and hours later, I'm on here. Can someone with more experience answer me this:

Waste more time with Mysql.data.dll and maybe get it signed somehow???   Or fix the Strong Name error another way?

OR

Throw in the towel on this! I'm going to say, I don't understand if I should be trying to use ado.net or odbc drivers. Everyone says to use ado.net over odbc. The first thing I find on this is to use ado.net on godaddy...by referencing mysql.data.dll file. Ahhhhh crap. I've already wasted an entire day on trying to reference mysql.data.dll.

Am I stuck using odbc drivers???

Much appreciate the best way to move forward.

Thanks,

%5C or \ in homepage URL

$
0
0

My Google webmaster tools shows duplication of my homepage URL:

When I look on Chrome it is displayed as https://www.example.com/%5C and on Firefox https://www.example.com/\

I have checked all my codes and don't have this backslash anywhere so it is presumably inserted by a bot as an external link and Googles gets it from there.

On Google Webmaster tools HTML Improvements I see following:

https:///\ pointing to https://www.example.com/%5C (wrong URL)

/ poingting to https://www.example.com/ (correct URL)

How can I achieve a redirect from https://www.example.com/%5C or https://www.example.com/\ to https://www.example.com/ with web.config?

I have tried following but it didn' work:

<rulename="Backslash rewrite"stopProcessing="true"><matchurl="(.*)\"/><actiontype="Redirect"url="{R:1}"redirectType="Permanent"/></rule>
Viewing all 3561 articles
Browse latest View live


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