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

Parser error when publishing on GoDaddy

$
0
0

I have a simple site that works perfectly on my local machine, but when I upload to GoDaddy I get this parser error below. I also listed the content of my current web.config that I had to adjust based on a couple of other threads in this forum. The error is in line 1 and I only get this when I create a webform based on a Master file.

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: Cannot execute a program. The command being executed was "G:\PleskVhosts\website.com\website.com\bin\roslyn\vbc.exe" /shared /keepalive:"10" /noconfig @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f9edd03b\87e9a1c8\mfjk34af.cmdline".

Source Error:

Line 1: <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="MasterPage.Master" CodeBehind="index.aspx.vb" Inherits="COT3_Empty_Web.index" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
Line 3: </asp:Content>

Web.config file

<?xmlversion="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>

<customErrorsmode="Off"/>

<trustlevel="Full"/>

<authenticationmode="None"/>

<compilationdebug="true"strict="false"explicit="true"targetFramework="4.5.2"/>

<httpRuntimetargetFramework="4.5.2"/>

</system.web>

<system.codedom>

<compilers>

<compilerlanguage="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"/>

<compilerlanguage="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=\&quot;Web\&quot; /optionInfer+"/>

</compilers>

</system.codedom>

</configuration>


IIS hosting asp.net website. Config correct but still error.

$
0
0

Hello. I am using iis to host my website and i getting web.config wrong config but its correct i checked and did like it says in google.

<?xml version="1.0" encoding="UTF-8"?><configuration><connectionStrings><add name="RegistrationConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\CritSysInf.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /><add name="ConnectionStringChat" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\SysWebInf.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /></connectionStrings><system.webServer><defaultDocument enabled="true"><files><add value="ExistUser.html" /></files></defaultDocument></system.webServer></configuration>

What is wrong here? i got everything set but its still giving error. Website was made in visualstudio 2010 pro and compiled (BUILD). The error code is: http://www.mediafire.com/view/5bjyzfa87l647jm/configerror.png. I hope someone could check and see what is wrong here. By google everything is ok.

VS 2015 Web.Config AngularJS html5mode

$
0
0

This is driving me mad.
I created a new project using VS 2015 with the new .net framework. At first everything was easy to get going and using grunt was cool.

But I keep coming up with the same issues for each site I create and it is always to do with the web.config.

Everywhere I have scoured tells me that the web.config should still work.
I am trying to use it for html5mode to set up the rewrite rules that are required for html5mode to work, but it just doesn't work.

I have put my web.config both in the root of the application and in wwwroot and I still get the same results.

Can someone tell me how to get web.config to work using VS 2015?

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

$
0
0

Hi All,

I am developing an application. When I run this on visual studio, it works fine. But when I upload my application through ftp to the server, it shows error.

 Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

I tried to comment that section in my webconfig, but still gives a different error.

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

Below is my Webconfig

<?xml version="1.0"?><!--
  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="false" targetFramework="4.0"><assemblies><add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><httpRuntime/><pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web></configuration>

 

Developing a web service to fuction behind a firewall

$
0
0

Hi,

We have an MVC web application running behind a company firewall (ASP.NET with MS SQL).

I'd like to develop a web service which needs to be accessible on the internet. It will need to send data to the existing database, but also create an Excel file based on a local template, then store it with the web files (in a folder) with the existing web application behind the firewall.

How should I approach it?

Thanks as always

//deployment438.rssing.com/chan-5578279/article2486-live.html

$
0
0

If I configure Web.config as below :

 <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

Can I capture any server error to display on mycustompage.htm? How?

Thanks.


 

I cannot Publish app using VS2015

$
0
0

I recently upgraded from VS2010 to VS2015.  In VS2010, I used to "Publish" my webapp to a directory, and distribute the directory containing my pre-compiled web app to my customers. In VS2015, the "Publish" menu has changed, but I should be able to get what I need using the following steps:

Publish web: Custom
New Custom Profile: {My Pre-Compiled App}
Publish Method: File System
Target Location: {My Pre-Compile App Directory}
Configuration: Release
File Publish Options: all checked (Delete all existing files.., Precompile.., Exclude files from App_Data.)

When I try to publish, I get the following error from Microsoft Visual Studio:

'Microsoft.Web.Deployment, Version=9.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35'
or one of its dependencies. The system cannot find
the file specified.

I can't find any information on fixing this.  Am I doing something wrong?  Any information on fixing this?

Thanks

Add .aspx pages to an existing .asp system

$
0
0

So we have an existing set of web pages that we use for reporting that was created years ago in a Classic ASP setup.  The current pages use an #include page to access the ado connections to a (I believe) SQL Server 2008 back end.   We are trying to begin (finally) moving forward into creating pages in an ASP.net environment.  The issue that I am having is trying to figure out how/where to create the ado connections for these new pages without affecting the existing system.     

I did do some research that told me that I should be storing the connections in the web.config file...However, when I tried that, the existing Classic ASP pages now will not load.   

Can anyone provide me with some guidance (or point me in a good direction) as to how I can implement new pages into the already existing classic system?   


Config file error...

$
0
0

Please help me this type of error

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

my web.config file not properly works

$
0
0


<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,Microsoft.Practices.EnterpriseLibrary.Data" requirePermission="true"/>
</configSections>
<dataConfiguration defaultDatabase="conStr"/>
<connectionStrings>
<add name="conStr" providerName="System.Data.SqlClient" connectionString="Data Source=208.91.198.59;Database=GhatatiGhatna;User Id=GhatatiGhatna;Password=GhatatiGhatna123." />
</connectionStrings>

<system.web>

<machineKey validationKey="1234567890123456789012345678901234567890AAAAAAAAAA"
decryptionKey="123456789012345678901234567890123456789012345678" validation="SHA1" />
<customErrors mode="Off"/>

<pages>
<controls>
<add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="ajax" />
</controls>
</pages>

<compilation targetFramework="4.0" >

</compilation>
<httpRuntime targetFramework="4.0" />
</system.web>
<appSettings>
<add key="Port" value="587"/>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
</appSettings>

</configuration>

my main problem is any data not update and insert 

insert a new record then server time out problem so

please help me other option........

To Share or Not To Share .NET DLLs

$
0
0

The Build Manager (Me) and an Architect Lead are going back and forth on how to implement his common DLLs.  Our current setup is 20+ individual .NET websites of which some are compiled and some are not (just the raw code out deployed).  This is just for one environment (QA) and one of our clients. So when he updates his DLLs he wants them deployed to each individual bin folder location, where I want the .NET web sites to reference one shared location and where the DLLs are deployed to instead of potentially hundreds of bin locations every time the DLL changes.  GAC is also out of the question.  What do you all think is the best way to go? Any other details about our setup let me know.

Web Deploy using vpn

$
0
0

Hi all forums,

 I have 2 web applications one is hosted on public Ip and the other is hosted securely on an internal IP through vpn connection. I could web deploy directly to the first app. I am using forticlient as a vpn client to connect remotely to my second IIs server. I installed web management on the 2 servers . I can't web deploy to the second app even I am connected to forticlient. kindly advice any additional configurations needed to web deploy directly to the second application.

waiting for your advice

thanks

Can I just upload a new project1.csproj file to Dev server (IIS), without re-build and re-deploy, and expect the application to work?

$
0
0

HI,

We just launched a MVC3 ASP.NET application.

There is 1 function that is working on our dev laptop, but not on the server (IIS); we found out that this is due to: 1 project is still references an old version of EF 4.1.0.0; and could not find it. We need to make it reference EF v4.4.0.0. This dll is already in the bin/Release folder for this project on the server.

Now, we were told not to re-deploy to the server at this point; so my question is: can I just make change to this project's .csproj file, in the "Reference" part, change the 4.1.0.0 to 4.4.0.0, then upload this .csproj file to the server, replace the old .csproj file, and expect the application to work?

Please let me know if we can do this?

Thanks,

Claudia

FIPS with Oracle using Entity Framework - ORA- 01017

$
0
0

I am using Entity Framework 6 for Oracle to fetch some information in WCF Service, the service works well on my local machine but when i deploy my code to production environment which is on WIN 2012 which has FIPS policy enforcement then my WCF service give me error of Oracle.ManagedDataAccess.Client.OracleException (0x000003F9): ORA-01017: invalid username/password, even i have setenforceFIPSPolicy enabled="false" under runtime tag in my web.config, but it seems this tag doesnt work if the server enforces to use FIPS.

However when i reset the registry value for FIPS from "1" to "0" from (HKEY_LOCAL_MACHINE>System>CurrentControlSet>Lsa>FIPSAlgorithmPolicy) the ORA-01017 exception doesnt come and it returns data.

So would like to know how to disable FIPS at application level, when domain/GPO enforces it. As this has been really a challenge for me for last 2 days.

Thanks.

Deploy MVC to IIS via VS 2015

$
0
0

I am trying to put my MVC app onto my remote IIS server.

I created a custom deployment profile in VS 2015 using File System, and in my folder I get the following :

bin (folder)
Scripts (folder)
Views (folder)
favicon.ico
packages.config
PrecompiledApp.config
Web.config

I have created a site in IIS and copied this all up but nothings happening I only get 404 errors. 

Looking for help I see mention of AppRoot and wwwroot folders being created but I don't get these using the deployment in VS anyway.

I'm sure it should be easier than this?!


why use virtual directory for non-static content?

$
0
0

scenario: i need to add to my web site a client-specific folder which contains a single aspx file and some code, i develop it as a separate visual studio project (i have 2 different web applications projects: "RootWebSite" and "InnerWebSite"), now i want to add it as virtual directory of my web site on iis 7 (i don't want to add it as inner application because i need to work inside the same appdomain of the root website/application).

So i have on iis:

"RootWebSite" in d:\RootWebSite

"RootWebSite\InnerWebSite" virtual directory in d:\InnerWebSite

my problem is that i searched a lot and seems that i need to move the dll of my InnerWebSite from d:\InnerWebSitepath\bin to d:\RootWebSite\bin

so what are the advantages of using a Virtual Directory which contain not-static content as ascx/aspx files? it's simpler to copy the InnerWebSite dll in the root bin (as with virtual directory usage) and copy the InnerWebSite folder and inner files directly within the root web site folder without using the virtual directory.

that is having:

"RootWebSite" in d:\RootWebSite

"RootWebSite\InnerWebSite" standard directory in d:\RootWebSite\InnerWebSite

I am wrong?

Which deployment option

$
0
0

Using VS 2012, SQL Server 2012 & VB.NET

I am about to deploy a web site I've been developing and have a few questions about deployment.

Firstly, the web site is an Intranet application, using Windows authentication and AD to control user access. It will be added to one of our Windows 2014 servers running IIS. An AD group has been created on the AD server and users of the application added to the AD group.

I have changed my web.config file to use Windows authentication and my first question is about this. Do I need to change the 'authorization' settings to <deny users="*" />?

Are there any other web.config changes I need to make?

The 'Publish' methods I was looking at were either 'Web Deploy Package' or 'File System'. With the former, there is the option to specify a connection string. Since I have already specified a connection string in my web.config file, I assume I don't need to specify one here?

Also, with this method, is it simply a matter of extracting the zip file produced on the production server in a destination of my choosing and then configuring IIS with the correct settings (dotnet version, connection strings etc)?

What are the advantages of this method over the 'File system' option?

Sorry to ask so many questions, but this is my first deployment and there's a mass of confusing information out there!

Thanks for any help.

put web form on server

$
0
0

hi 

i write a web form program for my friend. my program connect to database with EF way. and store some data and retrieval them.

now i run my program in my computer and when i run it the address is http://localhost... .

my question is that now my program is finish and we want to put it on server is there any setting that i should do in my program.

the connection string in my program for connecting to database is data source=.;initial catalog=Form;integrated security=True

when i put my exe and database in server this connection string does not make error? i should specify my address of program?

if yes where should i specify my address of program is there any setting?

and totally what is setting for putting on server

WCF Service Configuration on HTTPS Based LoadBalancer.

$
0
0

We have 2 Web Servers behind our F5 LoadBalancer which is SSL Enabled. Following are details for e.g.

F5 LoadBalancer: https: // myloadbalancer/myservice.svc 
Server1 http: // server01/myservice.svc
Server2 http :// server02/myservice.svc

I have hosted my WCF service on both of the servers with MessageSecurity Enabled on them and it is perfectly consumable in .NET applications, and when i hit my loadbalancer address even in browser or in .NET client i am able to see WSDL/Service properly.

But when i consume WCF service by providing the loadbalancer address stated above & see the web.config of the client then on the endpoint address field it resolves to http://server01 orhttp://server02 which means it doesnt load HTTPS URL rather the .NET client resolves it from one of the clustered servers hostname, which means my client will not be hitting the F5 loadbalancer for the WCF calls as the web.config of the client doesnt know the HTTPS url and thus the loadbalancing will not come into picture.

If anyone of you can shed some light on it that how to acheive the loadbalancing with MessageSecurity over the SSL-Enabled F5 Server then it will be of much help.

Thanks.

Deployment terms confusion

$
0
0

Deployment is new to me so this might be a very stupid question.

I've been reading this article https://msdn.microsoft.com/en-us/library/dd394698(v=vs.110).aspx

What's the difference between the One-click publish and using a tool like Octopus Deploy?

At work everyone is talking about Octopus Deploy and i don't understand why you need it if you can deploy from Visual Studio? Is it not the same thing?

Thanks.

Viewing all 3561 articles
Browse latest View live


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