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

How to set up ASP website on new SharePoint server?

$
0
0

Years ago, I built an ASP site that sits within a folder of our corporate site.

For example:
examplesite.com/MyASPSolution

It's just a simple site that uses views (GridView, etc.) to show and manipulate data within a SQL database.

We're now changing from our current website and webserver to SharePoint 2013.
I know a few things about SharePoint from playing around with it, but I don't have any formal training on how to do this.

How can I integrate my solution onto the new SharePoint site?
It's okay if the URL changes.

I've researched the issue, and found a few items suggesting "converting" my files to SharePoint.
Might there be a way to just drag/drop files somewhere, or is conversion the way to go?


Unable to select an aspx as default document

$
0
0

Hi All,

I am facing issues in setting an aspx page as website default page in ASP.NET 4.5. Below is my requirements:

Page to make default: /Pages/Home/Home.aspx

web.config:

 <system.webServer>
    <defaultDocument>
      <files>
        <clear/>
        <add value="~/Pages/Home/Home.aspx"/>
      </files>
    </defaultDocument>
  </system.webServer>

Directory Browser is enabled in IIS 7.5.

Error:

<div class="content-container">

HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

After enabling directory browsing. Below output is displayed instead of the homepage:

localhost - /


 7/27/2015 12:23 PM        <dir> About
7/27/2015 12:23 PM <dir> App_Code
7/27/2015 12:23 PM <dir> Bin
7/27/2015 12:23 PM <dir> Contact
7/27/2015 12:23 PM <dir> Content
7/27/2015 12:23 PM <dir> Database
7/22/2015 12:15 PM 1109 Global.asax
7/27/2015 12:23 PM <dir> MasterPages
7/27/2015 12:23 PM <dir> Pages
7/27/2015 12:23 PM <dir> Scripts
7/27/2015 12:23 PM <dir> Services
7/27/2015 12:27 PM 781 Web.config
7/16/2015 11:58 AM 1360 Web.Debug.config
7/27/2015 11:41 AM 589 WebConnectionString.config
</div>

MVC3 app works on our local dev env., but not after deployed to IIS7.5 - Could not load file or assembly 'System.Web.Mvc' or one of its dependencies

$
0
0

Hi,

We have an MVC3 web app that  work on our local dev computers, but does not compile after we deployed it to the server - Windows 2008 + IIS7.5.

The error message is:

Could not load file or assembly 'System.Web.Mvc' or one of its dependencies.The located assembly's 

We are puzzled by the version of the System.Web.Mvc.dll file - in VS, its property says that it is 3.0.0.1; but if we go to /bin folder, right-click on this file, it says 3.0.20105.0 -- which is the real version??

I read phil's post here: http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx/

It seems that we should download and instal MVC3 on our server. Since it is MVC5 now, is it possible that we can still download MVC3.0.0.1 ? We do not want to upgrade to MVC4 or 5 yet. We do not want to use NuGet either.

If anyone have any exprience with this, and have a simple solution, please let us know. We have a deadline for today on this site.

Thanks,

Claudia

BTW - this is the web.config looks like:

<runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.1" /></dependentAssembly>

DeployOnBuild does not work

$
0
0
<div class="container"> <div class="body">

Hi,

at the MSDN  http://msdn.microsoft.com/en-us/library/ee942158.aspx#can_i_specify_that_a_package_should_be_created_every_time_i_build_a_solution

there is described the way how to "specify that a package should be created every time I build a solution".

that should be acomplished by adding the following to the csproj file

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

  <DeployOnBuild>True</DeployOnBuild>

  <!-- Additional settings -->

</PropertyGroup>

 

however, it does not work.

So my question is - how should I modify the *.csproj file so that the web deployment package is created automatically after every build?

Regards,
Miroslav Sekera
developing www.glueo.com

</div> </div>

Pulling Images from Another Server

$
0
0

Hello All!

I found this Thread and have a question...

http://forums.asp.net/t/1415691.aspx?Copy+an+image+from+an+URL+to+own+server+and+resize+it

When I put in my Virtual Directory as the URL I'm getting Logon and Password Failed on this piece of code:

Dim data As Byte() = wc.DownloadData(Virtual Directory)

However I don't get this error when I do this:

DocumentImage.ImageUrl = Virtual Directory Reference...(to display the image)

I need to be able to open the image and divide the Height and Width by 2 to shrink it for displaying on the web page...how can setup the Mapped Drive / Virtual Directory so I'm not getting the Login Errors?

Thanks,
Mark

websetup project : webapplication deployment

$
0
0

HI

 I have one web application project and it is working fine [mvc4] in windows server 2012 and i am using visual studio 2013.  my client want  a setup file to install that in production server. for that i googled and created a websetup project.but its not working. it is showing 404 errors.

can u please provide steps to create a installer project and installing that in local machine...

Accessing web.config -simple question

$
0
0

Hi,

I am not an IT professional so this is probably an easy question, but it is frustrating the hell out of me trying to figure it out!

I am running a web app on azure and it is not recognizing a file type. I know I need to edit the MIME type and this can be done by editing the web.config file. I assumed that I would see this file on my azure directory in filezilla and I would be able to download, edit and the re-upload this file? But I cannot see it anywhere. Is this because I am on the trial subscription or should I be looking for it some place else?

Any guidance for a non IT professional would be much appreciated.

Bruce

Chart control not working on web server

$
0
0

XML Parsing Error: no element found
Location: http://dreaminvest.co.in/Index.aspx
Line Number 1, Column 1:

^

// It gives error to chart control , when i remove chart control settings in web.config file the error is removed but we require chart control in my application

The web.config file is :

<?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>
<appSettings>
        <add key="ChartImageHandler" value="storage=file;timeout=20;"/>
    </appSettings>
    <system.webServer>
        <handlers>
            <remove name="ChartImageHandler"/>
            <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
    </system.webServer>
    <system.web>
        <httpHandlers>
            <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </controls>
        </pages>
        
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


                  </assemblies>
            <buildProviders>
                <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider"/>
            </buildProviders>
        </compilation>
    </system.web>
    <connectionStrings>
        <add name="DreamInvestEntities" connectionString="metadata=res://*/;provider=System.Data.SqlClient;provider connection string=&quot;Server=red.mysitehosted.com; Database=DreamInvest; User ID=user;Password=fish; MultipleActiveResultSets=true; Trusted_Connection=FALSE&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
</configuration>




Seamless uploading

$
0
0

Hi there.

We have an asp.net mvc application online. I wonder how we can update the site without bringing it down and make it offline for some time. We need to update the site and test our new options and then make it available to the end-user.

I think it has nothing to do with the technology (ASP.NET WebForm / ASP.NET MVC / PHP) we are using but I thought it could be a better idea to ask it here; maybe there is something specific to ASP.NET MVC.

I've got to mention that we are not a huge company and do not have much budget; but everything necessary can be bought and used.

Thanks in advance.

An existing connection was forcibly closed by the remote host

$
0
0

Hi, we are starting working with Visual Studio 2013, we have n-tier , WCF, Bussiness Layer and th UI, we pusbish our first reléase a week ago, all i ok, it runs and work fine, this week we publish some fiexes, and now we get this error "An existing connection was forcibly closed by the remote host", some boby help us.

This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

$
0
0

Hi, the servers at my job recently turned on FIPS and now I get this error message:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.]

   System.Security.Cryptography.SHA1Managed..ctor() +2988093

   Aspose.Excel.License.ਠ(XmlNode ਡ, XmlNode ਢ) +49

   Aspose.Excel.License.ਞ(XmlDocument ਟ) +93

   Aspose.Excel.License.SetLicense(Stream stream) +110

   Aspose.Excel.License.SetLicense(String licenseName) +68

   AdhocQuery.Page_Load(Object sender, EventArgs e) +748

   System.Web.UI.Control.OnLoad(EventArgs e) +91

   System.Web.UI.Control.LoadRecursive() +74

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 

The application use an older Aspose api and the company won't update the source code to make it FIPS complient. I tried:

<configuration> 
    <runtime> 
        <enforceFIPSPolicy enabled="false"/> 
    </runtime> 
</configuration> 

and

<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>

in the web.config file but neither will work.

FIPS validated cryptographic algorithms

$
0
0

I have an ASP.Net MVC 4  web application which has been working fine for several months.  We made some changes to this web app.  This involved a couple of new views, some additional JavaScript, and some functions and actions in one of the controllers.  The controller actions do not do anything fancy.  There are two added using one for System.Data (which was already included) and one new one for System.Data.Entity.  When the new version of the web app was deployed the server began issuing the following error.

 System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. 
at System.Security.Cryptography.SHA256Managed..ctor()

after several searches on the internet the one I found that address changes that can be made in the Web App vice the Web server the one here https://social.technet.microsoft.com/Forums/sqlserver/en-US/7a62c936-b3cc-4493-a3cd-cc5fd18b6b2a/fips-validated-cryptographic-algorithms?forum=clr 

This propose adding an element to the web.config.  However when  this change was made then suddenly the web app began throwing this exception.

System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation. at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) at 
System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Protect(Byte[] clearData) at System.Web.Security.MachineKey.Protect(ICryptoServiceProvider cryptoServiceProvider, Byte[] userData, String[] purposes) at 
System.Web.Security.MachineKey.Protect(Byte[] userData, String[] purposes) at System.Web.Helpers.AntiXsrf.MachineKey45CryptoSystem.Protect(Byte[] data) at 
System.Web.Helpers.AntiXsrf.AntiForgeryTokenSerializer.Serialize(AntiForgeryToken token) at System.Web.Helpers.AntiXsrf.AntiForgeryTokenStore.SaveCookieToken(HttpContextBase httpContext, AntiForgeryToken token) at 
System.Web.Helpers.AntiXsrf.AntiForgeryWorker.GetFormInputElement(HttpContextBase httpContext) at System.Web.Helpers.AntiForgery.GetHtml() at 
System.Web.Mvc.HtmlHelper.AntiForgeryToken() at ASP._Page_Views_Contracts_Edit_cshtml.Execute()

Since the other pages with anti forgery tokens worked fine I do not understand what the issue is.  I reported this on the thread but probably since it was so old, I got no response.  So, I undid the web.config change and created my own thread, and since this was a web app issue I created here in the ASP.Net forums instead of in the SQL Server Forums as before.
Does any one have any ideas, (bearing in mind that I can not make any changes to the server settings)?

 

ASP.Net page not updating - Literally the same screen from earlier

$
0
0

I have an ASP.Net application that accesses user data from a SQL database, generated in IronSpeed Designed.

Visual Studio Version 2012
IronSpeed Designer Version 11.1.0
Windows Server 2012 Standard 6.2
Sql Server 2012
Program in Service since 11/2007 (with problem having never happened previously)

Problem:
First reported by 2 of my customers but I was not experiencing the problem until after a recent MS update.

Unsure of the particulars of those updates or whether it was only a coincident.

Log into application and go around to a few pages, all seems ok, than I select a new Active Company (auto filters list screens by Active Company ID from a session variable, changing active company changes the ID stored in the session variable), everything works fine for a while (1 - 4 mins) switching between screens and even different active companies, than at one point I go to a page that I've been to several times (that worked fine) and it shows everything from the last time I accessed it  (literally the identical page from a few mins ago). I change to another page and it appears to be updated, go back to the screen that did not update and it no matter what, will not update again. I query the database and it is indicating the correct active company ID and query the session variable and that too is correct.

** The strange thing is I can wait 4 -5 mins (I just stop doing anything) and than try to access the page again and now it updates.

I have been beating at this now for almost 2 weeks and have not been able to determine to source of the problem.
I literally have tried every settings for session caching I could read up on with no (or minimal) affect.
Since our software utilizes session variables to hold user variables to control their environment (like active company selection), I went to go as far as removing the session variables and making the profile.variables (requiring Sql Session management) with minimal affect).

It seems to work fine for a few minutes (or page accesses) than once it stops updating the page, it will no longer update under any circumstance.

This design has been out in the field for over 8 years now (and is routinely brought up-to-date with the latest dot.net compiler updates, .net framework and IronSpeed Designer engine updates. This error has never occurred before now. No update to the development tools took place prior to the appearance of this issue.

Any direction as to where to look from here would be greatly appreciated, I'm at a lost as to where to look from here.

P.S. I installed MS Message Analyzer and had it monitor up to the point where I get a failure. I have never user MS MA before so I don't have much of an idea as to what to look for, other than the operation status was indicating Found (302) for the Get and Post and Ok (200) for the page I received the problem for.

Thanks in advanced!

John R

 

Authentication issue

$
0
0

Hi,

I've hosted a web site on iis which has authentication enabled as 'Windows Authentication' and in web.config "authentication=windows" and "identity impersonate=true".

Also, I am retrieving current logged in user's username details in the code through 'Security.Principal.WindowsIdentity.GetCurrent().Name'.

The url of the website is used in our application framework with in an iframe. But everytime we log into the application and try to access the iframe it prompts for credentials to the server that is hosted on. How can I stop the prompt for credentials?

If I use 'Anonymous Authentication' it fails to load the current users's username in to my code and throws error.

Someone please guide me. Thanks.  

Theme SKIN not working

$
0
0

Hello

I am using a Web Site Project in Visual Studio 2015 and precompile the site prior to deployment.

I found a problem in that the site totally lost its look and feel; and discovered the .SKIN file was missing from the \App_Themes\Theme1\ folder.

I have rebuilt the Solution and done 5 different precompile tests with different GUI settings.

I found that only when “Allow precompiled site to be updateable” is checked, is the physical .SKIN file output to the \App_Themes\Theme1\ folder.

However, I need “Allow precompiled site to be updateable” unchecked.

Upon searching, I found:
https://msdn.microsoft.com/en-us/library/vstudio/ms229863(v=vs.100).aspx

The following table describes how the ASP.NET Compilation tool handles different file types when the -u option is omitted.
skin files in the App_Themes subdirectory
Themes are compiled into assemblies and placed in the Bin directory. Stub files are created for .skin files and placed in the corresponding output directory. Static files (such as .css) are copied to the output directories

So, I found a file in the bin folder named "Theme_theme1.compiled" and it contains:

<?xml version="1.0" encoding="utf-8"?><preserve resultType="3" virtualPath="/sitename/App_Themes/theme1/" hash="fffffff..." filehash="e..." flags="110000" assembly="App_Theme_theme1" type="ASP.theme1"><filedeps><filedep name="/sitename/App_Themes/theme1/" /></filedeps></preserve>

But, there is no stub of the SKIN file.

Also, the 3rd party web host does not have a folder “sitename” so I changed the path using several combinations, none of which worked.

Any ideas?


asp.net web hosting deployment error

$
0
0

i purchased web hosting (ultimate I) package from www.hosterpk.com (windows server) then i created a database on that hosting server and link that with sqlserver 2012 and create some tables for checking and put some dummy data into them. then i create a asp.net website in vs13 and fill gridview with some data from those tables. i put my whole website on hosting server using FileZilla (FTP Account) and than i browse my web url (www.thedloads.com) and face this error. i don't know how to fix this. please help me out with this error.

javascriptconverter not read from web.config

$
0
0

Hi!

I've created a javascriptconverter, FilteredComboboxesConverter.

The converter is working fine and is invoked, if I use Javascriptserializer.RegisterConverter.

But if I use web.config, FilteredComboboxesConverter is not invoked. Furthermore, if I read the jsonserialization section from web.config in C#, the converters property is empty.

FilteredComboboxesConverter is placed in another project, WebHelpers, than the web.config file.

The top of FilteredComboboxConverter looks like this:

namespace WebHelpers.FilteredCombobox
{
    public class FilteredComboboxesConverter : JavaScriptConverter
    {

The relevant section in web.config looks like this:

<system.web.extensions><scripting><webServices><jsonSerialization><converters><add name="FilteredComboboxesConverter" type="WebHelpers.FilteredCombobox.FilteredComboboxesConverter"/></converters></jsonSerialization></webServices></scripting></system.web.extensions>

The project in which web.config is placed has a reference to  WebHelpers.

Parameter based url

$
0
0

Hi,

I am new to asp.net and learning. Currently I developed a web application and hosted it on iis and was able to access it using the url in the browser.

Now, I am trying to add some parameters to the url and access the parameters in the code.

For example, I would like to get the current userid in the url something like this:http://localhost/message.aspx/?id='xxxxxxxxxxxxxxxxx'

using request.querystring I can access the id.

But I do not know how to implement this practically. How do I host the application on iis and where can I set the parameters so that a url with id gets generated and will be accessible.

Thanks in advance. Please guide me.

'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

$
0
0

Hi All,

I am facing issues while connecting to the MS Access DB from the my Vb application with Access 2013. Have tried changing the version from 12 to 15 but with no luck :( . Also have tried installing the patch as advised in the link ( http://www.connectionstrings.com/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/ ) . But again I am facing the issues, not sure how to proceed with this error as I would like to connect to the Access db and read content from there for my application.

The env details are provided below

OS : Win 7

DB: MS Access 2013

Software Patch Installed : AccessDatabaseEngine.exe  

Connection String : Dim connString AsString ="Provider=Microsoft.ACE.OLEDB.12.0;

Error Message :

InvalidOperation Exception was unhandled.

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

Regards

Arvind

Web Application not opening on Other Computers [.Net 2.0, IIS 7.5]

$
0
0

Hello

I have created a basic asp.net [.Net framework 2.0] application and want to Host through my computer over the network.

I have admin privileges. I have configured it over IIS 7.5 and its working on my computer but not opening on other computers over the same domain.

Can someone help me troubleshoot.

Thanks in Advance

Viewing all 3561 articles
Browse latest View live


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