Configuration :: How To Create The WCF Proxy At Runtime
Jun 23, 2010How we can create a WCF proxy by giving the url in code at runtime??
not with WSDL tool or VS Web reference
How we can create a WCF proxy by giving the url in code at runtime??
not with WSDL tool or VS Web reference
In an article I have read "A web browser can be named as proxy server. As safari, chrome, mozilla".But proxy server is like a an intermediatary btween the clent and server know?
What is actually the difference between the two?
our web application should be hosted under proxy server, for that we had to change our URL to be relative.
we changed all the url's but then we saw that web resources that are embeded in the .net dll's are being written to the page with absolute path, start with "/" for example:
[Code]....
how can we change it? how can we set the web resource to be relative like this "../webresource.axd"
We have 7 different development environments and only 1 domain name. Whenever we want to hit the particular environment we change the host file entry and modify the IP address to that domain name.
We are creating a web application which checks the health of all these servers. But the problem is we have to modify the hostfile of the system from the code to point to different environment this requires administrative previlages and so this is not best approach. Is there any way to hit the particular environment without touching the host file by using some kind of proxy?
Is it possible to create a proxy class from a single WSDL-file which is stored on my desktop. Or how can I create a proxy at runtime and pass all necessary data?
View 1 Repliesin my application i m using webservice.without adding the webreference,i want to create proxy class using wsdl.
whats the steps for creating proxy class.
I have several configuration entries for application.
Identical entries are stored in Machine.config/Web.config etc..
How would I determine which one is read at run time..
Suppose I want to Edit a fixed section the an HTML section of an ASP.NET Page. I may add some text there and Upload some images etc. Then I want to make PDF (High Resolution) of that particular section. What should I do? I am using ASP.NET (C#) and Javascript (For Edit Text Of that section).
View 2 RepliesIs there a way to call ASP.NET configuration page during run time. (we call it during design time in VS from website menu).
I want to be able to create a link on web page for Admins to call this page for run configuration and managing roles on the fly. So we don't have to go back to development machine for it.
i get strange error. i follow links on msdn forum like [URL]but without success solution
[Code]....
I have built some ASP.NET websites in the past, mostly for local web applications. But this time I am looking to build a public website based on ASP.NET. The hosting and domain name is already in place but it is my job to create the site. I would like to use ASP.NET because I am most framiliar with it. I am just not positive the webserver supports it. I have tried creating a few different sites using different Net.Framework versions, but I always get a Runtime Error when I'm trying to access it across the internet. It tells me to change the customErrors value to OFF so I can see the error remotely. But I do that and for some reason its like its not seeing the Web.Config file I have. Because nothing changes and I still get the error. Any help would be great in figuring out if it supports ASP.NET. On another note I tried an ASP file which worked fine, but I'm not sure if theres a difference. Also if I make up a random url say [URL] I get the same error.
View 4 RepliesI have 2 assemblies with the same name but with different version 1.0.0.0 and 1.0.0.1. I have installed it in GAC and want to use 1 of these versions during run time from my C# application(for e.g - based on locale) in asp.net 2.0.
View 5 Repliesi'm doing a website for a school and after uploading the site i get this error when typing in the web address: "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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". "
the problem i have is the hosting company are saying it's not them and their IIS server is supporting .net 2.0 and it must be my code. i have even tried creating a brand new site and uploading that and I still get the same error. Because it's a school website i have to use the local government's hosting company so can't go anywhere else to host it. my question is is there any way i can create a website in .net 1.1 in vs? that way i can try to upload that site and see if it's displayed; at least if it does I can go back to the hosting company and tell them it's their server.
I am working on an ASP.Net web application running on framework 2.0. I have values stored in users cookie. During testing when the cookie value has been changed the asp.net runtime error page gets displayed.I have custom error mode set to On but somehow this error dosent get redirected. Can anyone tell me what I need to do/set for the custom error page to get displayed in this scenario?
Runtime ErrorDescription: An application error occurred on the server. The current customerror 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 viewableon remote machines, please create a <customErrors> tag within a "web.config"configuration file located in the root directory of the current webapplication. This <customErrors> tag should then have its "mode" attributeset to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
[code]...
I want to ask how I can create a waterMark for a image runtime in other words I want to write some text at every Image I show in my site.
View 1 Repliesmy table got around 15 columns and 50 k records.
which controls will be most efficient.
Gridview, datalist , repeater , detailsview , listview
There are considerations -
1. Should I use paging
2. If I am using repeater , is there any option to create the itemtemplate at runtime.
How to create Text Box at runtime?
means if months contain 4 week 4 text box should be created.
SqlConnection conn = new SqlConnection("Persist Security Info=True;Data Source="+txtdatasource.Text+";database="+txtDBName.Text+"; User ID="+txtDBUsername.Text+";password="+txtDBPass.Text);
conn.Open();
SqlCommand cmd =new SqlCommand("SELECT [ItemCode],[ClientDescription] FROM ["+txtDBName.Text+"].[dbo].[Bookings]");
cmd.ExecuteNonQuery();
This gets the folowing error ExecuteNonQuery: Connection property has not been initialized. i know it connects to the database
How Create Page In runtime
View 5 RepliesI was wondering is it possible to create a css class at runtime?
I am unable to use the traditional method of doing so as one of the attributes need to be loaded at runtime.
As I am using the Coolite Toolkit, whenever i need to use a custom image onto one of the controls, the custom image path needs to be loaded in via a stylesheet class.
I've figured out how to create the controls in the format I want, but now I am confused as to how create more than one set of them. I set everything to new and increment the names of each control, but it's only updating the one set. Here is my code:
[Code]....
In my application, I am using Tab Container in one Panel. At runtime on one of the Button Click
I want to create Tab Panel in to the tab Container. I am doing this as follows:
protected void btnMSOpen_Click(object sender, EventArgs e)
I want to create dynamic integer variable for each role in this loop. Which I will user later for totaling item count in other logic.
Is this possible to create a runtime dynamic variable?
I have written an ASP.NET page that accesses a SqlServer 2008 database and utilises the new spatial types. In order to use these types in my .NET code, I had to install the SQL Server System CLR Types addin to get the Microsoft.SqlServer.Types.dll file.I added the file to my GAC and referenced it from my ASP.NET project. I compiled all the projects in my solution in "Any CPU" mode and it runs fine on my development machine. However, when I deploy it to my hosting provider, I get the following exception when I access the page that uses the SqlGeography type:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Microsoft.SqlServer.Types.GLNativeMethods.GeodeticIsValid(GeoMarshalData g, Boolean& result)
at Microsoft.SqlServer.Types.GLNativeMethods.GeodeticIsValid(GeoData g)
at Microsoft.SqlServer.Types.SqlGeography.IsValidExpensive()
at Microsoft.SqlServer.Types.SqlGeography.ConstructGeographyFromUserInput(GeoData g, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeography.GeographyFromBinary(OpenGisType type, SqlBytes binary, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeography.STGeomFromWKB(SqlBytes wkbGeometry, Int32 srid)
....A quick google on the error code seems to suggest that the problem is something to do with loading a 32bit dll into a 64bit runtime. I've checked with my hosting provider and they are running Windows Server 2008 x64 and they told me that my website is running in a 64 bit ASP.NET runtime.I can't seem to find a 64 bit version of the Types dll and compiling my program in "x86", "x64" or "Any CPU" modes seems to make no difference. Is there any way that I can get around this problem without having to pay to host my website on it's own machine?
Am currently working on my first ASP.NET projects. I have a requirement for a page where a user can enter their current address, and then add as many previous addresses as they like. I have created a Panel with the required text boxes in, and also an 'Add' button which will allow them to add another address. How could I make a copy of that Panel and add it to the page at runtime ... assuming that it is possible!!!
View 14 Replies