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

Added Office Workload - Solution no longer works

$
0
0

I have an existing solution with two projects..
I noticed I didn't have the Office/SharePoint workload installed so I launched the installer while thecurrent project was open.

The installer went through its thing installing the Office workload and then prompted me to restore files from the current project I had open.
I found this odd and selected to restore the files.

Visual Studio then rebooted to the start page.
I opened my original solution, and only one of the projects, the data layer, was visible. I right clicked on the solution and added 'existing' project to get the other project back.

I attempted to run Index.cshtml in debug mode and was greeted with:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

The original solution ran IIS Express on this port http://localhost:51306/Home/Index
The new solution now runs it on this http://localhost:51375/
i.e. there is a change of port number from 51306 to 51375, which I think is the cause of the problem.

I can right click on the file in solution explorer and elect it to run in the browser, and it works on the old port 51306.
But I can't run it at all in debug mode from the debug menu.

Thanks for considering 


Deploy 3-Tier ASP.Net Application to 3-Tier Server Architecture

$
0
0

Hi. Can someone help me on how will I deploy my 3-tier ASP.Net application in different servers. I have 3 different servers: Web, Application, and Database Server. I want to deploy the Presentation Layer in Web Server while the Business Logic and Data Access Layer in Application Server. Database Server is where my Test Database residing.

I just need it badly. Please.

Thanks a lot.

Web Configuration Error

$
0
0

I need help with the following error. Trying to get new app up and running. Markus

Server Error in '/' Application.


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

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.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error: 

Line 19:             AreaRegistration.RegisterAllAreas();
Line 20: Line 21:             WebApiConfig.Register(GlobalConfiguration.Configuration);Line 22:             FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
Line 23:             RouteConfig.RegisterRoutes(RouteTable.Routes);


Source File: C:\Users\Andrew\Documents\Visual Studio 2017\Projects\SinglePageAngularJS\SinglePageAngularJS\SinglePageAngularJS\Global.asax.cs    Line: 21 

Stack Trace: 

[FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +0
   System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +41
   System.Web.Http.HttpConfiguration.DefaultFormatters() +23
   System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +44
   System.Web.Http.GlobalConfiguration.<.cctor>b__0() +69
   System.Lazy`1.CreateValue() +411
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   System.Web.Http.GlobalConfiguration.get_Configuration() +22
   SinglePageAngularJS.MvcApplication.Application_Start() in C:\Users\Andrew\Documents\Visual Studio 2017\Projects\SinglePageAngularJS\SinglePageAngularJS\SinglePageAngularJS\Global.asax.cs:21

[HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +219
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

[HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188

 


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

How to get Visual Studio 2017 - Community Edition to use IIS Manager installed on Windows 10 instead of IIS express during debugging

$
0
0

Hi,

How do I configure VS to start any web forms using IIS manager installed on Windows 10 instead of opening the IIS Express every time I tried to use the start with or without debugging option?

Web App 3.5 and 4.5

$
0
0
Hello, We have an internal server for Intranet, it host all framework 4.5 web apps, some partner has a framework 3.5 application, I woul like to know if this app can be publish on this server with superior framework.

Stop publishing the graphics EVERY TIME

$
0
0

When I publish my website using VS2015, I have a mass of icons in a series of folders.

I am publishing using "File System" over the VPN.

Even though I have it set not to delete existing files,  it seems to take forever publishing these thousands of little .png's  

They are already there.  They have not changed.  I want it to stop.

This costs me about a half hour every time I publish.  It's insane.

Also, though there are a lot of them (like 260), the individual files are very small (like 500 bytes).  This might be the VPN but it's taking 5 minutes to copy these files!

(Oh and that's just one folder, there are many other folders all with non-changing graphics I don't want published).

So you see why it's imperative that we stop re-publishing these fixed files for every push.

1>Publishing folder /...
1>Publishing folder bin...
1>Publishing folder bin/roslyn...
1>Publishing folder Content...
1>Publishing folder Content/Images...
1>Publishing folder Content/Images/flags...
1>Publishing folder Content/Images/flags/flags...
1>Publishing folder Content/Images/flags/flags/shiny...
1>Publishing folder Content/Images/flags/flags/shiny/16...
1>Publishing folder Content/Images/flags/flags/shiny/24...



301 redirect of a site homepage only, without affecting other services on the same server

$
0
0

We need to be able to redirect all the pages on a 1-2-1 mapping for 301, the bulk of these being ok to do in web.config, but the site sits on a server with a range of other services that can't move and must remain visible to the original domain (.co.uk)

The current site home page reached by going to www.oursitename.co.uk must now redirect to www.oursitename.com which will be hosted on AWS away from our own servers, the model used to date. We have managed to get rewrite to work but this still shows the old site name in the browser, we want to achieve the full 301 and the correct new site name in the browser. Struggling to make this work in web.config / redirect module. Any simple guidance please?

Unable to connect my asp.net mvc web application to the sql server after deploying it to IIS7

$
0
0

Hi,

I am trying to deploy an application on IIS. I am using .Net MVC 4. 
In debug mode its working, post I deploy on the IIS its giving following error 

"The ASP.Net simple membership database could not be initialized"

Can anyone pls suggest what should I check?

Thanks.


.bat file not running in IIS 8.5 - Windows Server 2012 R2

$
0
0
<div>Hi,</div> <div> </div> <div>We are migrating the server from Windows Server 2008 R2 to Windows Server 2012 R2. We have configured the application in IIS8.5 and provided required permissions. But the batch files (.bat) are not running in the application. We able to run the batch file manually from command prompt and it is executed.</div> <div> </div> <div>We configured the application in Network Service identity and given permissions for the application. </div> <div> </div> <div>We use the below Code for running the batch file.</div> <div> </div> <div> <div id="pastingspan1">Dim targetDir = "C:\inetpub\wwwroot\TestApp\Batch Files"</div> <div id="pastingspan1">p = New Process()</div> <div id="pastingspan1">p.StartInfo.WorkingDirectory = targetDir</div> <div id="pastingspan1">p.StartInfo.FileName = "runme.bat"</div> <div id="pastingspan1">p.StartInfo.Arguments = String.Format("AAC-Sharp Console application")</div> <div id="pastingspan1">p.StartInfo.CreateNoWindow = False</div> <div id="pastingspan1">p.Start()</div> <div id="pastingspan1">p.WaitForExit()</div> </div> <div>It is working fine in Windows Server 2008 R2. But not in Windows Server 2012 R2.</div> <div> </div> <div>Could anybody suggest what needs to be done if any specific. We need to complete this as soon as possible. Waiting for response. Thanks again.</div>

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

IIS 10 - Enable GZIP compression

$
0
0

Hello, I've trying to enable gzip compression feature in my IIS but I'm still encountering a problems.

In my environment I have: Visual Studio 2015, IIS 10, MVC 5, Webpack 4.

All scripts are successfully compressed to *.gz files by Webpack with compression-webpack-plugin.

In according to another posts in this forums I've enabled "Dynamic Content Compression" and "Static Content Compression" in Windows Features:

In the next step I make sure that my project have enabled require options directly in IIS:

Additionaly I've inserted below line to my Web.config:

<system.webServer><urlCompression doStaticCompression="true" doDynamicCompression="true" /></system.webServer>

Javascript files are included in my projects with <script> tags:

<script src="my.script.js"></script>

(Please notice, that I include file with .js extension, not .gz despite I have only gz files, but as far I know web browser will obtain js files from server).

After building and runing project I got warning in browser console:

Loading failed for the "script" with source „http://192.168.10.10:8099/Scripts/dist/my.script.js”.

Can anyone help me to make this working? What should I enable (and where?) to allow read and uncompress gz files by IIS?

How to develop Multi-lingual website for all data stored in database

$
0
0

Hi All,

I need to develop a web application as multi-lingual.

I can do it for some static content by using Resource (.resx) files or using google api and it works fine for that content/text.

Now the issue is that for example I am binding a dropdownlist/gridview or any other control which is showing the data fetched from database, it doesn't show in different language. It will remain same as it is stored in database.

Is there any other way to do that so that you can get stored data in your selected language.

Please share any information. 

new and existing projects with NugetPackages and packagereference format in "isolated" build server

$
0
0

hi there,

We have a build server that cannot reach the internet, and therefore cannot "restore" nugget packages.

There are NUMEROUS resources on ABANDONING package references from TFS, however we appear to need the exact opposite of what is suggested here and too many other places.https://docs.microsoft.com/en-us/nuget/consume-packages/packages-and-source-control

Is there some workflow for including packages in source control (so that the dev machines are responsible for downloading the package and getting it to the build server, somehow...

I feel that its POSSIBLY as simple as manually adding all the references into TFS, but we need a process that is reliable and not obscure...

Different IIS Settings per Teammember, move to Suo, is it possible?

$
0
0

Hi.

We have a team with different preferences.

Some like to start classic IIS, some IISExpress.
Now currently this information is stored in the .vbproj / .csproj which is source controlled.
So we change this back and forth.

I tried moving those settings to the .suo without luck (still the ones from vbproj get applied).
Is it even possible?

Settings (hierarchy omited for brevity):
<UseIISExpress>false</UseIISExpress>
<IISUrl>http://localhost/somesite</IISUrl>

Thanks 
Best regards

SkyHopper

Can't get server to display errors to browser

$
0
0

I'm very new to ASP.Net (but not to .asp or IIS) and just created a little test page that sends an email. During the process, I ran into a couple problems. Instead of displaying the actual error to me, I kept getting a page that said:

Server Error in '/aspnettests/EmailStuff' Application

Configuration error

blah blah blah

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.

blah blah blah

So to see the error, I did what it said - ran the page from our actual server (Windows Server 2012 R2 Standard w/IIS 8.5), and I was able to see the actual error. This is less than ideal though so was trying to figure out how to have IIS display the error to my browser on my workstation where I'm writing/testing from. I searched around and it seems like adding the line,

<customErrors mode="Off"/>

in the web.config file for this application should have taken care of this but it doesn't. I've tried changing it from 'Off' to 'On' and also tried 'RemoteOnly' and it does have an effect on the error, but still doesn't show me the 'real' error message. So it's not like the web.config isn't being ignored or something.

Is there something else I'm missing? I have full control of the server so I can make any changes in IIS itself if need be...maybe it's something in there?


deploy web application vs web site

$
0
0

Hi,

as I never deployed a web application before but only web site solutions: do I need a different setting on my server (e.g. under IIS) or can I just do a remote deploy and the server will recognize everything when it sees the dll?

regards,

Pascal

Modify custom configuration at runtime without restart app

$
0
0

I want to create custom configuration and modify it when application is running. But I got a problem when I modify: the application was restarted. What shoud I do?

ASP.NET 2.0 Webform compilation error

$
0
0

I have a ASP.NET application developed primarily using DOTNET 2.0 framework. For myriad reasons too detailed to discuss here the application was developed without using Visual Studio. Further, all of the forms and code are contained in .ASPX file (I.e no code behind files).

When application changes are made the .aspx files are copied to the inetpub\wwwroot\myapp directory. When the .ASPX file is referenced via web browser, the dotnet environment recompiles the aspx file. This process has worked well for years.

We are now moving the application to a new virtual server, when I attempt to run the application on the new server (www.myapp.com\login.aspx).

Something on the new server configuration is not recognizing my MyComponents Namespace stored in :

c:\inetpub\wwwroot\myapp\bin.

Compilation Error

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

Compiler Error Message: BC30002: Type 'MyComponents.DataObject' is not defined.

Source Error:

Line 34:     PUBLIC cmdUpdate    AS OleDbCommandLine 35: Line 36:     PUBLIC oData         AS New MyComponents.DataObject


Source File: C:\inetpub\wwwroot\myapp\GenericPage.vb   Line: 36


Compiler Warning Messages:

<div id="warningDiv" dir="LTR">

Warning: BC40056: Namespace or type specified in the Imports 'MyComponents' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Source Error:

C:\inetpub\wwwroot\myapp\GenericPage.vb

Line 11: Imports System.Data.OleDbLine 12: Imports System.Data.SqlClientLine 13: Imports MyComponents
</div>

how to make asp.net accessible throughout the company's LAN and WAN

$
0
0

hello

can you oriente me how to make an asp.net application accessible throughout the company that has geographically dispersed seats that are linked by LAN (in same seats) and WAN (between seats)

How to load files from a local path into a project?

$
0
0

Using c# asp.net Webforms project, am compiling the files like IdentityManager  https://www.scottbrady91.com/ASPNET-Identity/Identity-Manager-using-ASPNET-Identity  

things like System.Owin, System.Autofac and the others that end up in the References, how to load these directly instead of in the cloud from Nuget?

You can download the files or get them from Nuget, if downloading from Github how do they become part of the project?  thought I was doing it right until finding errors in the Version and GUID; 

thanks

Viewing all 3561 articles
Browse latest View live


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