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

Retrieving the COM class factory for component with CLSID {CD2958E4-CB20-11D2-856B-00104BD25F91} failed due to the following error: 80040154 Class not registered

$
0
0

I have written a windows service with a 3rd party component referenced. 

I have tried to find the CLSID and it's no where to be found in the registry. What am I missing? These .dll can't be registered. I get the ".dll was loaded but the entry-point DLLRegisterServer was not found. Make Sure that  XXXX.dll is valid DLL or OCX file and then try again".

Error:

Retrieving the COM class factory for component with CLSID {CD2958E4-CB20-11D2-856B-00104BD25F91} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).


Authorization Failure with IIS + ASP.NET CORE

$
0
0

Hi,

Application keep asking for windows credentials and not authenticating it.

I am deploying ASP.NET CORE WEBAPI  in IIS.

Along the process,

a. I enabled windows authentication and disable anonymous authentication on the asp.net core project.

b. Enabled cors and add IISOptions to the service to allow the Automatic 

    services.Configure<IISOptions>(options => { options.AutomaticAuthentication = true;});

    services.AddAuthenticationCore();

c. Published the project 

d. Modified the web.config to add forwardwindowsauthentication = true.

e. Created a website and then modified the application pool to handle unmanged code.

f. Added an entry in the hosts file as 127.0.0.1 www.test.com

When I try to access the website, the site keeps asking for the credentials and never authorizing. After couple of iterations, showing the unauthorized page.

I tried removing the entry in etc/hosts file. Then the site is not even discovered.

Anything I am missing.

System Config:

asp.net core 2.1

installed aspnetcore module 

only enabled the windows authentication (disabled anonymous authentication) even on the IIS site.

Ensured that the IIS windows authentication is also enabled.

Configuration Error

$
0
0

I deploy my web from visual studio 2013.

and when I try to open it and its throw me Configuration error. Anyone know what is happen? My server is on local C: drive.

Line 13:     <system.web>
Line 14:       Line 15:       <compilation targetFramework="4.0" />Line 16:       <httpRuntime targetFramework="4.0" />
Line 17:     </system.web>

Your comment is much appreciated

web hosting webgate web.config

$
0
0

I try to upload my site to webgate hosting and the hosting site said:

Server Error in '/' Application.


Runtime Error

Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated. 

and web.config is in error mode

web.config

$
0
0

Server Error in '/' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: The file '/MasterPage.master.cs' does not exist.

Source Error: 

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>Line 2:  <!DOCTYPE html>
Line 3:  <html dir="rtl" lang="he-IL" xmlns="http://www.w3.org/1999/xhtml">

Source File: /MasterPage.master    Line: 1 

web.config

Can I containerize an asp.net framework web application?

$
0
0

I know such questions have already been asked many times, but I am here with my scenario.

I have an asp.net web application with .net framework and SQL as backend

  1. Using N-Layered architectured
  2. No web services used.
  3. Each instance has a separate database.

I want to know:

  1. Can I containerize an asp.net framework web application into a windows container?
  2. Do I need to change entire application to Azure Web Application?
  3. If not, is it possible to deploy it directly over the cloud, on MS or any other, as we normally do in IIS?
  4. If not, Is there any third party migration tool available to make my plain old web application cloud-compatible, without affecting existing codes?

Thanks in advance.

Can a .NET web application be directed to use components of a different version than what it was compiled with?

$
0
0

I'm trying to get some web services functioning that apparently were not compiled/packaged correctly by the software vendor (and it's several years old and the vendor no longer exists........yay...) After installing the web services application, using the Depends.Net utility, I can see that two of the dependencies in the manifest are completely wrong version numbers, that are ancient compared to the versions of those components that they included within the bin directory.

I haven't done any .Net development in ages, and I admit to being pretty clueless here.

I've tried adding a redirection in web.config, something like:

<runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Link.Services" publicKeyToken="30cbdfc4e43d944a" culture="neutral" /><bindingRedirect oldVersion="1.0.1260.10042" newVersion="7.6.0.0" /></dependentAssembly></assemblyBinding></runtime>

However that had no effect whatsoever. I continue to get the error:

Could not load file or assembly 'Link.Services, Version=1.0.1260.10042, Culture=neutral, PublicKeyToken=30cbdfc4e43d944a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Am I approaching this the wrong way? Is there some other way to update the application to look for the correct version of the component it depends on when you don't have access to the source to recompile it correctly?

Thank you for your time!

Source of Additional Web.Config Transform Configurations?

$
0
0

I'm trying to get an ASP.NET site setup to do XDT transforms through TFS builds, for a CI/CD pipeline. I need to add the various web.config files for each environment, since they don't currently exist. I right-click on the web.config file and select Add Config Transform. It then creates a bunch of Web.XXX.config files, where XXX is not in the Configuration Manager.

For instance, here are just a few of the Web.XXX.config file names.

  • Web.Debug.config
  • Web.Deploy.config
  • Web.Development.config
  • Web.HotSite.config

However, when I open the Configuration Manager, I only see the following active solution configurations.

  • Debug
  • Release
  • Release with Documentation

The active solution platform contains the following.

  • Any CUP
  • Mixed Platforms
  • x86

I have searched high and low for where the additional Web.XXX.config file names are coming from, but to no avail. Does anyone know where these might be sourced from?


The application throws 503 Service Unavailable during deployment.

$
0
0

Hi

I use "Web Deploy" in visual studio to publish my asp.net mvc application. But during the deployment, the app throws "503 Service Unavailable" and it continues one or two minute after the deployment. IS there a way to overcome this ? For example switching to another application pool during deployment ? 

A question about connection strings

$
0
0
I have an idea about connecting to different databases that I would like an opinion on (be nice). I have several connections strings. One points to development, another test and another production. Each of these live in my web.config file. When I’m in development I pass in the hardcoded key “DEVELOPMENT”. In test I pass in the hardcoded key “TEST”. And when I’m in production I pass in the hardcoded key “PRODUCTION”. These hard coded values are listed in a custom connection helper class. The net result is that this class has to be changed from environment to environment. I don’t like that. I could use configuration transformation to switch these values, but that doesn’t feel right. It also may be an issue because I’m using a JavaScript framework for the front end to call my backend WebApi code.

I am considering creating a text file that I would distribute with each environment. That text file would contain one line:
Environment=PRODUCTION

or whatever the environment is. My GetConnectionString method in my custom connection helper class would read this text file and use the environment’s value to point to the correct database. This way I would have identical code between environments except for this one configuration file. Doing this would easily allow me to create new environments and eliminate accidental changes when re releasing code to production.

I’m curious if this makes sense or if there’s a better way to point to different databases depending on the environment.

Thanks

After i published my website i get this error

$
0
0

Server Error in '/' Application.


Unable to use SQL Server because either ASP.NET version 2.0 Session State is not installed on the SQL server, or ASP.NET does not have permission to run the dbo.TempGetVersion stored procedure. If the ASP.NET Session State schema has not been installed, please install ASP.NET Session State SQL Server version 2.0 or above. If the schema has been installed, please grant execute permission on the dbo.TempGetVersion stored procedure to either the ASP.NET application pool identity, or the Sql Server user specified in the sqlConnectionString attribute.

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.Web.HttpException: Unable to use SQL Server because either ASP.NET version 2.0 Session State is not installed on the SQL server, or ASP.NET does not have permission to run the dbo.TempGetVersion stored procedure. If the ASP.NET Session State schema has not been installed, please install ASP.NET Session State SQL Server version 2.0 or above. If the schema has been installed, please grant execute permission on the dbo.TempGetVersion stored procedure to either the ASP.NET application pool identity, or the Sql Server user specified in the sqlConnectionString attribute.

SO if anyone have faced this issue before and solved it please I need you to connect to my PC and ill give access to solve it because I have run into many links and websites about solving this but nothing is working with me or I am maybe not understanding something right

unexpected error in server log - the obsoleted password format is: Clear

$
0
0

While troubleshooting an unrelated issue with my hosting provider I was made aware that there was an error in the (shared) server log.

Application information:
Application domain: /LM/W3SVC/105aaaaa03/ROOT-6-13181111122218313614
Trust level: Full
Application Virtual Path: /
Application Path: h:\root\home\bd-001\www\vt\

Process information:
Process ID: 19716
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception type: ConfigurationErrorsException
Exception message: Unsecured Passwords Format Detected. The Membership Provider that contains the unsecure passwords format is: MySQLMembershipProvider. The obsoleted password format is: Clear.

There is nothing in the root of my site (live or local). I am using SQL Express and the SimpleMembershipProvider.

What is going on, and is there anything I need to do?

uninstall windows service

$
0
0

Hi,

I am deploying a windows service at my production server to do some background activities.  So i build the windows service and then create deployment package for installation at the production server.

Couple of time i install and uninstall the windows service at production server. 

Problem:

After couple of time uninstalling the windows service from control panel -> uninstall program. Now i have new version of my windows service. But i cant uninstall the previous because i cant see my program in the uninstall program in control panel. 

I see the service in the services with status "started" and service is working as well. But i cant uninstall.

How i can uninstall the service to able to install the new version of my service.

/Shahid

deploy asp.net web application and WCF service as a single package in IIS

$
0
0

Hi All,

I want to deploy asp.net web application and WCF service as a single package in IIS. Can you please suggest right solution for this?

 

Thanks,

Abhishek

set up CI and deployment process

$
0
0

I am writing a msbuild script to build a console application to deploy it to staging server .

my console application is using some of ready to use DLLS like Microsoft.Practices.EnterpriseLibrary.Common.dll , Newtonsoft.Json.dll .

just wonder , how would I update my msbuild script to resolve these dll dependencies and build the project to "exe" output and copy to staging server.

the sample of msbuild script is :

<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"><PropertyGroup><RootNamespace>TenKFeetProcess</RootNamespace><AssemblyName>TenKFeetProcess</AssemblyName></PropertyGroup><PropertyGroup Condition="'$(Configuration)'==''"><Configuration>Debug</Configuration><!-- Default --></PropertyGroup><PropertyGroup Condition="'$(Configuration)'=='Debug'"><Optimize>false</Optimize><DebugSymbols>true</DebugSymbols><OutputType>exe</OutputType><OutputDir>bin\debug</OutputDir><OutputAssembly>$(OutputDir)\$(AssemblyName).$(OutputType)</OutputAssembly></PropertyGroup><!-- Specify the inputs by type and file name --><ItemGroup><FilesToCompile  Include="*.cs"/><FilesToCompile  Include="BAL\*.cs"/><FilesToCompile  Include="DAL\*.cs"/><FilesToCompile  Include="MAL\*.cs"/></ItemGroup><Target Name="Build" DependsOnTargets="Init"><Message Text="build MSbuild project file from scratch" /><Csc Sources="@(FilesToCompile)" OutputAssembly="$(OutputAssembly)" Optimize="$(Optimize)" TargetType="$(OutputType)"/></Target><Target Name="Init" DependsOnTargets="Clean"><MakeDir Directories="$(OutputDir)" /></Target><Target Name="Clean"><RemoveDir Directories="$(OutputDir)" /></Target></Project>


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 

I have an error in my web.config

$
0
0

I can't find the error I have in my web.config file.

Could someone please show me where the error is?

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><directoryBrowse enabled="true" /><tracing><traceFailedRequests><add path="*"><traceAreas><add provider="ASP" verbosity="Verbose" /><add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" /><add provider="ISAPI Extension" verbosity="Verbose" /><add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" /></traceAreas><failureDefinitions timeTaken="00:00:00" statusCodes="500" /></add></traceFailedRequests></tracing><defaultDocument><files><clear /><add value="Default.php" /><add value="index.php" /><add value="Default.htm" /><add value="Default.asp" /><add value="index.htm" /><add value="Default.aspx" /></files></defaultDocument><httpErrors errorMode="DetailedLocalOnly" defaultResponseMode="File" >
<remove statusCode="500" />
<error statusCode="500"
prefixLanguageFilePath="C:\Contoso\Content\errors"
path="500.htm" />
</httpErrors>
<handlers><remove name="PHP53_via_FastCGI" /><add name="PHP7211_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\V7.2.11\php-cgi.exe" resourceType="Either" requireAccess="Script" /></handlers><location path="Wood"></location><system.net><mailSettings><smtp from="docfxit@theoffice.la"><network defaultCredentials="false" host="smtp.dslextreme.com" password="password" port="465" userName="docfxit2@dslextreme.com" /></smtp></mailSettings></system.net></system.webServer></configuration>

In config source it has:

  -1:     0: 


Thank you,

Docfxit

Dont Wok Modal Page in Host

$
0
0

Hi,
When i Upload my project asp.net Core 2.0 in plesk the modal page is not work and when i click to show modal page is redirect to blank page.what's problem ?

Required permissions cannot be acquired.

$
0
0

My site is fine on local server but after hosting i have face this error.

plz somebody help me.

The error is:

Server Error in '/' Application.

Required permissions cannot be acquired.

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.Policy.PolicyException: Required permissions cannot be acquired.

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:

[PolicyException: Required permissions cannot be acquired.]
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2737893
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3487289
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +347
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) +316
   System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) +208
   System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath) +40
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +54
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

costuErrors

$
0
0
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>
Viewing all 3561 articles
Browse latest View live


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