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

how can i manually edit a web deploy package?

$
0
0

I generate a package like this: 

msbuild myapp.csproj /T:Package

I want to transform the package after it has been created.

I dont want to use parameters.xml because i already have a bunch of xdt transforms and using another totally difference transform tool for the same thing is really stupid.

I tried scripting applying my xdt transforms, opening the zip, adding in the transformed configs, and deploying that modified package

Web deploy deleted the entire site directory and failed.

Why? Does webdeploy hash the files or something making it impossible to manually edit a package after it has been created (outside of the parameters.xml thing)?

The error was: 

ERROR: msdeploy failed : SetParameters from:"C:\...\...\package.SetParameters.xml"

.Net Error: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure

$
0
0

Hi All,

I have a client authenticated service (https://clienttestservice.com/ADD/gettoken.oauth2) tested via Postman. It works fine and gives the result. I then accessed the service thru application code and ran thru IIS-Express in Visual Studio. It works fine and gives the result. Then, I moved the code to another layer and mapped the code to new virtual directory in IIS and execute the appliation. I throws the below error message at line 45.

Error:

Server Error in '/PublishDOC' Application.

The remote certificate is invalid according to the validation procedure.

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.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Source Error:

Line 43: FormUrlEncodedContent getcontent = new FormUrlEncodedContent(postData);

Line 45: var _httpresp = client.PostAsync("", getcontent).Result;

Thanks in advance.

Regards,

kamal anand

How to add .net framework offline installer as dependency for .net windows app MSI creation?

$
0
0

Hi All,

I want to install the .net framework automatically if it does not installed in the machine while installing our windows application. So while MSI package creation I need to add dependency as an offline installer of .NET framework. How to do that?. (by default it install from the web). 

Note : I'm using visual studio 2015 


Thanks

Is it possible to manually modify the contents of a webdeploy package?

$
0
0

I built a web deploy package with msbuild, but if I open up the zip and modify it and then try to deploy it fails- seems like webdeploy hashes the contents of the zip or something?

I dont want to apply a parameters transform to the package, I just want to edit the contents myself manually before deploying it- how is this possible without having to recompile?

Configuring my website for a specific URL on IIS gives error --

$
0
0

Hi.
Just one small problem here. I am configuring my website to run from my IIS with a specific url. Currently getting the following error as shown in this screenshot --
pasteboard.co/HjE6Vgo.png

I edited the hosts file and added
127.0.0.1          petorama.com

Doesn't run. Logon method and logon user are undefined as you can see. What's the issue? What else do I need to add/edit or configure here?

Kindly assist,
Thanks,

Web.config Redirects

$
0
0

Hi,

  • I want to redirect the homepage from an old domain to a new domain
  • I want to redirect another page 'page1' to the corresponding page on the new site
  • The rest of the pages can be redirected to the new domain

Can anyone help me with the code?

thanks you

M

WWW.KOOL.COM

$
0
0
HELLO KOOL.. ALL THAT HASEL TO GET CIGARETTES COUPONS FROM KOOL
GO BLOW IT OUT YOUR ASSHOLE...
.

Images not authorized in MVC application?

$
0
0

I have a requirement to authorize static resources present in my application so that only logged in users can access those including images.

I have form authentication enabled in my application and i am using authorization attrribute in web.config and localized web.config in folders for which i want to provide access to anonymous users.

But the images are not secured and getting accessed even when the user is not logged in. Rest of the resources such as css and js are secured.

I am using below code in global web.config

<authentication mode="Forms"><forms loginUrl="<URL>" timeout="10" slidingExpiration="true"/></authentication><authorization><deny users="?"/></authorization>

and in localized web.config

<?xml version="1.0" encoding="utf-8"?><configuration><location path="Content/Custom/login.scss"><system.web><authorization><allow users="*"/></authorization></system.web></location><location path="Content/Images/CSSbundle"><system.web><authorization><allow users="*"/></authorization></system.web></location><location path="Content/images"><system.web><authorization><deny users="?"/></authorization></system.web></location></configuration>

where am i missing something ?


Change Shadow Copy Directory Path

$
0
0

In the web application I am working on, certain functionality requires dynamically loading DLLs. I tried to find ways of updating/changing the current AppDomain to enable/disable ShadowCopy and also to change the Shadow Copy directory paths.

  1. Am I better off creating a new appdomain with the configuration values I want and loading the DLLs into that domain, so I can unload the domain after I have the use of the assemblies?
  2. Is there a way to enable ShadowCopy and ShadowCopy directory paths of the existing AppDomain, so that the feature is enabled by default?
  3. Or is there a totally different approach to this?

Can anyone help me with these questions?

Language: C#
.NET Framework: 4.5
Type: Web API project
Visual Studio 2015 & 2017 Community Edition

Thank you

How to protect Asp .Net applications - After deployment

$
0
0

Hi Forum users,

I want to protect my Asp .net application after deployment of application in IIS at customer location. I.e., How to protect the application when re-use / copy the application source files and reproduce in other location.

Kindly suggest.

Thanks.

Best folder structure for front and back end sites to share common code.

$
0
0

Trying to figure out the simplest folder structure to deploy a front end and admin site. I was thinking about putting the admin site on a subdomain. I would rather do that but I don't want to have two copies of the code files and I don't want to compile them. The site itself only has a registration and contact page. No user accounts.

The same error occurs when you deploy FTP to a virtual server.

$
0
0

When you publish FTP to a virtual server, the following error appears :

Publish failed due to build error. Check the error list for details. 
A diagnostic log has been written to the following location : " C\User\ MK\AppData\Local\temp E5CF.tmp "

After that, the file changes every time. My site name is Default Web Site, and the following error appears in the Web publishing operation :

Connecting to ftp://xxx.xxx.xxx.xx/Default Web Site ...
Unable to create 'ftp://xxx.xxx.xxx.xx/Default Web Site . Cannot create folder " Default Web Site ".

If I try and get the same error, I don't know how to fix it. I'd appreciate your help.

Visual Studio Team Service Distribution Group Script Error

$
0
0

You are about to create a distribution group in Team Services.

After you create a distribution group, copy and paste the script to my remote server to get an error.

There are no errors on the local server, but the demo server does.

Do you have a separate part on the server?

"2"개의 인수가 있는 "DownloadFile"을(를) 호출하는 동안 예외가 발생했습니다. "원격 서버에 연결할 수 없습니다."
위치 줄:1 문자:1306
+ ... nalString, $True);}; $WebClient.DownloadFile($Uri, $agentZip);Add-Typ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : WebException

Internal Server Error

$
0
0

I installed ELMAH Error Logging, but could not get it to work. So I uninstalled it and now I get the following error message when i run my application. 

HTTP Error 500.22 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

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,

TLS SQL connections under ASP.NET v2 versus v4.

$
0
0

Hi folks,

I've come across a new issue I haven't seen to date.

We're starting to ask vendors to configure their web applications to use "encrypt=true; trustservercertificate=false" where possible in their connection strings, but in an interesting development, connections are succeeding when the application pool is configured to use the .NET CLR v4.0 pool setting while those restricted to running under v2.0 fail with the following error:

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The certificate's CN name does not match the passed value.)

Changing the "trustservercertificate=false" to "true" resolves the issue.

From a certificate perspective, because this is serving an AlwaysOn SQL cluster, all the names are registered as SAN entries.

What this seems to suggest is that ASP.NET CLR v2.0 compatibility precludes SANs from being checked. In other words, it's limited to strict subject name checking.

My question is: is this indeed the case?

What I'm trying to achieve here is finding an authoritative answer on the issue so I can mark it as "known", move on and forget about it.

While this is likely a .NET issue rather than a specific ASP.NET issue, I've deliberately posted here as I expect this is the context (a web app and its associated .config file) in which people these days are most likely to have seen it. I'll cross post to MSDN as well.

Cheers,
Lain

Assembly resolver issue in web application

$
0
0

Hi All,

I have a web application running under IIS server, which is referring desktop application’s assemblies.

I need to refer dependent DLL from desktop application’s installation path (e.g. C:\Program file\ApplicationV2\).

In my current scenario, I am able to resolve dependent DLL, which has a direct reference, but if the instance of dependent DLL is created dynamically (through reflection) then the assembly resolver is failed to load the dependent DLL. The compiler giving an error “Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\myappdomain\879cbc93\806ed4e1\assembly\dl3\1be953eb\c09ec85a_7ae7d301\Helper.dll' or one of its dependencies. The system cannot find the file specified.”

Dependent DLL must be load in the same ASP.NET temp folder where the main DLL is executing.

If we tried to load dependent DLL separately then it is loading into a different ASP.NET temp folder, which is not useful.

Does anyone have an idea on this problem? Alternative approaches are always appreciated.

Thanks in Advance.

Is it possible to run an Asp.net web application(web forms app) from last successful build in IIS server app pool (production)

$
0
0

My application got some serious problems regarding to asp.net version and other Nuget miss much versions and I cant build it due to these incompatibilities. I am looking for a solution to run my app in production server from last successful compiled build. is that possible or not? i need to run my app urgently and i have no time for rebuilding.

the application has developed in asp.net version 4.0 , visual studio 2010.

Looking forward to hear something.

IIS 7 - website does not get latest changes

$
0
0

Hi all,

I hosted a website on VPS - Windows server 2008. I did a little change in one of the controller files, restarted the website, recycled the pool, but still when I call the API I don't see the change. I tried to restart the IIS and it didn't solve the problem. I even deleted the whole controller file to see what will happen and still I get the same successful response. Then I created another website which listens on another port but has the same physical path and even that didn't solve the problem. It's like the content is cached somewhere for that physical path and I don't get the new changes and files. I already disabled caching on the IIS in Output Caching. But it looks like I need to delete the data that has already been cached and I don't know how to do that. Please help!

Viewing all 3561 articles
Browse latest View live


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