How does executionTimeout in web.config: <httpRuntime executionTimeout="250" targetFramework="4.7.1"/>
Relate to 'Connection Time-out' in IIS?
Configuring runtime in web.config
Re: Copy websit to commercial hosting
If you are using a SQL Server database (mdf file), that needs to be attached to a SQL Server to work. If SQL Server is included in your hosting package, your hosting company should provide instructions on getting your database to work. If you haven't got SQL Server included as part of your plan, your database will not work.
Copy websit to commercial hosting
Hi,
I've created a very simple website in vs2010 with a ASPNETDB.MDF db (basically the starter site you get when you create an asp.net website, and you get the 'My Asp.Net Application' Default.aspx.)
I can copy all the files, incl the app_data folder etc, using the Copy Website tool, but, whereas when I interact with the locally hosted site it works fine, when I try to register etc on the remotely hosted site it just returns a whole bunch of errors.
So, how do I copy this to my windows hosting package, such that it works on the internet?
VS2010
hostinguk
MSDev windows hosting
websitepanel v1.2.0
Debug via VS a deployed web app
Hi, is there a way for me to debug an already deployed to Production Environment Web App via Visual Studio 2017?
If yes, how?
Thanks
Connecting to SQL Server with windows authentication. Get errors: Failed to generate a user instance of SQL Server. Login failed for user.
I have connected to my local database:
DESKTOP-3FN63QO\SQLEXPRESS
in Microsoft SQL Server Management Studio using
Windows Authentication.
I have also added the following connection string to the web.config file:
<connectionStrings><add name="DefaultConnection" connectionString="Data Source=DESKTOP-3FN63QO\SQLEXPRESS; AttachDbFilename=|DataDirectory|\aspnet-AsianWeddingHire-20171021044501.mdf; Initial Catalog=AsianWeddingHire-Website; Integrated Security=True; Trusted_Connection=Yes" providerName="System.Data.SqlClient" /></connectionStrings>
In the Server Explorer view, under Data Connections, there is a red cross on the DefaultConnection (MyProjectName). When I refresh it, I get the following Server Explorer Error message:
"The attempt to attach to the database failed with the following information: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."
When I refresh it again, I get the following Server Explorer Error message:
The attempt to attach to the database failed with the following information: Login failed for user 'DESKTOP-3FN63QO\nazaq'.
My project is a new ASP.NET MVC 5 web application project and I really need to connect to my local SQL Server to create a database for persisting data when testing future CRUD methods, etc.
Can someone please help me?
Tried to duplicate entire folder of working website, it only shows fiiles, will not serve pages? IIS problem?
We have windows server, in a directory there is a folder of the project/solution that is loaded to write the code. Trying to branch and take the working version but modify it, I made a copy, pasted it into the same working folder, then renamed the project, did a refactor and renamed the namespace, tried to make sure folder paths point to the new name.
Have done this 3 different times so far. Instead of serve the page it lists the files. but this is a folder of a working project with all the settings as they should be. Searching for solutions, many will say change the configuration page, or change some setting in the project, but theyre already set. So it may be an IIS setting that needs to take place to tell it to serve the files?
What needs to be set for IIS to serve the pages not display contents?
thanks
Object reference & Could not load file or assembly
we have asp.net application(.net 2.0) published in IISwindows server 2012 and working fine but in last week a new errors appeared and the site become down until we rest the iis pool
sample of errors :
1-
<Msg>Could not load file or assembly 'xxxx1, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.</Msg>
<Trace> at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) at System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RtFieldInfo.get_FieldType() at System.Web.UI.Util.GetNonPrivateFieldType(Type classType, String fieldName) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder
builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry
pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
at System.Web.Compilation.MasterPageCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder
stringResourceBuilder, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)</Trace>
2-
<Msg>Object reference not set to an instance of an object.</Msg>
<Trace> at xxx1.InitializeCulture() in release path\filename.aspx.cs:line 213 at ASP.filename_aspx.__BuildControlTree(filename_aspx __ctrl) at ASP.filename_aspx.FrameworkInitialize() at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.filename_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)</Trace>
any one can help?
thanks
Rami
Public key tokens for 4.0
How do I get the public key tokens for 4.o. I have 2.0 now and need to update. I have 2 web config files and can
part of web config:
<authentication mode="Forms">
<forms name="BUMPLESAUTHENTICATION"
loginUrl="~/User/Login.aspx"
defaultUrl="~/Default.aspx"
protection="Validation"
timeout="180"
requireSSL="false"
slidingExpiration="false"
path="/"
cookieless="AutoDetect"
domain=""/>
</authentication>
<!-- custom errors -->
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx">
<error statusCode="404" redirect="~/Error.aspx?Code=404" />
<error statusCode="408" redirect="~/Error.aspx?Code=408" />
<error statusCode="505" redirect="~/Error.aspx?Code=505" />
</customErrors>
<compilation debug="true">
<assemblies>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!-- profile -->
<profile enabled="true" automaticSaveEnabled="false" defaultProvider="BM_ProfileProvider">
<providers>
<clear />
<add name="BM_ProfileProvider"
connectionStringName="BumplesConnectionString"
applicationName="BumplesMagazine"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
<properties>
the other config file
<!-- custom errors -->
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx">
<error statusCode="404" redirect="~/Error.aspx?Code=404" />
<error statusCode="408" redirect="~/Error.aspx?Code=408" />
<error statusCode="505" redirect="~/Error.aspx?Code=505" />
</customErrors>
<compilation debug="true">
<assemblies>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!-- profile -->
<profile enabled="true" automaticSaveEnabled="false" defaultProvider="BM_ProfileProvider">
<providers>
<clear />
<add name="BM_ProfileProvider"
connectionStringName="BumplesConnectionString"
applicationName="BumplesMagazine"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
Thanks for your help.
Jen
Word Math Equations to LateX conversion
Hi Everyone,
I have created one Open XML application in asp.net, where I need to convert the Math Equations from Word document to LateX with a Web project. For conversion, I am using 3rd party DLL as MathType 6.9b version. Issue is when I check the conversion in Debugging mode, it does the conversion properly, but when I publish my website, then it doesn't perform the conversion. After doing some debugging, I have found that Math Type convert Equation program looks for "MathJax-LateX.tdl" file in SetTranslation method, which he founds when we do the debugging through the Website, but unable to do that when we publish the website. I have checked all the references, and permissions and all are set properly. I don't know, what is causing this issue which is working in debugging mode and not working in publish mode.
If anyone has any idea with the web projects, please let me know.
Thanks,
Shahab Abbasi
IIS publish multiple projects
Hi folks,
I have created IIS url and known as BPA (localhost/bpa). And I have two projects (Front End and Back End) in Visual Studio 2017.
Is it possible to publish them at the same time? if yes, then How to publish both projects into a project?
I am waiting for your response.
Thanks in Advance!
change from 2.0 to 4.0 using visual studio 2017
I need to change from 2.0 to 4.0. I do not have the wizard conversion and can't seem to get it. I am trying to get the new token keys for my config files. I am still using xml 1.0. Do I need to change that and if so how do I do that. The website was built in 2009 I was given Microsoft sites to convert but they all led to the wizard. Can I reinstall visual studio 2017 to get the wizard
Here is one config file
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="bumplesMagazine" type="EP.BumplesMagazine.BumplesMagazineSection, __code"/>
</configSections>
<bumplesMagazine defaultConnectionStringName="BumplesConnectionString">
<contactForm mailTo="contact@bumples.com"/>
<newsletters fromEmail="info@bumples.com" fromDisplayName="Bumples Magazine" />
<store sandboxMode="false" businessEmail="sales@bumples.com" />
</bumplesMagazine>
<connectionStrings>
<!-- Local -->
<add name="BumplesConnectionStringLocalhost"
connectionString="Server=server3000; Database=BumplesDataBase; uid=SERVER3000\Junior; Trusted_Connection=True;"
providerName="System.Data.SqlClient"/>
<!-- Remote -->
<add name="BumplesConnectionString"
connectionString="Server=mssql1.myregisteredsite.com; Database=27534_BumplesDatabase; User Id=27534_login; Password=9u3673s!; Trusted_Connection=False;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.net>
<mailSettings>
<!-- <smtp deliveryMethod="Network">
<smtp deliveryMethod="PickupDirectoryFromIis" from="support@bumples.com">
<network defaultCredentials="true" host="(localhost)" port="25" />
</smtp>
-->
<smtp from="info@bumples.com">
<network host="smtp.bumples.com" password="gr!77y09" userName="info@bumples.com"/>
</smtp>
</mailSettings>
</system.net>
<system.web>
<!-- authentication -->
<!--
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="~/User/Login.aspx"
path="/"
protection="All"
timeout="60"
requireSSL="false"
slidingExpiration="true"
cookieless="AutoDetect"/>
</authentication>
-->
<authentication mode="Forms">
<forms name="BUMPLESAUTHENTICATION"
loginUrl="~/User/Login.aspx"
defaultUrl="~/Default.aspx"
protection="Validation"
timeout="180"
requireSSL="false"
slidingExpiration="false"
path="/"
cookieless="AutoDetect"
domain=""/>
</authentication>
<!-- custom errors -->
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx">
<error statusCode="404" redirect="~/Error.aspx?Code=404" />
<error statusCode="408" redirect="~/Error.aspx?Code=408" />
<error statusCode="505" redirect="~/Error.aspx?Code=505" />
</customErrors>
<compilation debug="true">
<assemblies>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!-- profile -->
<profile enabled="true" automaticSaveEnabled="false" defaultProvider="BM_ProfileProvider">
<providers>
<clear />
<add name="BM_ProfileProvider"
connectionStringName="BumplesConnectionString"
applicationName="BumplesMagazine"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
<properties>
<clear />
<add name="FirstName" type="String" />
<add name="LastName" type="String" />
<add name="Gender" type="String" />
<add name="BirthDate" type="DateTime" />
<group name="Address">
<add name="Street1" type="String" />
<add name="Street2" type="String" />
<add name="City" type="String" />
<add name="State" type="String" />
<add name="PostalCode" type="String" />
<add name="Country" type="String" />
</group>
<group name="Contacts">
<add name="Phone" type="String" />
<add name="Fax" type="String" />
</group>
<add name="ShoppingCart" type="EP.BumplesMagazine.BusinessLogicLayer.Store.ShoppingCart" serializeAs="Binary" allowAnonymous="true" />
<group name="ChildInfo">
<add name="ChildName" type="String" />
<add name="Gender" type="Char" />
<add name="BirthDate" type="DateTime" />
</group>
<group name="Forum">
<add name="Posts" type="Int32" />
<add name="AvatarUrl" type="String" />
<add name="Signature" type="String" />
</group>
<group name="Preferences">
<add name="Theme" type="String" allowAnonymous="true" />
<add name="Culture" type="String" defaultValue="en-US" />
<add name="NewsletterType" type="EP.BumplesMagazine.BusinessLogicLayer.Newsletters.NewsletterType" />
</group>
<add name="AnonymousEmail" type="String" serializeAs="String" allowAnonymous="true" />
<add name="EmailStatus" type="EP.BumplesMagazine.BusinessLogicLayer.MembershipEx.EmailStatus" />
</properties>
</profile>
<membership defaultProvider="BM_MembershipProvider" >
<providers>
<clear />
<add name="BM_MembershipProvider"
connectionStringName="BumplesConnectionString"
applicationName="BumplesMagazine"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
passwordFormat="Encrypted"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="5"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="true" cookieName="BMROLES" defaultProvider="BM_RoleProvider">
<providers >
<clear />
<add name="BM_RoleProvider"
connectionStringName="BumplesConnectionString"
applicationName="BumplesMagazine"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<anonymousIdentification cookieless="AutoDetect" enabled="true"/>
<machineKey validationKey="287C5D125D6B7E7223E1F719E3D58D17BB967703017E1BBE28618FAC6C4501E910C7E59800B5D4C2EDD5B0ED98874A3E952D60BAF260D9D374A74C76CB741803"
decryptionKey="5C1D8BD9DF3E1B4E1D01132F234266616E0D5EF772FE80AB"
validation="SHA1"/>
<!-- Handlers
<httpHandlers>
<remove verb="POST,GET" path="FileUploader.axd"/>
<add verb="POST,GET" path="FileUploader.axd" type="FileUploader"/>
</httpHandlers>
-->
<!-- Runtime -->
<httpRuntime maxRequestLength="1234567" executionTimeout="3600"/>
<!-- Session Timeout / timeout in minutes -->
<sessionState timeout="60"/>
<healthMonitoring heartbeatInterval="10800" >
<providers>
<remove name="SqlWebEventProvider" />
<add name="SqlWebEventProvider" connectionStringName="BumplesConnectionString"
buffer="false" bufferMode="Notification" maxEventDetailsLength="1073741823"
type="System.Web.Management.SqlWebEventProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
<eventMappings>
<add name="Bumples Magazine Events" type="EP.BumplesMagazine.WebCustomEvent, EP.BumplesMagazine.CustomEvents" />
</eventMappings>
<rules>
<clear />
<add name="Bumples Magazine Events" eventName="Bumples Magazine Events" provider="SqlWebEventProvider" profile="Critical" />
<add name="All Errors" eventName="All Errors" provider="SqlWebEventProvider" profile="Critical" />
<add name="Failure Audits" eventName="Failure Audits" provider="SqlWebEventProvider" profile="Critical" />
<add name="Heartbeats" eventName="Heartbeats" provider="SqlWebEventProvider" profile="Critical" />
</rules>
</healthMonitoring>
</system.web>
</configuration>
Thank you Jen
Update Asp.NET Core configuration file
Hi
There is any solution in Asp.NET Core to have a configuration file like there are Settings is in .NET winforms: adding a new value will update the client file too.
In deploy how to avoid overwrite configuration file?
thanks
IIS 8.5 on Win Server 2012 R2 trouble
Hi,
I'm trying to debug a web app (let's say named, "webapp1") on our production server (not yet live). I'm getting an error, "Unable to launch the IIS Express Web server". However, I have another web app (say, "webapp2") installed on the same server and it runs fine when I'm debugging it.
I noticed that the Logs folder inside my Documents/IISExpress folder does not create the "ex..." text file that's usually created for the other web app ("webapp2"). I don't know why it's not being created. My IIS version for the Windows Server 2012 R2 Standard is 8.5.9600.16384. The Visual Studio I'm using is VS 2015 Update 3.
I have not yet published both web applications on the server since I'm still in debugging phase. They both work okay on my dev machine but some errors are popping up on the production server so I'm trying to get rid of the bugs.
Can anyone help me resolve why the IIS Server is not launching one app but launches the other? Appreciate any help.
Visual Studio 2017 project deployed to IIS ...configuration data for the page is invalid.
I've just downloaded Visual Studio 2017 and created a project using the Angular template. Everything works perfectly from VS17 and from the command line dotnet with IIExpress.
When I publish it without any apparent issues to c:/sites/vs17angular it works from command line
dotnet vs17Angular.dll
I can't get passed a web.config issue when I add this as a website in IIS version 7.5 running on Windows 7
--
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
This error occurs when there is a problem reading the configuration file for the Web server or Web application.
--
My current web.config is (I've tried a few from different web pages I've visited):
<?xml version="1.0" encoding="utf-8"?><configuration><system.webServer><handlers><remove name="aspNetCore"/></handlers><aspNetCore processPath="dotnet" arguments=".\vs17Angular.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" /></system.webServer></configuration>
I've followed many links and tried the following:
- set local folder and file permissions for IIS_IUSRS
- installed dotnetcore 2.0
- installed URL Rewrite
I still get the error. I am new to IIS and have spent many hours researching this. I've tried building the web.config file line by line. If just have the first line in the file
<?xml version="1.0" encoding="utf-8"?>
and open in the IIS Configuration editor I get this error:
Filename: \\?\C:\sites\vs17Angular\web.config
Line number: 1
Error: Configuration file is not well-formed XML
With the completed config I get this
The data is invalid. (Exception from HRESULT:0x007000D)
So, what am I missing? Any help will get greatly appreciated
Richard
ERR_TOO_MANY_REDIRECTS
Hi all,
I have the following situation: I have a website with asp.net 2.0 no MVC in Visual Studio 2010. When I run the website in the debugger the asp.net development server is started and the website is running properly.
When I configure in IIS8.5 a website with an apppool on .net 2.0. I get all the time Error_Too_Many_Redirects. I tried the folder where the code is in to convert to application. Doesn't matter.
I hope somebody can help me out.
Thanks in advanced all for your help, time and effort.
It is really appreciated.
Regards,
Stefan Verheggen
MVC save date to format MM/dd/yyyy in entity framework
hi. i cant seem to understand why my data saves in a yyyy/MM/dd h:m:s format in database but i declared in my class [DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}", ApplyFormatInEditMode = true)] this. what am i doing wrong? thanks.
MVC Populate input text with ViewBag
Hi. I have another problem wherein I have a method in controller that gets a certain data and place it to the view.
Controller
public ActionResult Index() { var data = (from p in db.eTransactions orderby p.id descending select p.id).Take(1); ViewBag.id = data; return View(); }
View
<input type="text" value="@(ViewBag.id)"/>
instead of the data(which is a certain value) I want to get, the data thrown is like a command in an sql server
SELECT TOP (1) [Extent1].[id] AS [id] FROM [dbo].[eTransaction] AS [Extent1] ORDER BY [Extent1].[id] DESC
What is needed to do to fix this?
Installing and Configuring Web Deploy on IIS 8.0 or Later
Hello everyone,
Towards the end, it reads : The non-administrator Windows user (NonAdminUser) may now publish to the site.
Can anyone know precisely what this means? A non admin can publish what and how, with this?
The thing is that, unless I miss something, until configuring the web deployment handler, following its doc like https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/configure-the-web-deployment-handler, we are not able to publish a web application to from Visual Studio, aren't we?
I do not think it changes anything, but here is our environment for your info: Server: W2012 R2, Web Deploy: 3.5, and Visual Studio 2015.
In addition, with the web deployment handler configured, I can now publish my app with no problem. However, there is no log appearing in the Event Viewer, in the usual branch for web deploy.
I configured web deploy in the same way on several W2008 servers in the past, and the activities are logged there by default, with no addition configuration required.
Has anybody here had the same issue and resolved?
Thanks in advance for your kind help.
Kazutsugu
Data Center cannot provide application anymore
Hello,
my application is running in a data center (IT service provider) for years now.
Since yesterday there are problems. And because I never knew exactly what's going on in the data center, I cannot tell what's the problem now.
The application is a web application running on IIS on a server provided by the data center. It uses the authentication mechanism for existing Windows users, i. e. they don't have to enter username and passwords. Instead of this, my application "knows" the current user (accout name), so he is authenticated automatically.
Yesterday, the first problem was seen with this error message:
Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed
I opened a ticket at the data center. They told me about an error log entry in IIS, which looks like this:
Note that I did not change anything on the file permissions of the web.config file. I also don't know of any changes to the web.config file contents.
Here is the web.config:
<?xml version="1.0" encoding="utf-8"?><!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --><configuration><system.web><compilation debug="true" targetFramework="4.5.2" /><httpRuntime targetFramework="4.5.2" /><authentication mode="Windows" /><authorization><deny users="?" /></authorization><pages><namespaces><add namespace="System.Web.Optimization" /></namespaces><controls><add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /></controls></pages><!-- mws --><!-- remote error messages: mode="Off": normal. detailed error messages, RemoteOnly = special error pages --><customErrors mode="Off" defaultRedirect="~/sys/Error/Default.aspx"><error statusCode="404" redirect="~/sys/Error/UnavailabilityError.aspx" /><error statusCode="500" redirect="~/sys/Error/InternalError.aspx" /></customErrors><!-- avoid view state error, generate key here: http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx --><machineKey validationKey="675D9B1CBC79827EB53BAA01E759E8C60551AD318339E61384037736B9BB481B878B405C82CF07E977B4272772E5CF330A2CADBFD57DA5E22896D9B8FDA60CAA" decryptionKey="B5DC06C4C1C272A657A74DF2018BB808F419382EC690AF75" validation="SHA1" /><!-- /mws --></system.web><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /></dependentAssembly></assemblyBinding></runtime><system.codedom><compilers><compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" /><compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" /></compilers></system.codedom><!-- mws --><connectionStrings><add name="StMGP" connectionString="Server=RZS-SQL-B1D2008.rz-sued.bayern.de;Database=stmgp_home;User ID=stmgp;Password=#!AuTrqxYv%9z4!;Trusted_Connection=False;MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" /></connectionStrings><!-- turn off buggy browser link feature --><appSettings><add key="vs:EnableBrowserLink" value="false"></add></appSettings><!-- /mws --></configuration>
However, today the data center came with a "change", which should make the application run again.
The change resulted in a situation, where the user is asked for username and password when accessing the application. This is contradictory to the auto login functionality mentioned above. In addition, when I enter my domain/name and password, I still cannot login. The password box opens again.
Since I don't know how the IIS must be configured for my app: What could be wrong on the server side here?
Thanks
Magnus
simple question...
Ok, so I have a simple .NET Core 2.0 application, that requires a login to view the page(s). I have tried to set it up so that the login page is the first page you see when you go to the site. This is working locally, but when I deploy it to our testing environment, it doesn't seem to resolve to the login page. I'm sure this is something simple I'm missing, as I'm pretty new to .net core architecture.
I'm actually not entirely sure which of these settings is working and which isn't :
In startup.cs, I have
app.UseMvc(routes => { routes.MapRoute( name: "home", template: "{controller=Account}/{action=Login}/{id?}"); });
and in launchsettings.json, I have
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50472",
"sslPort": 44319
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "https://localhost:44319/Account/Login",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
If I remove the "Account/Login" from the launchsettings file, it doesn't resolve to anything in the testing environment.
What am I missing ?
Thanks In Advance