|
Hi,
i have a windows services that uses a service reference to amazon web service. I have created a dll that actually has the service reference and the dll is called by my windows service. My windows service works fine. I also have a local asp.net application that uses the same dll and works great (Probably because dll and asp.net application are created on same machine). Recently, i moved the asp.net application to LAN Server. I copied the dll into bin folder. I also copied the service reference folder to bin folder and it turns out that the asp.net application is not using the service reference. It is calling my dll but the dll inturn isn't using the service reference.
Can anybody please provide help on where should i copy the service reference folder or files. or wat approach i should take to solve this issue. I googled but it seems that i am not googling appropriate keywords. Any help, link etc will be highly appreciated
Thanks
Mark
|
|
|
|
|
Well, whenever you add reference to a web service, Visual Studio will add one settings file and create the entry to it which points to the web service location.
It may also create one entry to Web.config.
Have a look if you have this configured properly for your compiled assembly.
|
|
|
|
|
Hmmm... , on my local machine i added the reference to dll (ie my dll) thru website->add reference, whereas on the server, i just placed my dll in bin folder because i thought that should be enuf. On my local machine, i didn't make any change to add service reference so i believe web.config should have not changed... Am not sure about settings file though... It seems that by adding reference thru website->add reference, asp.net on my local machine knows where to find the service reference files but when added to only bin, asp.net doesnot know whre to get service reference from ... Is there anyother way of adding reference on server? I have tried placing the files everywhere on server but it isn't working... I need to see the web.config file ...
Thanks for replying
|
|
|
|
|
Well, Visual studio always does some tricky things which are hidden from normal users.
Say if you are adding a web reference in class library, it will produce one App.config file and place the config entries there. If you reference the dll from your website, the final build will merge the entries of all the class libraries referenced to its web.config. Thus you will find the Web reference working perfectly.
This is just to allow everything configurable. Such that, if you change your server, changing just the config path will do.
On your machine, if you do reference the assembly through Visual Studio, it will automatically change configuration and make alteration so that your project works. If you want this by Copying the bin folder, you need to manually change the config file yourself to make it work.
|
|
|
|
|
Hi ,thanks..
It seems that i need to look into all config files... I will let you know if i am not able to solve the problem...
Thanks
Mark
|
|
|
|
|
mark_me wrote: I will let you know if i am not able to solve the problem...
Sure budd..
|
|
|
|
|
Good Morning,
I am trying to pass the information from GridView cells to another asp.net page using VS2008 (C#). This is done by using a Select link in each row to pass the information from that row. I am using the following code:
<asp:HyperLinkField DataNavigateUrlFields="CallCreated, Call_Id, Sponsor, ConcurrentStudies, StudyId, NCTID,
Country, TimeZone, Contact, Title, Phone, Email, SubOn, SubBy"
DataNavigateUrlFormatString="CreateCall.aspx?CallCreated={0}&Call_Id={1}&Sponsor={2}&ConcurrentStudies={3}&StudyId={4}&NCTID={5}
&Country={6}&TimeZone={7}&Contact={8}&Title={9}&Phone={10}&Email={11}&SubOn={12}&SubBy={13}" Text="Select" />
Actually, it works perfectly until I try to add one particular column from the grid called CtWebPage. When this is added, the "Select" link which forwards the information to the receiving page becomes inactive. That is to say, the information is viewable in the grid, as received from the Sql query, but the link becomes inoperable. As long as I do not use this one column, it works fine. I have tried renaming the column and changing its data type from (varchar) to (nvarchar) just in case, but it does not make any difference. The information passed from this column is a string representation of a web page address (in case that makes a difference). I have tried renaming the problem column and it makes no difference.....it still does not work!. I have tried adding a new column, called Test, and put a single word in it for data, and it works fine. I had this happen once last year and I gave up and left the column out, thinking it was a fluke. Obviously, it was not. This time, I am determined to resolve it...with YOUR help, if you please.
Thank You, Pat
|
|
|
|
|
At my new work i have to design & implement a online purchae order system for internel staff .
steps are
1. user can order any product - purchase order number should be generated automatically
2. if the user not authorised to approve the order user should send the notification to relevnt department for approval by email.
3 once it has been approved vendor should receive the order. also copy should go to finance
my employer is using dotnetnuke .. could you please provide me a SAMPLE APPLICATION OR THE WAY how i should be implemented ?
Many thanks
|
|
|
|
|
|
Hi Guys,
Anybody knows the way to format the String to get currency in the following format.
-$12,458.40 when the input is -12458.40.
i tried the following
String.Format("{0:c}",-12458.40);
but the result is (-$12,458.40)
|
|
|
|
|
rajmahen wrote: but the result is (-$12,458.40)
But this is the same thing that you wanted.
Actually if you format using {0:c} it will format according to what defined in your local settings.
|
|
|
|
|
Okay....then where i can change dat local setting in my browser or can i change it thro code itself??...
if it is possible in code
can you give me d snippet??
i hav seen this format change settings in MS Excel...is dat possible in ASP.net also?
modified on Monday, November 2, 2009 10:23 AM
|
|
|
|
|
Hi,
I Have a Problem,
I Want To Unzip My File Using C# Code On Server ...
Is There Any Solution......
|
|
|
|
|
|
Use WindowsBase .
Remember, it needs ContentType Xml to be inside the zip file to work correctly.
Otherwise you might go for depreciated VJslib.dll also
|
|
|
|
|
For Example.
string myString = "This my Code : 589745";
string myCode = myString.GetNumber();
myString.GetNumber method returns number from string variable.
I can write method to get number from string but I just need to know how to implement class that extend base type functionality.
thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Why do you need to write a new class when there is already a concept of Extension Function..
use like this
public int GetNumber(this string str)
{
}
Now to call just use myString.GetNumber .
|
|
|
|
|
Abhishek Sur wrote: Now to call just use myString.GetNumber.
I am not able to get it in intellisense when I am trying to get myString.GetNumber.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I got the solution.I got error at compile time that says 'Extension methods must be static' so I create one class named StringHelpers as static.
public static class StringHelpers
{
public static int GetNumber(this string str)
{
return 1;
}
}
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Yes .. sorry.. I just overlook on that.
Really extension functions should be declared as static .
I think now you have made it working ..
cheers...
|
|
|
|
|
Hello,
Is their a way to open a dwg file format in IE.
I tried open it using the response.outputstream but it appear as text and not the drawing.
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Browser cant show binary content.
|
|
|
|
|
hii m using shopping cart in my application.
i have created it but it is open for anonymous user i want that only after log in one can use this facilitie.any idea or link.m using csharp(asp.net 2.0).thnks....
|
|
|
|
|
Create a Session when the user logs in ....
and check that session when a user tries to add an item into the
cart.
|
|
|
|
|
thnks....
can u give me any link or example which follow this.....
thnks......
|
|
|
|