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

Visual studio 2010 web app deployed on windows server 2012 R2 - Printing option not working

$
0
0

Hi,

I deployed visual studio 2010 application on windows server 2012 R2 printing option working  on visual studio development server with assignment of port, but if i change local iis server then printing option give following error.

Message : The type initializer for '#GLf.#MLf' threw an exception.

InnerException :  "No printers are installed"

Line1 : Dim PrnRender As New DataDynamics.Reports.Rendering.Graphics.PrintDocumentRenderingExtension

Line2 : Dim PrnSettings As NameValueCollection = PrnRender.GetSupportedSettings.GetSettings()

Error occur from Line2.

please any help will appreciable.

Thanks and Regards,

Deeptech


Stress Test for ASP.Net Application

$
0
0

hi all experts,

i have several question as follows:

Does the visual Studio has capabilities to do stress testing..?

can anyone from this channel inform me, what are the third party software which be used for stress test ASP.Net application..?

Waiting reply from all experts here.

Thanks. 

error in deployment package

$
0
0

Dear all,

I normally create deployment package in visual studio 2010 to update the same in IIS server.

Today I am getting copying file obj\Debug\CSAutoParametrize\transformed\content\web.conig to obj\Debug\csAutoParameterize\original\obj\Debug\AutoParameterize\transformed\Content\css\web.config failed. Could not find file 'obj\Debug\CSAutoParameterize\transformed\Content\css\web.config'

how to overcome this error. I normally take a folder copy - whenever I do changes in the project. Tried copying the web.config file to the empty directory mentioned above - and try to ran the deployment package(I also did included the existing file and gave path to this folder from the copied location). But same error is coming - can somebody suggest to overcome this issue.

Warm Regards,

Sathya

Create a site map for my asp.net mvc web site , to show it inside the search engine results

$
0
0

I have created a web site using asp.net mvc-5 . and I have hosted it to one of the hosting provider and I register the web site with Google app.

Now after 1.5 months of publishing the web site online it starts to be returned by search engines mainly Google and Bing. But the search result will not show my web site links (such as contact us, our projects, our team, etc). now I read that I need to create a site map for my web site as follow:-

1. I need to create a robots.txt inside the root of my asp.net mvc and I need to specify the location of the site map as follow:-

User-agent: *
Disallow:

Sitemap: http://mywebsite.com/sitemap

2. Then I need to create an xml which list my main links.

But I have the following 2 questions regarding creating and submitting a site map:-

  1. If I do the above steps (creating robots.txt and xml site map), then will search engines be able to understand the site map automatically, or I will have to submit the site map to Google and to Bing separately ?

  2. Is there any change that my site map will be returned in the search result without creating a sitemap.xml . I mean can search engine automatically extract my site urls and create a site map ?

Thanks

Strange behaviour on windows server 2012

$
0
0

Hi all:

I have a script

bdcuerpo.Attributes.Add("onload", "if (opener.document.getElementById('ctl00_cphcontenido_gvobras_" & Request.QueryString("id") & "_lblreactivacion')) {opener.document.getElementById('ctl00_cphcontenido_gvobras_" & Request.QueryString("id") & "_lblreactivacion').innerHTML='" & strfecha2 & "';}")

I write a date on an open page, page2, that opens from page1.

On Windows server 2012 I can't write on the page. On Windows 7 I can do that without any problem

Why? I disabled the enhanced security.

TIA

Web Site Publish Question - .sln vs .csproj...

$
0
0

Hi all,

I have a quick series of questions regarding publishing a website.

When we deploy using the .sln file, it seems the .sln and other development files are pushed to the desired location.  Is there a way to filter that stuff out and only deploy what will be needed in the install/on end user's machine.

We will be adding this via MSBuild as well in a script for our CI project and I'm wondering if there is a parameter that can be passed to it to filter that 'stuff'.

We do publish another app that uses a .csproj file and we don't have to do any cleanup of dev files there.  Everything looks good from both Visual Studio and our CI process.

Is that the difference?  If its a project and not a solution the publish is cleaner?

The developer in charge of this particular solution indicated that the publish looked good if the .sln file was removed.  The problem with that is I have nothing to call or build/publish via MSBuild in our script.

Any clarity you can provide would be greatly appreciated!!

Thanks in advance.

A network-related or instance-specific error occurred while establishing a connection to SQL Server.

$
0
0

Hi All,

This is the first time I am hosting my website on a server with database.

All is working fine on my machine. For hosting it on another server I have made some changes in my webconfig.Through using sqlserver ip and uid and password, I can easily connect to the sql server.

But the problem is when I try to connect with database through website it shows error

"A network-related or instance-specific error occurred while establishing a connection to SQL Server."

Here I am posting my webconfig connection string.

<connectionStrings><add name="cmykcon" connectionString="Data Source =118.67.248.126;Initial Catalog=xxxxxx; uid=xxxxx; password=xxxxxx;"  providerName="System.Data.SqlClient"/></connectionStrings>

Could you please let me know where I am making mistake?

below is the connection string which is working fine on my local machine.

<connectionStrings><add name="cmykcon" connectionString="Data Source =.\sqlexpress;Initial Catalog=xxxxe; uid=xxxxx; password=xxxx" providerName="System.Data.SqlClient"/></connectionStrings>

Thanks

Crystal report error

$
0
0

i try to create a crystal report when i build it shows this

where as i write code on page load

code

 protected void Page_Load(object sender, EventArgs e)
        {
            //report code
            DataSet ds = new DataSet();
            Class1 myclass = new Class1();
            ds.Tables.Add(myclass.report1().Copy());
            ds.Tables[0].TableName = "spcustomers";

            CrystalReport1 report = new CrystalReport1();
            report.SetDataSource(ds);
            CrystalReportViewer1.ReportSource = report;
            CrystalReportViewer1.DataBind();

        }

any help


How to Change datasource location for RPT file

$
0
0

I have installed the version SAP Crystal Server - 2013 SP3 in Linux OS.

I know how to change data source location for a crystal report in Windows but do not know how to do this from Linux.

Could you please help me how to achieve this from Linux with clear steps ?

publish update to production website

$
0
0

once update code to web site, the iis application pool restarts.

then all the sessions lose

how to publish the update codes in a better way?

it is intranet web site,

Can i check user connections?   so i can estimate the effects.  Thanks.

Fast Data Driven Web Applcations

$
0
0

Dear One,

We've developed some data driven applications using ASP.NET, WCF Services, SQL Server, Stored Procedures and Transactions. 

We're deploying those applications on dedicated VPS with Windows Server 2012 R2, Intel Xeon Processor with 2GHz and 4GB RAM.

Our problem is we can't figure out till today what causes web application take so long to process request and give response. We've explored many ways to decrease wait period such as not using cookies etc. Implemented those in our development with no success. We are also looking forward to ASP MVC for better performance but can't decide.

Can you please let us know what can be done to increase the overall speed of the data driven web application?

Many big players like Invision are dumping ASP.NET and switching to J2EE framework. Sometimes it's not motivating us to continue with the ASP.NET. What's wrong with beloved ASP.NET?

Unable to find the requested .Net Framework Data Provider

$
0
0

Hello,

Using Visual Studio 2013 ,Sql Server 2008 with Entity framework 5 and Oracle Managemenet the build works on my local . Published the files to test server now getting an error after I log on  below.  Please advise

Unable to find the requested .Net Framework Data Provider. It may not be installed.

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.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.

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:

[ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
   System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1479419
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +26

[ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.]
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +91
   System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +246
   System.Data.EntityClient.EntityConnection..ctor(String connectionString) +43
   System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings appConfigConnection) +78
   System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name, AppConfig config) +32
   System.Data.Entity.Internal.LazyInternalConnection.Initialize() +127
   System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel() +12
   System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +281
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +52
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
   System.Linq.Queryable.Join(IQueryable`1 outer, IEnumerable`1 inner, Expression`1 outerKeySelector, Expression`1 innerKeySelector

Membership Connection Error

$
0
0

I have created an application that use membership DB, everything works fine on my developer computer, I already created the membership Db on the web server (SQL server) with Aspnet_regsql.exe

whith Visual studio when I go to ASP.NET CONFIGURATION and click Select a different provider for each feature (advanced) when I test MEMBERSHIP PROVIDER (sql provider) test I gotSuccessfully established a connection to the database.

but when I want to test ROL PROVIDER and select AspNetSqlRoleProvider and click test I got :

Could not establish a connection to the database.

If you have not yet created the SQL Server database, exit the Web Site
Administration tool, use the aspnet_regsql command-line utility to
create and configure the database, and then return to this tool to set
the provider.

the web.config file is :

<connectionStrings><add name="SSI-DBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\JP\Documents\SSI-DB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient" /></connectionStrings><system.web><roleManager enabled="true" /><authentication mode="Forms" ><forms loginUrl="login.aspx"
        name=".ASPXFORMSAUTH" /></authentication><authorization><deny users="?" /></authorization><membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15"><providers><clear /><add
          name="SqlProvider"
          type="System.Web.Security.SqlMembershipProvider"
          connectionStringName="SSI-DBConnectionString"
          applicationName="SSIApplication"
          enablePasswordRetrieval="false"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="true"
          requiresUniqueEmail="true"
          passwordFormat="Hashed" /></providers></membership>

Please any help will be greatly appreciated 

Thanks,

Web deployment task failed. (Application 'root' does not exist in site

$
0
0

I have been deploying this site from my office with no problems.  I am now at home on my laptop and getting this error

Web deployment task failed. (Application 'root' does not exist in site

Deploying my first ASP.NET website

$
0
0

Hi,

I just finished my first ASP.NET Website project, and need to host it on internet.

I really don't know where to start. but I found this free hosting site http://www.smarterasp.net/ 

And that is how my try looks like: I chose Copy Web Site.. fromWebsite menu and connected to the server and selected all files and folders and copied them to the server

but when I open the website it shows an error of missing contentPlaceHolder, I found that the master page didn't move to the server properly, after some random try the page opened but without styling and the contact form doesn't work!

I'm really feeling lost. Please could you tell me where to start learning about these things. if there is a straightforward tutorial I'd be so grateful, or If someone here could help me.

Thanks in advance


Error launching website.

$
0
0
<div id="content"> <div class="content-container">

When i try to run this command it command prompt does not recognize the command. Please explain how to correct this problem!

It says that appcmd is not recognized?? 

Is there a workaround? I just installed visual studio 2013 and i am using external hard drive for the website files.

HTTP Error 403.14 - Forbidden

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

</div> <div class="content-container">

Most likely causes:

  • A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
</div> <div class="content-container">

Things you can try:

  • If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
  • Enable directory browsing.
    1. Go to the IIS Express install directory.
    2. Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level.
    3. Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level.
  • Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
</div> <div class="content-container">

Detailed Error Information:

<div id="details-left">
Module   DirectoryListingModule
Notification   ExecuteRequestHandler
Handler   StaticFile
Error Code   0x00000000
</div> <div id="details-right">
Requested URL   http://localhost:2193/
Physical Path   H:\WEB PROJECTS\localhost_1339
Logon Method   Anonymous
Logon User   Anonymous
Request Tracing Directory   C:\Users\LARRY\Documents\IISExpress\TraceLogFiles\LOCALHOST_1339
<div class="clear"></div> </div>
</div> <div class="content-container">

More Information:

This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server.

View more information »

</div> </div>

MVC5 Does not deploy APP_CODE object

$
0
0

VS 2013, MVC5, using File Path publish from Visual Studio.

I have a class in APP_CODE that creates a graphic (Statusbar.cs)

It works while debugging on my desktop.

When I publish and open the site in my browser, I get the "broken image" icon, AND when I right click and "View Image", I get a 404 not found.

When I try to put the APP_CODE folder on the webserver, the whole site crashes.

The build settings for this .cs file are "Compile", "Do Not Copy": though I have tried "copy if newer". 

Picking anything other than "Compile" seems to make the class disappear from my app (intellisense will not find it, it raises build errors).

This *must* be a deploy issue, because it works fine here on my desktop.

It might be some weird permissions issue, or maybe the webserver is missing some library that helps it encode PNGs or something.

how add web application in a setup with database.

$
0
0

I have developed a web app my client setup want it offline setup which he could run on web browser. 

is it possible to create setup for web application  

IIS Add new website..how do I access

$
0
0

I am trying to establish a development website on asp.net mvc 4.5.1 so that I can test code changes before copying to production.  I have gone through the steps to clone the database and website files of the production site, and I added the new website in IIS. I gave the new website a host name of "sitedev" and pointed it to the location under inetpub where I published the site files from VS.  My problem now...how do I access the new website from a browser?

use app_offline.htm - how can I test/access the site myself while app_offline.htm is on?

$
0
0

Hi,

I followed ScottGu's blog in using app_offline.htm, and put this file under the root and it shows up properly.

Now, I need to test the site (many pages) while the world sees this app_offline page. Meaning I need to go tohttp://www.mysite.com/page1.html orhttp://www.mysite.com/login.aspx and actually see the real pages and do my testing on the application; while if someone else go to the same url, they just see the app_offline page.

Currently, I have to delete this app_offline page then do my testing. But this also means that the application is open to the world. which I'm not ready for yet.

How do I achieve that?

Thanks,

CLaudis

Viewing all 3561 articles
Browse latest View live