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

MVC website deploying as folders and "Index of /"

$
0
0

I am deploying my website using Visual Studio FTP (as well as manually doing the upload with FileZilla) and my website is showing up as Index of / with all the folders there. I cannot for the life of me figure out how to get this to deploy. I read it could be because I have no default.aspx file anywhere? Any insight is greatly appreciated! Using Visual Studio 2013, and/or FileZilla.


Encrypting Connection Strings in .config files

$
0
0

For a deployment on a customer site, we are looking into encrypting connection strings in the applications .config file. Reading the following article: https://msdn.microsoft.com/en-us/library/ms998283.aspx#paght000006_webfarmscenarios using aspnet_regiis.exe looks like its probably the way to achieve this.

Concerns have been raised that this is for ASP.NET 2.0.  Can you confirm that this is still the current way to encrypt connection strings in the latest version (4.6) of .NET.

If it is still the best way to encrypt the connection strings, are there any changes that we should be aware of between version 2.0 and 4.6.

Thanks

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

$
0
0

Hi,

I was trying to launch my web application to server, but the following error appears:

Server Error in '/salavirtual' Application.

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

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.IO.FileNotFoundException: Could not load file or assembly 'ServiceStack' or one of its dependencies. The system cannot find the file specified.

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'ServiceStack' could not be loaded.


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].

Stack Trace:


[FileNotFoundException: Could not load file or assembly 'ServiceStack' or one of its dependencies. The system cannot find the file specified.]
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
   System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +39
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +62
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Handlers.AssemblyResourceLoader.EnsureHandlerExistenceChecked() +397
   System.Web.Handlers.AssemblyResourceLoader.IsValidWebResourceRequest(HttpContext context) +12
   System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +158
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

Thanks for your help

Don Pablone

Deploying MVC 5 Database on IIS Manager in Windows 7

$
0
0

Hi, I am a developer of Asp.Net MVC 5 but I am in surprised how hard it is to deploy my site in local network and not in azure.

Anyways this is about my database, I have a hard time on knowing how should I go with the database because I use Entity Framework and LocalDb
but
I read somewhere that it is not advisable to use LocalDb, so if not LocalDb what should I use that my application will still work?

And what applications do I need to install? Should I install MS Express or something?

Please help I am stuck for a day or two in this step

Current custom error settings for this application prevent the details of the application error from being viewed remotely...

$
0
0

 

Hi everyone, 

I've just uploaded my ASP.NET application on a new web host. But now whenever I load any .aspx page, I get this 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>

 

It was running perfectly on the previous web host as well as my localhost.My web.config includes:

<configuration>
<system.web>
...
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx" />
<compilation debug="true" defaultLanguage="c#">
...
</compilation>
...
</system.web>
</configuration>

I have read this post already. I have already tried:

  1. Changing customErrors tag to: <customErrors mode="On" />
  2. Changing customErrors tag to: <customErrors mode="Off" />
  3. Changing compilation tag to: <compilation debug="false" defaultLanguage="c#">
  4. Asking my web hosting company to ensure that my ASP.NET version is 2.0.xxx.
  5. Asking my web host to ensure that the folder containing my .aspx files is a separate Virtual
    Directory under IIS.
All of them do not solve the problem. I don't have any access to the web server's admin settings (not even a Plesk panel). I have to email the web hosting company for every change I want to make.

WHat else can I do? Thanks for the help.

 

IIS rewrites my location header :-(

$
0
0

I have the following setup.

SharePoint site running in port 80  (localsite.com:80)

MVC Application running on port 81

In IIS I have set up a URL Rewrite so all urls  that start with /MVC goes to port 81

This works fine.

The problem is when the MVC application does a simple redirect to any external URL  (Return Redirect("http://www.asp.net")) it then rewrites the location header to be localsite.com:80/.  I assume it is IIS that does this. I dont have any outbound rules. Relative redirects inside application works fine.

Any ideas how to solve this. Accessing directly to port 81 causes redirect to works fine.

Can i host my asp.net mvc web application with Godaddy while keep my email accessed from gmail

$
0
0

I finished working on an asp.net mvc web application which represents a public web site , and i want to host this application on their domain name suhc aswww.ABCdomain.com .now I do not have much knowledge about web hosting, and  I am a bit confused on how I can manage my customer's emails and domain name.. currently we got the following :-

  • Our customer purchased a domain name from Godaddy such as www.ABCdomain.com. 2 years ago.
  • Then they configure to access their emails from Gmail.
  • so now they purchase their domain name from Godaddy , but they set to access their domain emails from gmail interface.
  • now as I mentioned they do not have a website, and if I try to access this their domain url such as www.ABCdomain.comI will get this page :- 
  • enter image description here

so now I am totally confused on where I need to deploy my web application inside godaddy where they purchased the domain name ? or inside Google where they are accessing their emails ? now is this scenario valid:-

Can I login to their godaddy account, then chose a plan to deploy my asp.net mvc web application under sql server 2012, while keep the email setting as is. so in this case the emails will stay as is inside gmail (inside Google) while the web site will be hosted inside godaddy where the domain name where purchased ?? is this possible as in this case users will not lose any emails and the web site will be hosted inside godaddy where the domain name where purchased ..

can anyone advice on this please?

will i get an account with godaddy if i bought a godaddy domain from google app

$
0
0

I have the following :-

  • One of our clients has already register a domain name from godaddy using google app 2 years ago.

  • so in this case he have a domain name from godaddy but he get it through google APP (he did not login to godaddy to do so..).

  • and he is redirecting their domain emails to gmail.

currently i have finished developing a web site for this customer using asp.net mvc-5, and i want to deploy the asp.net mvc on the domain name. As i mentioned the domain name is register with godaddy , but they bought it from google app. so they did not login to godaddy before.

so now i want to deploy the asp.net mvc-5 web application to godaddy under the Plesk plan,, but not sure if they should already have an account with godaddy which where created when they bought the domain from google app ? where i can login to it and chose the Plesk plan then deploy my asp.net mvc-5 ? or this should be done through google APP? can anyone adivce ?


How to release web application project?

$
0
0

I've no idea how to release or deploy the web application with database on the live server. Can anyone help me please to study on deployment or release planning.

Thanks in advance.

My mp4 video upload page is uploading video into video folder, but am still getting error message "Maximum request length exceeded."

$
0
0


Error message "

Maximum request length exceeded.

"

Meanwhile the video has uploaded into the folder but still getting the error and also am not seeing the data in the table after uploading.

Code:

  protected void btnUpload_Click(object sender, EventArgs e)
        {
            using (BinaryReader br = new BinaryReader(FileUpload1.PostedFile.InputStream))

    {

        byte[] bytes = br.ReadBytes((int)FileUpload1.PostedFile.InputStream.Length);

        string strConnString = ConfigurationManager.ConnectionStrings["con"].ConnectionString;

        using (SqlConnection con = new SqlConnection(strConnString))

        {

            using (SqlCommand cmd = new SqlCommand())

            {

                cmd.CommandText = "insert into VideoUpload( ContentType, Data) values (@Name, @ContentType, @Data)";
                string filename1 = Path.GetFileName(FileUpload1.PostedFile.FileName);

                FileUpload1.SaveAs(Server.MapPath("~/VideoUpload/" + filename1));


               // cmd1.Parameters.AddWithValue("@AD_ImageName1", filename1);
              //  cmd.Parameters.AddWithValue("@AD_ImagePath1", "~/Images/ADImages/" + filename1);




              //  cmd.Parameters.AddWithValue("@Name", Path.GetFileName(FileUpload1.PostedFile.FileName));

                cmd.Parameters.AddWithValue("@ContentType", "video/mp4");
                cmd.Parameters.AddWithValue("@Name", txtName.Text.Trim());
                cmd.Parameters.AddWithValue("@Data", bytes);
                cmd.Parameters.AddWithValue("@Discription", txtDiscription.Text.Trim());
                cmd.Parameters.AddWithValue("@Country", ddlCountry.Text.Trim());
                cmd.Parameters.AddWithValue("@UserName", this.Page.User.Identity.Name);

                cmd.Connection = con;

                con.Open();

                cmd.ExecuteNonQuery();

                con.Close();

            }

        }

    }

    Response.Redirect("Request.Url.AbsoluteUri");

}
        }
    }


</appSettings><location path="VideoUpload"><system.web><httpRuntime executionTimeout="9600" maxRequestLength="94000000"/></system.web></location><system.web><system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="1024000000"/></requestFiltering></security>


Deploying ASP.Net Web App

$
0
0

Hi all, My web app which has a web service, was published to a folder on my local machine using the File System option in Visual studio. Then I copied the contents of the folder to the root folder of the hosting server. When I test out my web service in the browser it does not work.

I've read on MSDN that I must place my web service in a virtual directory on the hosting server for it to work. Can someone please confirm if this is necessary and if it is what goes into this virtual directory aside from the .asmx file? Thanks in advance for your help.

Decompiler DLL Project and The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

$
0
0

Not sure if this is the right forum for this problem, but here it it...

I have a problem in a DLL file that I need to debug. I do not have the original source code for the DLL file. I used reflector to decompile the DLL and create it as a project. I added it to my solution and then removed the original DLL reference in my main project and replaced it with a reference to the DLL project. My hope was that I could run it locally on Visual Studio's and set break points in the decompiled DLL project. However, I get the error:

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

I have seen other posts on how to handle this with a DLL file, but I am dealing with the DLL as a separate solution in my project and am not sure what to do. Not sure it matters, but this is running on my local IIS server via Visual Studio's and is on .NET 2.0. Here is the Load Trace:

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AlphaSubRoutines, Version=1.0.0.10, Culture=neutral, PublicKeyToken=f9f2cc99cd30dc52' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 128:              this._MenuItems.Clear();
Line 129:            else
Line 130:              this._MenuItems.Add((object) menuItem);
Line 131:          }
Line 132:        }

Source File: C:\Users\eric.Last_Name\Desktop\ZuluControls\Menus\LeftMenuControl\LeftMenuControl.cs Line: 130

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AlphaSubRoutines, Version=1.0.0.10, Culture=neutral, PublicKeyToken=f9f2cc99cd30dc52' could not be loaded.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Program Files (x86)\IIS Express\iisexpress.exe --- A detailed error log follows.

=== Pre-bind state information === LOG: User = LISC-IT\Eric.Last_Name LOG: DisplayName = AlphaSubRoutines, Version=1.0.0.10, Culture=neutral, PublicKeyToken=f9f2cc99cd30dc52 (Fully-specified) LOG: Appbase = file:///C:/Users/eric.Last_Name/Desktop/IISSERVER/ LOG: Initial PrivatePath = C:\Users\eric.Last_Name\Desktop\IISSERVER\bin

Calling assembly : ZuluControls, Version=1.0.0.2, Culture=neutral, PublicKeyToken=734e8cdd39728b61.

LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\Users\eric.Last_Name\Desktop\IISSERVER\web.config

LOG: Using host configuration file: C:\Users\eric.Last_Name\Documents\IISExpress\config\aspnet.config

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: Post-policy reference: AlphaSubRoutines, Version=1.0.0.10, Culture=neutral, PublicKeyToken=f9f2cc99cd30dc52

LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/2bb6b3ce/3abdb25d/AlphaSubRoutines.DLL.

LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/2bb6b3ce/3abdb25d/AlphaSubRoutines/AlphaSubRoutines.DLL.

LOG: Attempting download of new URL file:///C:/Users/eric.Last_Name/Desktop/IISSERVER/bin/AlphaSubRoutines.DLL.

WRN: Comparing the assembly name resulted in the mismatch: Major Version

ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

The Decompiled DLL AlphaSubRoutines, is being called from within another DLL called ZuluControls. I do not have the source code for the ZuluControls DLL either. I am not very knowledgeable about these things, but it looks like the ZuluControls DLL has a specific reference (version, Public Key, etc) to the AlphaSubRoutines DLL. Either the ZuluControls is referencing the wrong AlphaSubRoutines DLL or the AlphaSubRoutine DLL Project has the wrong identifying information.

Here is the AssemblyInfo.cs from the decompiled DLL Project:

// Assembly AlphaSubRoutines, Version 1.0.0.10

[assembly: System.Reflection.AssemblyCopyright("")] [assembly: System.Reflection.AssemblyTitle("Alpha Subroutines")] [assembly: System.Reflection.AssemblyDescription("Subroutines Created for Alpha Applications")]

[assembly: System.Reflection.AssemblyConfiguration("")]

[assembly: System.Reflection.AssemblyCompany("Alpha Industries, Inc.")]

[assembly: System.Reflection.AssemblyProduct("")]

//[assembly: System.Reflection.AssemblyKeyFile(@"....\AlphaSubRoutines.snk")]

[assembly: System.Reflection.AssemblyTrademark("")]

//[assembly: System.Reflection.AssemblyDelaySign(false)]

[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.DisableOptimizations | System.Diagnostics.DebuggableAttribute.DebuggingModes.EnableEditAndContinue | System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | System.Diagnostics.DebuggableAttribute.DebuggingModes.Default)]

[assembly:System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)]

//[assembly: System.Reflection.AssemblyKeyName("AlphaSubRoutines")]

[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]

I had to comment out three lines to get it to build without error, could that be part of the problem ? Any help would be appreciated !!

Step by Step Please

$
0
0

I have been told to create a web app for work which does a few basic things. For this I have gone through a tutorial on ASP.Net 5 and have created a crappy, basic website which does nothing. I have 'published' this website as it says to do in the tutorial and I am trying to get it to run in IIS so that it can be accessed across my development network.

I am getting a fair few errors with this and I believe that it is because I am a rookie with IIS. I have been looking for a step by step guide on how to deploy the MVC site in IIS however there is not a lot out there.

If someone could point me in the right direction, that would be great.

Edit: I am attempting to get this working on windows 10 for the moment.

Cheers,

JohZant

Configuring Database after Web Deploy Package on Windows 7

$
0
0

Hi this is my first time deploying a MVC 5 on a Windows 7 for my local network access, I followed the instructions and successfully deployed it

but I realized my localdb is not included on the Web Deploy Package. I open the app_data and it is not there so I tried to copy paste the mdf file from my solution and it did not work, it is saying that the localdb is not found even though I did not change the connection string.

Please help, I am not sure what to do. For those who tried local deployment and are experts on this, what are my choices here? do i need to install sql server or something?

SSL certifcate used at our hosting company. But how can I disable this when i run from VS 2013?

$
0
0

We use a SSL certificate at our hosting company.  When i try to run my MVC 5 site from Visual Studio 2013 I get an error saying the SSL is missing.  I'm not real strong in this area.  So my question is, is there a way to disable the SSL when I run locally?


ascx works fine in development (MSVC) but not on server

$
0
0

I have created a web user control (.ascx) and put it on a page (.aspx)

Everything works fine on my development box.

When I copy the code up to the server the page fails to load, I don't get any error, I just get a network timeout.
If I remove the .ascx from my page and copy it back up to the server everything works fine.

Any ideas what could be going on here?

Thanks,

Scott

code changes dont apply until I publish web app to website

$
0
0

Please help....

I am running VS 2013 Pro. I have an ASP.NET web app written in VB.NET.

When I set a breakpoint in my code then the breakpoint does not get hit - code does not stop at breakpoint which is in a button's OnClick event handling code.

(For some reason a breakpoint in the Page Load event does get hit and program halts as required.)

When I make a code change and run the app under VS 2013 in debug then I don't see the code changes until I publish the web app to local host file system running the

web app from it's local wwwroot folder.

I have set all settings (I am aware of) to give DEBUG compilation. Do I have a corrupt image of something? I have created another web app project and can run code under debug and breakpoints all work as normal. Do I have a corrupted project files or something? I have tried rebuilding all project files and problem persists.

Any thoughts?

Scalability Planning using ASP.Net with SQL

$
0
0

What are the most crucial features to consider using scale-out architecture?

We have guys planning our newly reformed ad network system (publisher-advertiser). The system comprises of configuration db, end-user widgets, keeping metrics, and 2 level warehouse dbs (pre-caclculated user access and data mining management access).  I read about numerous technologies, mixing rdbms (sql) to configuration vs nosql access (mongo) to widgets vs column-based dbms to warehouse (azure stacks). We are not yet on azure but we are getting there.

We have read https://msdn.microsoft.com/en-us/library/hh534480.aspx and tested http://partitiondb.com/database-transformation/ on our on-premise db, and it looks promising if we want to go for the multi-tenant seperate dbs approach. Our system can be partitioned by publishers as we have small-medium-big customers coming in, in all traffic variations. Note we have regular program and db updates coming in every week or so.

So how do you plan on unexpected traffic? high concurrency, large volume. Is it wise to go for azure or we need more dedicated machines?

web.config: Could not load file or assembly OdbcProviders

$
0
0

Periodically our web.config file crashes. It may run for months or just days. 

I'm not very proficient with asp, C# and get lost very easily so be kind please.

The error: 

Parser Error Message: Could not load file or assembly 'OdbcProviders, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Source File: \\filer7\u75\vws30554\public_html\web.config    Line: 21 

Line 19: 			<providers>
Line 20: 				<clear/>
Line 21: 				<add name="OdbcRoleProvider" type="OdbcProviders.OdbcRoleProvider, OdbcProviders" connectionStringName="ConnString" applicationName="AAC" writeExceptionsToEventLog="false"/>
Line 22: 			</providers>
Line 23: 		</roleManager>

I don't know if this helps, here is more failure information:

<!--  start  -->

[COMException]: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) [FileLoadException]:

Could not load file or assembly 'OdbcProviders, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

[ConfigurationErrorsException]: Could not load file or assembly 'OdbcProviders, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) (\\filer7\u75\vws30554\public_html\web.config line 21) at System.Web.Security.Roles.Initialize() at System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->

<!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

<!--    end      -->

The person who created this web.config file indicates the problem is on the server. The server people say it is the file. So the problem remains.

Would appreciate any feedback.

 TNX

Robert

How to distinguish development and production system?

$
0
0

Hello,

is there a way to determine in code, if my app is running on my development machine or on the production machine?

I would like to do something like this:

if (inDevelopmentMode)
{
    // do things you would only do in development mode
}

I would be happy, if you could determine this automatically (e. g. by the hostname the app is running on), so that you don't have to make changes to the Web.config every time you deploy the app...

Thanks
Magnus

Viewing all 3561 articles
Browse latest View live


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